Lieber Besucher, herzlich willkommen bei: GentooForum.de. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
Quellcode |
|
1 |
gdesklets |
Quellcode |
|
1 2 3 4 5 6 7 8 9 |
localhost tommy # gdesklets Traceback (most recent call last): File "/usr/bin/gdesklets", line 3, in <module> from main import client, DISPLAY, HOME, USERHOME File "//usr/lib/gdesklets/main/__init__.py", line 3, in <module> import utils File "//usr/lib/gdesklets/utils/__init__.py", line 3, in <module> import gtk ImportError: No module named gtk |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Tommy« (15.10.2008, 14:21)
Quellcode |
|
1 2 |
# qlist dev-python/pygtk | grep python2.5 | wc -l 42 |
Zitat
Also hast du pygtk drauf ... ist es unter python-2.5 eingerichtet?
Quellcode |
|
1 2 |
localhost tommy # qlist dev-python/pygtk | grep python2.5 | wc -l 42 |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
localhost tommy # emerge --info Portage 2.1.4.5 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r8 i686) ================================================================= System uname: 2.6.25-gentoo-r8 i686 AMD Turion(tm) 64 X2 Mobile Technology TL-58 Timestamp of tree: Mon, 13 Oct 2008 14:17:01 +0000 app-shells/bash: 3.2_p33 dev-lang/python: 2.5.2-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -msse3 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=athlon-xp -msse3 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ " LANG="de_DE.UTF-8" LC_ALL="de_DE.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="de" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" 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" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 acl acpi alsa avahi-daemon avi berkdb bzip2 caps cdparanoia cdr cli cracklib crypt cups dbus divx dri dts dvd dvdr dvdread encode esd ffmpeg flac fortran gdbm gif gnome gpm gtk hal iconv ipv6 isdnlog jpeg lame lm_sensors midi mjpeg mmx mmxext mp3 mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre perl pppd python quicktime readline reflection session spl sse ssl symlink sysfs tcpd unicode usb v4l vcd vorbis wifi win32codecs x86 xorg xulrunner zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="fglrx vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY |
Quellcode |
|
1 2 3 4 5 6 7 |
$ python Python 2.5.2 (r252:60911, Sep 25 2008, 11:09:50) [GCC 4.3.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import gtk; >>> gtk.__path__ ['/usr/lib/python2.5/site-packages/gtk-2.0/gtk'] |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
localhost tommy # python Python 2.5.2 (r252:60911, Oct 11 2008, 09:12:20) [GCC 4.1.2 (Gentoo 4.1.2 p1.1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import_gtk; Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'import_gtk' is not defined >>> gtk.__path__ Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'gtk' is not defined >>> |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 |
# eix -e python [I] dev-lang/python Available versions: (2.4) 2.4.4-r5 2.4.4-r6 2.4.4-r14 (~)2.4.4-r15 (2.5) 2.5.2-r7 (~)2.5.2-r8 (2.6) [M](~)2.6-r2 {berkdb bootstrap build cxx doc elibc_uclibc examples gdbm ipv6 ncurses nocxx nothreads readline sqlite ssl threads tk ucs2 wininst} Installed versions: 2.5.2-r8(2.5)(11:11:25 AM 09/25/2008)(berkdb examples gdbm ipv6 ncurses readline sqlite ssl threads -bootstrap -build -doc -elibc_uclibc -tk -ucs2 -wininst) Homepage: http://www.python.org/ Description: Python is an interpreted, interactive, object-oriented programming language. |
Zitat
Hast du was in /usr/lib/python2.5/site-packages/gtk-2.0/gtk?
Quellcode |
|
1 2 3 4 5 6 7 8 9 |
localhost tommy # python Python 2.5.2 (r252:60911, Oct 13 2008, 19:09:15) [GCC 4.1.2 (Gentoo 4.1.2 p1.1)] 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 >>> |