Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86424 - btdownloadgui.py from bittorrent-4.0.0 fails to run because constant gtk.TARGET_SAME_APP is undefined.
Summary: btdownloadgui.py from bittorrent-4.0.0 fails to run because constant gtk.TARG...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-23 13:03 UTC by Adam Jones
Modified: 2006-06-21 22:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Jones 2005-03-23 13:03:14 UTC
Using:
bittorrent-4.0.0
pygtk-2.6.1
gtk+-2.6.4

Reproducible: Always
Steps to Reproduce:
1. Run btdownloadgui.py with any valid torrent file

Actual Results:  
$ btdownloadgui.py 
RuntimeError: can't create const
Traceback (most recent call last):
  File "/usr/bin/btdownloadgui.py", line 47, in ?
    from BitTorrent.GUI import * 
  File "/usr/lib/python2.3/site-packages/BitTorrent/GUI.py", line 33, in ?
    BT_TARGET       = ("application/x-bittorrent", gtk.TARGET_SAME_APP,
BT_TARGET_TYPE      )
AttributeError: 'module' object has no attribute 'TARGET_SAME_APP'


Expected Results:  
Torrent file downloaded.

btdownloadcurses.py works as expected.

Portage 2.0.51.19 (default-linux/x86/2004.0, gcc-3.4.2, glibc-2.3.4.20040808-r0,
2.6.11.2 i686)
=================================================================
System uname: 2.6.11.2 i686 mobile AMD Athlon(tm) XP
Gentoo Base System version 1.5.3
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jun 20 2004, 18:07:44)]
distcc 2.14 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r4
sys-devel/automake:  1.8.5-r1
sys-devel/binutils:  2.15.90.0.1.1-r3
sys-devel/libtool:   1.5.2-r5
virtual/os-headers:  2.6.8.1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mtune=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb
/usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms userpriv
usersandbox"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/
http://gentoo.mirrors.pair.com/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo/"
LC_ALL="en_GB.iso88591"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 3dnow X aalib acpi alsa apm avi berkdb bitmap-fonts bonobo cdr crypt
cups curl dga dri dvd dvdr emboss encode fam flac font-server foomaticdb fortran
gdbm gif glx gnome gpm gstreamer gtk gtk2 gtkhtml imagemagick imlib ipv6 java
jpeg junit kde libg++ libwww lirc mad matroska mbox mikmod mmx motif mozilla mp3
mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt
quicktime readline scanner sdl slang spell sse ssl tcltk tcpd tiff truetype
truetype-fonts type1-fonts usb xface xml xml2 xmms xprint xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LDFLAGS
Comment 1 Freyr Gunnar Ólafsson 2005-06-25 14:46:22 UTC
Same thing happenes here. When I run btdownloadgui.py I get this:
Traceback (most recent call last):
  File "/usr/bin/btdownloadgui.py", line 32, in ?
    import gtk

