Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[python] ImportError: No module named pygtk (resolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
dapsaille
Advocate
Advocate


Joined: 02 Aug 2004
Posts: 2366
Location: Paris

PostPosted: Sun Feb 24, 2008 11:39 am    Post subject: [python] ImportError: No module named pygtk (resolu) Reply with quote

Bonjour à tous .

Voila je souhaite utiliser un soft qui nécessite pygtk .

J'ai émergé pygtk donc

Code:

GENTOO64 florent # emerge pygtk -av

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-python/pygtk-2.12.1  USE="X opengl -doc -examples" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]     


mais il ne semble pas détecté par python

Code:

GENTOO64 florent # python
Python 2.5.1 (r251:54863, Feb 18 2008, 13:32:41)
[GCC 4.2.3 (Gentoo 4.2.3 p1.0)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygtk
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pygtk
>>>         



Aurai-je oublié une étape ??


Last edited by dapsaille on Sun Feb 24, 2008 11:55 am; edited 1 time in total
Back to top
View user's profile Send private message
CryoGen
Veteran
Veteran


Joined: 11 Feb 2004
Posts: 1426
Location: Bamako - Mali - Afrique

PostPosted: Sun Feb 24, 2008 11:44 am    Post subject: Reply with quote

Code:
# python-updater


:?:
_________________
- CryoGen` on #gentoofr@irc.freenode.net
- ~amd64 / KDE4
- I'm the bone of my sword...
Back to top
View user's profile Send private message
dapsaille
Advocate
Advocate


Joined: 02 Aug 2004
Posts: 2366
Location: Paris

PostPosted: Sun Feb 24, 2008 11:45 am    Post subject: Reply with quote

Il me réinstalles des softs ...

Code:

GENTOO64 bin # python-updater
 * Starting Python Updater from 2.4 to 2.5 :
 * Searching for packages with files in /usr/lib/python2.4 /usr/lib32/python2.4 /usr/lib64/python2.4 ..
 * Adding to list (manually): =dev-libs/boost-1.34.1-r2
 * Adding to list: =dev-python/pycrypto-2.0.1-r6
 * Adding to list: =dev-python/pygobject-2.14.0
 * Adding to list: =dev-python/pygobject-2.14.0

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-libs/boost-1.34.1-r2  USE="-debug -doc -icu -pyste -tools" 12,689 kB
[ebuild   R   ] dev-python/pycrypto-2.0.1-r6  USE="-bindist -gmp -test" 151 kB
[ebuild   R   ] dev-python/pygobject-2.14.0  USE="-debug -doc -examples" 353 kB


Une sorte de revdep-rebuild ?

Super cela fonctionne .. mais je pige pas le pourquoi du comment ^^

Merci
Back to top
View user's profile Send private message
Desintegr
l33t
l33t


Joined: 25 Mar 2004
Posts: 863
Location: France - Orléans

PostPosted: Sun Feb 24, 2008 11:59 am    Post subject: Reply with quote

Quand tu as installé pygtk, tu l'as surement installé pour python 2.4. Vérifie avec equery f --filter=dir pygtk | grep python.

python-updater permet de réinstaller pour python 2.5 les ebuilds précédemment installés pour python 2.4.
_________________
Gentoo ~AMD64
Hoc Volo, Sic Jubeo !
Mon wiki : http://desintegr.free.fr
Back to top
View user's profile Send private message
dapsaille
Advocate
Advocate


Joined: 02 Aug 2004
Posts: 2366
Location: Paris

PostPosted: Sun Feb 24, 2008 12:22 pm    Post subject: Reply with quote

Desintegr wrote:
Quand tu as installé pygtk, tu l'as surement installé pour python 2.4. Vérifie avec equery f --filter=dir pygtk | grep python.

python-updater permet de réinstaller pour python 2.5 les ebuilds précédemment installés pour python 2.4.



GENTOO64 florent # equery f --filter=dir pygtk | grep python.
/usr/lib64/python2.5
/usr/lib64/python2.5/site-packages
/usr/lib64/python2.5/site-packages/gtk-2.0
/usr/lib64/python2.5/site-packages/gtk-2.0/gtk
GENTOO64 florent #


Je n'ai pas vu passer python 2.4 ma réinstall date de 10 jours ... strange ^^
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
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