Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 490348 - =www-client/uzbl-2012.05.1 - ImportError: No module named pygtk - Only supports Python 2
Summary: =www-client/uzbl-2012.05.1 - ImportError: No module named pygtk - Only suppor...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: tharvik
URL: https://github.com/ff2000/gentoo-over...
Whiteboard:
Keywords: InOverlay, PATCH
Depends on: 456310 513446
Blocks:
  Show dependency tree
 
Reported: 2013-11-04 07:12 UTC by tman
Modified: 2014-07-07 09:35 UTC (History)
2 users (show)

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 tman 2013-11-04 07:12:13 UTC
pygtk is instaled. but uzbl seems to have problem to fine it.



Reproducible: Always

Actual Results:  
~ $ uzbl-tabbed
Traceback (most recent call last):
  File "/usr/bin/uzbl-tabbed", line 140, in <module>
    import pygtk
ImportError: No module named pygtk
cornix@TuX ~ $ uzbl-tabbed
Traceback (most recent call last):
  File "/usr/bin/uzbl-tabbed", line 140, in <module>
    import pygtk
ImportError: No module named pygtk



Portage 2.2.7 (default/linux/amd64/13.0/desktop, gcc-4.8.1, glibc-2.17, 3.11.6-gentoo x86_64)
=================================================================
System uname: Linux-3.11.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-3740QM_CPU_@_2.70GHz-with-gentoo-2.2
KiB Mem:    24695988 total,  22565028 free
KiB Swap:   25598972 total,  25598972 free
Timestamp of tree: Sun, 03 Nov 2013 23:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r4, 3.2.5-r3, 3.3.2-r2
dev-util/cmake:           2.8.12
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.1-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.11 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo lokal
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/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"
CXXFLAGS="-march=corei7 -O2 -pipe"
DISTDIR="/mnt/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/mnt/portage/packages"
PORTAGE_CONFIGROOT="/"
Comment 1 Rafał Mużyło 2013-11-04 08:20:17 UTC
pygtk is python2 only - could this be the problem ?
Comment 2 tman 2013-11-04 09:09:35 UTC
[I] dev-python/pygtk
     Available versions:  (2) 2.24.0-r3 (~)2.24.0-r4
       {doc examples test PYTHON_TARGETS="python2_6 python2_7"}
     Installed versions:  2.24.0-r4(2)(09:08:37 04.11.2013)(-doc -examples -test PYTHON_TARGETS="python2_7 -python2_6")
     Homepage:            http://www.pygtk.org/
     Description:         GTK+2 bindings for Python

i dont knew. 


i have more then 1 python installed. so it should find pygtk and the right python version.

eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.2 *
  [3]   python3.3
Comment 3 Franz Trischberger 2013-11-04 12:06:34 UTC
Yeah, had the same issue.
The fix is to change the first line in uzbl-tabbed from
#!/usr/bin/env python
to
#!/usr/bin/env python2
Comment 4 Franz Trischberger 2013-11-06 08:44:07 UTC
Just added an adjusted uzbl-9999 ebuild to my overlay which fixes this issue (among others):
https://github.com/ff2000/gentoo-overlay/commit/f13402876c450a578e84e5beeedde792addd1553