emerge info:

Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.11.11 i686)
=================================================================
System uname: 2.6.11.11 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.6.12
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.9
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon-tbird -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache digest distlocks sandbox sfperms strict userpriv
usersandbox"
GENTOO_MIRRORS="ftp://ftp.rhnet.is/gentoo http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="is"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex 3dnowext S3TC X aalib acpi acpi4linux aliaschain alsa
apache2 avi bash-completion berkdb bindist bitmap-fonts blender-game bzip2 bzlib
cdinstall cdparanoia cdr chroot crypt css cups curl dba dga divx4linux dts dvd
dvdread emboss encode examples fam fbcon ffmpeg flac foomaticdb fortran fs ftp
gd gdbm ggi gif gimp gimpprint gnome gpm gstreamer gtk gtk2 icq imagemagick
jabber java javascript joystick jpeg junit kde kqemu libwww mad maildir matroska
md5sum mikmod mjpeg mmx mmxext mng mp3 mpeg mpeg4 mplayer msn music ncurses net
nls nocd nvidia offensive ogg oggvorbis openal opengl oss pam parse-clocks pdf
pdflib perl php physfs png print profile pthreads python qemu-fast qt quicktime
readline real reiserfs samba sblive sdl sftp slang speedo spell src ssl
stencil-buffer subp subtitles svga sysfs tcpd tetex tga theora threads tiff
tokenizer truetype truetype-fonts type1-fonts urandom usb vcd videos vorbis
win32codecs withsamplescripts xanim xface xine xml xml2 xmms xpm xrandr
xscreensaver xv xvid xvmc yahoo zeroconf zlib linguas_is userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 2 Marcin Kryczek (RETIRED) gentoo-dev 2005-08-10 14:49:18 UTC
is that bug still present in current bittorrent version?
Comment 3 Adam Jones 2005-08-10 15:17:49 UTC
(In reply to comment #2)
> is that bug still present in current bittorrent version?

Using bittorrent 4.0.2 and 4.1.2 still gives the same problems on my system. 
(4.1.x seems to have a nasty memory leak somewhere, so I'm using 4.0.2 at present)
Comment 4 Marcin Kryczek (RETIRED) gentoo-dev 2005-08-10 15:50:15 UTC
it seems like a pygtk problem for me. can you try reemerge it?
Comment 5 Adam Jones 2005-08-10 22:39:48 UTC
(In reply to comment #4)
> it seems like a pygtk problem for me. can you try reemerge it?

Agreed.  Upgrading to pygtk-2.6.2 doesn't make any difference, though.
Comment 6 Karol Wojtaszek (RETIRED) gentoo-dev 2005-08-24 05:56:12 UTC
Could you execute `python` and type in input "import gtk". Please show us the
output.
Comment 7 Adam Jones 2005-08-24 09:55:08 UTC
Using the -v flag, I get:

Python 2.3.4 (#1, Jun 20 2004, 18:07:44) 
[GCC 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
dlopen("/usr/lib/python2.3/lib-dynload/readline.so", 2);
import readline # dynamically loaded from /usr/lib/python2.3/lib-dynload/readline.so
>>> import gtk
import gtk # directory /usr/lib/python2.3/site-packages/gtk-2.0/gtk
# /usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.pyc matches
/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py
import gtk # precompiled from
/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.pyc
dlopen("/usr/lib/python2.3/site-packages/gtk-2.0/gobject.so", 2);
import gobject # dynamically loaded from
/usr/lib/python2.3/site-packages/gtk-2.0/gobject.so
# /usr/lib/python2.3/site-packages/gtk-2.0/gtk/keysyms.pyc matches
/usr/lib/python2.3/site-packages/gtk-2.0/gtk/keysyms.py
import gtk.keysyms # precompiled from
/usr/lib/python2.3/site-packages/gtk-2.0/gtk/keysyms.pyc
dlopen("/usr/lib/python2.3/site-packages/gtk-2.0/gtk/_gtk.so", 2);
# /usr/lib/python2.3/encodings/utf_8.pyc matches
/usr/lib/python2.3/encodings/utf_8.py
import encodings.utf_8 # precompiled from /usr/lib/python2.3/encodings/utf_8.pyc
dlopen("/usr/lib/python2.3/site-packages/gtk-2.0/pango.so", 2);
import pango # dynamically loaded from
/usr/lib/python2.3/site-packages/gtk-2.0/pango.so
RuntimeError: can't create const
import gtk._gtk # dynamically loaded from
/usr/lib/python2.3/site-packages/gtk-2.0/gtk/_gtk.so
Comment 8 Marcin Kryczek (RETIRED) gentoo-dev 2005-08-24 13:59:30 UTC
try to recompile x11-libs/pango and (if that won't help) dev-libs/glib
Comment 9 Adam Jones 2005-08-29 13:10:26 UTC
Recompiled pango (1.8.2), glib (2.6.5) and pygtk (2.6.2), but still the same
problem, I'm afraid.
Comment 10 Marcin Kryczek (RETIRED) gentoo-dev 2005-09-25 16:37:44 UTC
do you still got this problem in 4.1.4?
Comment 11 Adam Jones 2005-09-25 22:50:14 UTC
(In reply to comment #10)
> do you still got this problem in 4.1.4?

Unfortunately, yes:

RuntimeError: can't create const
Traceback (most recent call last):
  File "/usr/bin/bittorrent", line 55, in ?
    from BitTorrent.GUI import * 
  File "/usr/lib/python2.3/site-packages/BitTorrent/GUI.py", line 55, in ?
    BT_TARGET       = ("application/x-bittorrent", gtk.TARGET_SAME_APP,
BT_TARGET_TYPE      )
AttributeError: 'module' object has no attribute 'TARGET_SAME_APP'
Comment 12 Jon Hood (RETIRED) gentoo-dev 2006-06-20 09:00:07 UTC
Sorry for the continual "Is it working now?" comments, but how is 4.4.0 for you?
Comment 13 Adam Jones 2006-06-21 22:47:02 UTC
Sorry - I'd forgotten about this bug...  Yes, 4.4.0 works fine here now.