Sie sind nicht angemeldet.

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.

1

11.10.2008, 10:40

Gnome 2.22 und gdesklet Probleme

Hallo Leute,

nach langer langer Zeit bin ich mal wieder hier um eine Frage zu stellen bzw. ein Problem zu lösen. Ich verwende ja nun Gnome 2.22.3 und wollte mir gdesklets installieren. Dies klappte auch problemlos, aber starten lässt es sich nicht. Gebe ich

Quellcode

1
gdesklets


in die Konsole eingibt er folgendes aus:

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


Nun hab ich mich schon ein wenig umgeschaut und gelesen das ich python mit dem USE-Flag "tk" emergen soll. Dies habe ich getan aber die Reaktion von gdesklets ist die gleiche. gdesklets-core hat bei mir die Version 0.36-r1 welche auch als stable bereitgestellt ist.

Dinge wie "python-updater" habe auch ausprobiert.

Schönes, sonniges Wochenende und vielen Dank schonmal im Voraus.

Tommy

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Tommy« (15.10.2008, 14:21)


2

13.10.2008, 06:31

Welche Version von pygtk hast du installiert? Und ... wo? (Python-2.5 ist gerfragt ..)
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

3

13.10.2008, 14:29

Hallo dyle,

also folgende Versionen sind drauf:

pygtk-2.12.1-r2 -> /usr/lib/pygtk aber auch /usr/share/pygtk :huh:
python-2.5.2-r7 -> /usr/lib/python2.5 (hoffe das ist richtig)

Tommy

4

13.10.2008, 16:32

Also hast du pygtk drauf ... ist es unter python-2.5 eingerichtet?

Also sind Teile davon in /usr/lib/python2.5/site-packages installiert? Check mal mit:

Quellcode

1
2
# qlist dev-python/pygtk | grep python2.5 | wc -l
42


Reich vlt. auch mal ein emerge --info durch ...
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

5

13.10.2008, 16:57

Zitat


Also hast du pygtk drauf ... ist es unter python-2.5 eingerichtet?


Da komm ich leider nicht mehr mit. ;(

Zur anderen Frage:

Quellcode

1
2
localhost tommy # qlist dev-python/pygtk | grep python2.5 | wc -l
42


Scheint also als würde Teile dort installiert sein.

emerge --info

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


Tommy

6

13.10.2008, 17:06

Hm, sieht an sich ja gut aus ... gib mal bitte das Ergebnis von

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']
durch. Anm.: mit <ctrl>-d kommst du da wieder raus ... ;)
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

7

13.10.2008, 17:16

Also wenn ich die Bestandteile hinter ">>>" eingeben sollte kommt folgendes raus.

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
>>>


Sieht nun, im Vergleich zu deiner Ausgabe, schon etwas anders aus. :)

Tommy

8

13.10.2008, 18:25

Hast du was in /usr/lib/python2.5/site-packages/gtk-2.0/gtk?

Ansonsten: revdep-rebuild, etc-update & Co. alles durch?

Dann: "emerge pygtk" nochmals ... (BTW: ich habe das USE "tk" auch nicht gesetzt. Daran wirds nicht liegen ...)

Mein python hier

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.


----

Anm.: versuch bei deinen Experimenten bitte nicht python zu entfernen! Wenn das passiert, dann hast du kein portage/emerge mehr ... ;)
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

9

13.10.2008, 19:00

Zitat


Hast du was in /usr/lib/python2.5/site-packages/gtk-2.0/gtk?


Ja, da liegen jede Menge Dateien drin.

Habe nun ebenfalls die Pythonversion auf 2.5.2-r8 erhöht aber nach wie vor keine Besserung. Werde ich wohl oder übel auf gdesklets verzichten müssen. Dinge wie update-etc und revdep-rebuild brachten leider nichts. Habe pygtk deinstalliert und wieder installiert sowie nochmals gdesklets-core. :huh:

Tommy

10

13.10.2008, 21:37

Also ich würde noch nicht aufgeben.

Ich habe übersehen, das du "import_gtk;" gemacht hast, und nicht "import gtk;" mit einem space dazwischen (ist wichtig!).

Kannst du noch mal das testen und mir die exakte Ausgabe posten.

Dann gibt es weitere Möglichlkeiten, diesem Problem auf dem Pelz zu rücken ...
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

11

13.10.2008, 21:54

Hallo,

sry für die falsche Eingabe meinerseits. Nun mit import 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
>>>


Das ist die komplette Ausgabe.

Tommy

12

14.10.2008, 06:29

Hm, ich denke, irgendwas ist auf deiner Maschine durcheinander. Das Modul ist an sich ja installier, wie du sagst, bloß beim Laden passt es nicht ...

Ist dein Rechenr online und kann man da mal raufgucken?
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

13

15.10.2008, 09:49

Hallo dyle,

es ist leider ein lokaler Rechner, also kein Server oder so. :S Ja es sind eigentlich alle benötigten Pakete drauf. Alles andere funktioniert bei Gentoo ohne Probleme AUSSER (vielleicht im gleichen Zusammenhang) die Infoanzeige (System -> Info zu GNOME). Diese startet auch nicht.

Tommy

14

15.10.2008, 11:04

Hm, das mit Server oder @home ist ja nicht wirklich wichtig. Wenn es ein Server ist, dann kommt man via SSH halt gleich rauf. Wenn es ein Rechner zu Hause ist, dann ist mögl. das Port Forwarding an deinem Router (hast du einen Router?) einzuschalten. Einfach die IP deines Systems notieren und los.

Spricht also nichts dagegen mal mit SSH auf die Maschine zu gucken, es sei denn es passt dir nicht.

Ich würde ja auch nicht wollen, dass jemand, dessen Gesicht ich nicht mal kenne, meine Porno-Sammlung studiert .. *g* ... 8o

OK, im ernst: wenn du willst, schick mir eine PN. ;)
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

15

15.10.2008, 11:19

Hallo dyle,

nein kein Problem, ich hab keine sogenannte Sammlung auf dem Rechner. Bin aber derzeit nicht zu Hause. Morgen wäre ein guter Zeitpunkt. Ich melde mich rechtzeitig per PN. :thumbsup:

Tommy

16

15.10.2008, 14:20

Nochmal hallo dyle,

ich hab das Problem lösen können. :D

Ich habe das Paket pygobject re-emerged und dieses setzte dann, sichtbar am ende vom emergen, mehrere symlinks neu. Nun klappt alles auch die Gnome-Info Anzeige.

Vielen Dank nochmals. :thumbsup:

Tommy