Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Python mess
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
gsilva
Tux's lil' helper
Tux's lil' helper


Joined: 24 Dec 2007
Posts: 84
Location: Portugal

PostPosted: Fri Aug 21, 2009 2:52 am    Post subject: Python mess Reply with quote

Hi there,

Today I messed my system a bit by uninstalling all Pyhton installations (by accident). After bumping my head a bit I managed to install Pyhton 2.6 externally and then use Portage to emerge my previous 3 versions of Python: 2.5.4-r3, 2.6.2-r1, 3.1.1

I'm using 2.6.2, chosen using eselect. I ran python-updater (although 2.6 was the version I was using before messing things up), updated my system, but I'm getting errors.

I can't launch exaile/deluge/any_other because of this error:
Code:
ImportError: No module named gobject


I re-emerged pygobject, pygtk, python, and a lot of other packages that could be related.

I really can't figure out what's happening, but I guess it has something to do with environment variables, since $PYTHONPATH yields nothing.

My emerge --info:
Code:
Portage 2.2_rc38 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.10.1-r0, 2.6.29-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r1-i686-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 21 Aug 2009 01:45:02 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 1.3.7-r1, 2.1.8-r1
dev-lang/python:     2.5.4-r3, 2.6.2-r1, 3.1.1
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=core2 -fomit-frame-pointer -falign-functions=64 -ftree-vectorize -fvect-cost-model"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O3 -pipe -march=core2 -fomit-frame-pointer -falign-functions=64 -ftree-vectorize -fvect-cost-model"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://cesium.di.uminho.pt/pub/gentoo/ ftp://cesium.di.uminho.pt/pub/gentoo/ http://darkstar.ist.utl.pt/gentoo/ ftp://darkstar.ist.utl.pt/pub/gentoo/ ftp://ftp.rnl.ist.utl.pt/pub/gentoo/ http://ftp.dei.uc.pt/pub/linux/gentoo/ ftp://ftp.dei.uc.pt/pub/linux/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en pt"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/mozilla /usr/local/portage/kart"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X accessibility acl acpi alsa avi bash-completion berkdb bluetooth bzip2 bzlib cd cdr cli cracklib crypt cups custom-optimization dbus dedicated divx4linux dvd dvdr faac fbcondecor flac fortran gd gdbm gif gimp gimpprint glade glx gnome gpm gstreamer gtk gtk2 hal iconv isdnlog jack java javascript jpeg kpathsea laptop libnotify mad matroska mmx mp3 mpeg msn mudflap mysql nautilus ncurses networkmanager nls nptl nptlonly nsplugin opengl openmp pam pcmcia pcre pdf pdflib pic png posix pppd python readline reflection samba session sound spl sse sse2 ssl subversion svg svga sysfs tcpd threads tiff truetype type unicode usb wifi x86 xcb xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pt" NETBEANS_MODULES="cnd groovy gsf harness ide identity j2ee java nb php profiler soa visualweb webcommon websvccommon xml dlight enterprise" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Any ideas? Thanks in advance.
Back to top
View user's profile Send private message
vaxbrat
l33t
l33t


Joined: 05 Oct 2005
Posts: 731
Location: DC Burbs

PostPosted: Fri Aug 21, 2009 4:35 am    Post subject: ya missed a couple Reply with quote

Code:
/usr/lib/python2.6 $ find . -name "gobject*"
./site-packages/gtk-2.0/gobject
./site-packages/dbus/gobject_service.py
./site-packages/dbus/gobject_service.pyc
./site-packages/dbus/gobject_service.pyo

Not using lib64 in equery instead of lib will return nothing, but...

Code:
/usr/lib/python2.6 $ equery belongs /usr/lib64/python2.6/site-packages/dbus/gobject_service.py
[ Searching for file(s) /usr/lib64/python2.6/site-packages/dbus/gobject_service.py in *... ]
dev-python/dbus-python-0.82.4 (/usr/lib64/python2.6/site-packages/dbus/gobject_service.py)
equery belongs /usr/lib64/python2.6/site-packages/gtk-2.0/gobject
[ Searching for file(s) /usr/lib64/python2.6/site-packages/gtk-2.0/gobject in *... ]
dev-python/pygobject-2.18.0 (/usr/lib64/python2.6/site-packages/gtk-2.0/gobject)

Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum