Gentoo Forums
Gentoo Forums
Quick Search: in
pygtk unable to establish symlinks - nicotine won't start
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
tornamodo
Apprentice
Apprentice


Joined: 12 Aug 2005
Posts: 179

PostPosted: Tue Aug 14, 2007 1:26 pm    Post subject: pygtk unable to establish symlinks - nicotine won't start Reply with quote

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
View user's profile Send private message
didymos
Veteran
Veteran


Joined: 09 Oct 2005
Posts: 4798
Location: California

PostPosted: Tue Aug 14, 2007 7:04 pm    Post subject: Reply with quote

emerge --info?
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
ch4os
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jul 2006
Posts: 78
Location: Gdansk, Poland

PostPosted: Sat Aug 25, 2007 3:49 am    Post subject: Reply with quote

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
View user's profile Send private message
didymos
Veteran
Veteran


Joined: 09 Oct 2005
Posts: 4798
Location: California

PostPosted: Sat Aug 25, 2007 4:11 am    Post subject: Reply with quote

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
View user's profile Send private message
ch4os
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jul 2006
Posts: 78
Location: Gdansk, Poland

PostPosted: Sat Aug 25, 2007 5:03 am    Post subject: Reply with quote

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
View user's profile Send private message
didymos
Veteran
Veteran


Joined: 09 Oct 2005
Posts: 4798
Location: California

PostPosted: Sat Aug 25, 2007 5:30 am    Post subject: Reply with quote

Can you re-emerge python?
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
ch4os
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jul 2006
Posts: 78
Location: Gdansk, Poland

PostPosted: Sat Aug 25, 2007 6:41 am    Post subject: Reply with quote

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
View user's profile Send private message
didymos
Veteran
Veteran


Joined: 09 Oct 2005
Posts: 4798
Location: California

PostPosted: Sat Aug 25, 2007 6:49 am    Post subject: Reply with quote

Well, that's annoying. I'll have to remember that in case I ever hit this bug.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
kayssun
n00b
n00b


Joined: 11 Mar 2007
Posts: 13

PostPosted: Tue Sep 18, 2007 8:23 am    Post subject: Reply with quote

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
View user's profile Send private message
nisavid
n00b
n00b


Joined: 23 Sep 2007
Posts: 1

PostPosted: Sun Sep 23, 2007 9:53 pm    Post subject: Reply with quote

ccsm and fusion-icon both fail to start unless pygobject and pygtk are re-emerged
Back to top
View user's profile Send private message
earcam
n00b
n00b


Joined: 30 May 2005
Posts: 26

PostPosted: Thu Oct 11, 2007 8:37 pm    Post subject: Similar issue (Exaile ~amd64) Reply with quote

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
View user's profile Send private message
T-O7
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2004
Posts: 94
Location: Canada

PostPosted: Sun Jul 20, 2008 2:53 am    Post subject: Reply with quote

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
View user's profile Send private message
ebazin
n00b
n00b


Joined: 23 May 2008
Posts: 1
Location: France

PostPosted: Tue Jul 22, 2008 7:57 am    Post subject: Reply with quote

Mee too. I had the same issue and
Code:
 emerge -av pygobject pygtk

solved it!

Cheers
Back to top
View user's profile Send private message
mhex
n00b
n00b


Joined: 18 Feb 2005
Posts: 44
Location: Germany/Berlin

PostPosted: Wed Jul 30, 2008 11:01 am    Post subject: Reply with quote

Additionally i had to reemerge pycairo

Code:

emerge pycairo
Back to top
View user's profile Send private message
seifn06
n00b
n00b


Joined: 19 Sep 2004
Posts: 71
Location: Lowell, Michigan

PostPosted: Tue Aug 19, 2008 7:07 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT - 5 Hours
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