View previous topic :: View next topic |
Author |
Message |
tornamodo Apprentice
Joined: 12 Aug 2005 Posts: 185
|
Posted: Tue Aug 14, 2007 6:26 pm Post subject: pygtk unable to establish symlinks - nicotine won't start |
|
|
hi all,
when i emerge pygtk it runs to the end and says:
Quote: | ...
--- !empty dir /usr/include/pygtk-2.0/pygtk
--- !empty dir /usr/include/pygtk-2.0
--- !empty dir /usr/include
--- !empty dir /usr/bin
--- !empty dir /usr
* Cleaning orphaned Python bytecode from /usr/share/pygtk/2.0/codegen ..
* Cleaning orphaned Python bytecode from /usr/lib64/python2.4/site-packages ..
* Cleaning orphaned Python bytecode from /usr/lib64/python2.5/site-packages ..
* Cleaning orphaned Python bytecode from /usr/lib/python2.4/site-packages ..
* Cleaning orphaned Python bytecode from /usr/lib/python2.5/site-packages ..
* Unable to establish /usr/lib64/python2.5/site-packages/pygtk.py symlink
* Unable to establish /usr/lib64/python2.5/site-packages/pygtk.pth symlink
>>> Auto-cleaning packages...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date. |
now if i start nicotine:
Quote: | $ nicotine
Nicotine supports "psyco", an inline optimizer for python
code, you can get it at http://sourceforge.net/projects/psyco/
Can not find required PyGTK. The current search path is
['/usr/bin', '/usr/lib64/portage/pym', '/usr/lib64/python25.zip', '/usr/lib64/python2.5', '/usr/lib64/python2.5/plat-linux2', '/usr/lib64/python2.5/lib-tk', '/usr/lib64/python2.5/lib-dynload', '/usr/lib64/python2.5/site-packages'] |
_________________ 1. Docs | 2. Gentoo-Wiki | 3. Search the Forum | 4. Post |
|
Back to top |
|
|
didymos Advocate
Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Wed Aug 15, 2007 12:04 am Post subject: |
|
|
emerge --info? _________________ Thomas S. Howard |
|
Back to top |
|
|
ch4os Tux's lil' helper
Joined: 11 Jul 2006 Posts: 92 Location: Gdansk, Poland
|
Posted: Sat Aug 25, 2007 8:49 am Post subject: |
|
|
I've the same problem here, and python2.5 gtk based apps not working. I've tried various pygtk & python2.5 ebuilds.
my emerge --info
Code: | Portage 2.1.3.6 (unavailable, gcc-4.2.0, glibc-2.6.1-r0, 2.6.22-gentoo-r2 i686)
=================================================================
System uname: 2.6.22-gentoo-r2 i686 AMD Turion(tm) 64 X2 Mobile Technology TL-50
Gentoo Base System release 1.12.10
Timestamp of tree: Fri, 24 Aug 2007 07:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python: 2.4.4-r4, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache: 2.4-r7
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.17-r1
sys-devel/gcc-config: 1.4.0
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -msse3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -msse3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pl_PL.UTF-8"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/paludis/repositories/gentoo"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 7zip a52 aac aalib acpi bash-completion branding bzip2 cdaudio cdda curl cursors divx djvu dvdnav dvdread extras fat flac fuse gadu gdm gnutls gtk2 gzip hddtemp icons imagemagick java jpeg2k lame mjpeg mmx mmxext mp4 mpd mpeg2 mplayer musepack nautilus openssh openssl rar real realmedia reiserfs screen sse sse2 sse3 symlink tcl tcltk tiff tk tlen trayicon unzip usb wav wavpack wma wmf wmp x264 xvid zip zsh-completion"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY |
|
|
Back to top |
|
|
didymos Advocate
Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Sat Aug 25, 2007 9:11 am Post subject: |
|
|
Quote: | Portage 2.1.3.6 (unavailable, gcc-4.2.0, glibc-2.6.1-r0, 2.6.22-gentoo-r2 i686) |
Your profile is not set up correctly. Try doing this:
Code: |
ln -snf /usr/portage/profiles/default-linux/amd64/2007.0/desktop /etc/make.profile
|
or this
Code: |
ln -snf /usr/portage/profiles/default-linux/amd64/2007.0 /etc/make.profile
|
depending on what USE flags you want by default. See the make.defaults file in each of those locations to see what each one adds to USE. _________________ Thomas S. Howard |
|
Back to top |
|
|
ch4os Tux's lil' helper
Joined: 11 Jul 2006 Posts: 92 Location: Gdansk, Poland
|
Posted: Sat Aug 25, 2007 10:03 am Post subject: |
|
|
I don't know why profile wasn't set. But it didn't worked.
I've done small test:
Code: | e1501 Desktop # python2.4
Python 2.4.4 (#1, Jul 21 2007, 14:29:47)
[GCC 4.2.0 (Gentoo 4.2.0 p1.4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named gtk
>>> import pygtk
>>> |
Code: | e1501 Desktop # python2.5
Python 2.5.1 (r251:54863, Aug 25 2007, 11:33:25)
[GCC 4.2.0 (Gentoo 4.2.0 p1.4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named gtk
>>> import pygtk
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pygtk
>>> |
after reemerging pygtk
Code: | * Unable to establish //usr/lib/python2.5/site-packages/pygtk.py symlink
* Unable to establish //usr/lib/python2.5/site-packages/pygtk.pth symlink |
|
|
Back to top |
|
|
didymos Advocate
Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Sat Aug 25, 2007 10:30 am Post subject: |
|
|
Can you re-emerge python? _________________ Thomas S. Howard |
|
Back to top |
|
|
ch4os Tux's lil' helper
Joined: 11 Jul 2006 Posts: 92 Location: Gdansk, Poland
|
Posted: Sat Aug 25, 2007 11:41 am Post subject: |
|
|
Haa SOLVED!!
/usr/lib/python2.5/site-packages/pygtk.py is symlink and points to pygtk.py-2.0
/usr/lib/python2.5/site-packages/pygtk.pth is also symlink and points to pygtk.pth-2.0
but these files are owned by pygobject not by fuc*** pygtk
solution:
Code: | emerge -av pygobject pygtk |
|
|
Back to top |
|
|
didymos Advocate
Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Sat Aug 25, 2007 11:49 am Post subject: |
|
|
Well, that's annoying. I'll have to remember that in case I ever hit this bug. _________________ Thomas S. Howard |
|
Back to top |
|
|
kayssun n00b
Joined: 11 Mar 2007 Posts: 15
|
Posted: Tue Sep 18, 2007 1:23 pm Post subject: |
|
|
beryl-settings did not work and I had the same error (Unable to create symlink) when I reemerged pygtk. So I tried your "emerge -av pygobject pygtk" and everything worked. I just wanted to post this in case somebody else has this problem an searches for it...
Code: | ksun@chandler ~ $ beryl-settings
Traceback (most recent call last):
File "/usr/bin/beryl-settings", line 23, in <module>
import gtk
ImportError: No module named gtk |
|
|
Back to top |
|
|
nisavid n00b
Joined: 24 Sep 2007 Posts: 1 Location: Boston, MA, USA
|
Posted: Mon Sep 24, 2007 2:53 am Post subject: |
|
|
ccsm and fusion-icon both fail to start unless pygobject and pygtk are re-emerged |
|
Back to top |
|
|
earcam n00b
Joined: 30 May 2005 Posts: 26
|
Posted: Fri Oct 12, 2007 1:37 am Post subject: Similar issue (Exaile ~amd64) |
|
|
Tried to install exaile on unstable amd64 with a number of required packages unmasked via /etc/portage/package.keywords
Code: |
media-sound/exaile ~amd64
dev-lang/python ~amd64
dev-python/notify-python ~amd64
dev-python/gst-python ~amd64
>=dev-python/pysqlite-2.3.4 ~amd64
|
Had the same issue as peeps before, but in addition needed to remerge dev-python/pycairo |
|
Back to top |
|
|
T-O7 Tux's lil' helper
Joined: 01 Sep 2004 Posts: 94 Location: Canada
|
Posted: Sun Jul 20, 2008 7:53 am Post subject: |
|
|
ch4os wrote: | Haa SOLVED!!
/usr/lib/python2.5/site-packages/pygtk.py is symlink and points to pygtk.py-2.0
/usr/lib/python2.5/site-packages/pygtk.pth is also symlink and points to pygtk.pth-2.0
but these files are owned by pygobject not by fuc*** pygtk
solution:
Code: | emerge -av pygobject pygtk |
|
Thanks! I just had this issue, and that solved it. |
|
Back to top |
|
|
ebazin n00b
Joined: 23 May 2008 Posts: 1 Location: France
|
Posted: Tue Jul 22, 2008 12:57 pm Post subject: |
|
|
Mee too. I had the same issue and
Code: | emerge -av pygobject pygtk |
solved it!
Cheers |
|
Back to top |
|
|
mhex Apprentice
Joined: 18 Feb 2005 Posts: 160 Location: Germany/Berlin
|
Posted: Wed Jul 30, 2008 4:01 pm Post subject: |
|
|
Additionally i had to reemerge pycairo
|
|
Back to top |
|
|
seifn06 Tux's lil' helper
Joined: 19 Sep 2004 Posts: 85 Location: Lowell, Michigan
|
Posted: Tue Aug 19, 2008 12:07 pm Post subject: |
|
|
I too ran into this problem. I was recompiling Avahi for a Gnome system when I got the error about pygtk:
Code: |
checking for python module gtk... no
configure: error: Could not find Python module gtk
!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-dns/avahi-0.6.22-r1/work/avahi-0.6.22/config.log
*
* ERROR: net-dns/avahi-0.6.22-r1 failed.
|
Running
Code: | emerge -av pygobject pygtk |
allowed me to completely compile avahi. |
|
Back to top |
|
|
ferreirafm Guru
Joined: 28 Jul 2005 Posts: 487 Location: Sao Paulo, Brazil
|
Posted: Tue Oct 21, 2008 2:14 pm Post subject: |
|
|
ch4os wrote: | Haa SOLVED!!
/usr/lib/python2.5/site-packages/pygtk.py is symlink and points to pygtk.py-2.0
/usr/lib/python2.5/site-packages/pygtk.pth is also symlink and points to pygtk.pth-2.0
but these files are owned by pygobject not by fuc*** pygtk
solution:
Code: | emerge -av pygobject pygtk |
|
Great! The magic bullet! |
|
Back to top |
|
|
ciosbel n00b
Joined: 11 Oct 2009 Posts: 1
|
Posted: Sun Oct 11, 2009 1:40 pm Post subject: |
|
|
ferreirafm wrote: | ch4os wrote: | Haa SOLVED!!
/usr/lib/python2.5/site-packages/pygtk.py is symlink and points to pygtk.py-2.0
/usr/lib/python2.5/site-packages/pygtk.pth is also symlink and points to pygtk.pth-2.0
but these files are owned by pygobject not by fuc*** pygtk
solution:
Code: | emerge -av pygobject pygtk |
|
Great! The magic bullet! |
solved for me too. |
|
Back to top |
|
|
Jose.Torres n00b
Joined: 23 Nov 2010 Posts: 1
|
Posted: Wed Nov 24, 2010 3:23 am Post subject: |
|
|
This is still relevant today with upgrade from Python 2.6 --> 2.7.
Thanks for the tip on pygobject! |
|
Back to top |
|
|
|