Freevo: checking for pygame... not found

Wenn du dir nicht sicher bist, in welchem der anderen Foren du die Frage stellen sollst, dann bist du hier im Forum für allgemeine Fragen sicher richtig.
Antworten
Finswimmer
User
Beiträge: 3
Registriert: Freitag 7. Juli 2006, 20:56

Hi!

Ich bin hier neu, und prinzipiell erstmal hier, um zu verstehen, warum ich Freevo nicht installieren kann. Es bricht so ab:

Code: Alles auswählen

server freevo-1.5.4 # python setup.py install
checking for mmpython...   found
checking for pygame...     not found
So: Ich glaube hier ist der Aufruf, der nicht funktioniert:

Code: Alles auswählen

try:
    from xml.utils import qp_xml
    from xml.dom import minidom

    # now load other modules to check if all requirements are installed
    import Image
    import pygame
    import twisted
    import Numeric

    import config
Leider weiß ich nicht, wie das ist mit der import Funktion. Im Internet stehtu nur, dass Python automatisch in seinem Base Directory nach dem "Programm" sucht.

Gut:

Code: Alles auswählen

/usr/include/python2.4/pygame
/usr/include/python2.4/pygame/ffmovie.h
/usr/include/python2.4/pygame/font.h
/usr/include/python2.4/pygame/mixer.h
/usr/include/python2.4/pygame/pygame.h
/usr/lib/python2.4/site-packages/pygame
/usr/lib/python2.4/site-packages/pygame/__init__.py
/usr/lib/python2.4/site-packages/pygame/color.py
/usr/lib/python2.4/site-packages/pygame/colordict.py
/usr/lib/python2.4/site-packages/pygame/cursors.py
/usr/lib/python2.4/site-packages/pygame/locals.py
/usr/lib/python2.4/site-packages/pygame/macosx.py
/usr/lib/python2.4/site-packages/pygame/pkgdata.py
/usr/lib/python2.4/site-packages/pygame/sprite.py
/usr/lib/python2.4/site-packages/pygame/sysfont.py
/usr/lib/python2.4/site-packages/pygame/version.py
/usr/lib/python2.4/site-packages/pygame/imageext.so
/usr/lib/python2.4/site-packages/pygame/font.so
/usr/lib/python2.4/site-packages/pygame/mixer.so
/usr/lib/python2.4/site-packages/pygame/mixer_music.so
/usr/lib/python2.4/site-packages/pygame/surfarray.so
/usr/lib/python2.4/site-packages/pygame/sndarray.so
/usr/lib/python2.4/site-packages/pygame/movie.so
/usr/lib/python2.4/site-packages/pygame/base.so
/usr/lib/python2.4/site-packages/pygame/cdrom.so
/usr/lib/python2.4/site-packages/pygame/constants.so
/usr/lib/python2.4/site-packages/pygame/display.so
/usr/lib/python2.4/site-packages/pygame/event.so
/usr/lib/python2.4/site-packages/pygame/key.so
/usr/lib/python2.4/site-packages/pygame/mouse.so
/usr/lib/python2.4/site-packages/pygame/rect.so
/usr/lib/python2.4/site-packages/pygame/rwobject.so
/usr/lib/python2.4/site-packages/pygame/surface.so
/usr/lib/python2.4/site-packages/pygame/surflock.so
/usr/lib/python2.4/site-packages/pygame/time.so
/usr/lib/python2.4/site-packages/pygame/joystick.so
/usr/lib/python2.4/site-packages/pygame/draw.so
/usr/lib/python2.4/site-packages/pygame/image.so
/usr/lib/python2.4/site-packages/pygame/overlay.so
/usr/lib/python2.4/site-packages/pygame/transform.so
/usr/lib/python2.4/site-packages/pygame/freesansbold.ttf
/usr/lib/python2.4/site-packages/pygame/pygame.ico
/usr/lib/python2.4/site-packages/pygame/pygame_icon.bmp
/usr/lib/python2.4/site-packages/pygame/pygame_icon.icns
/usr/lib/python2.4/site-packages/pygame/pygame_icon.tiff
/usr/lib/python2.4/site-packages/pygame/__init__.pyc
/usr/lib/python2.4/site-packages/pygame/color.pyc
/usr/lib/python2.4/site-packages/pygame/colordict.pyc
/usr/lib/python2.4/site-packages/pygame/cursors.pyc
/usr/lib/python2.4/site-packages/pygame/locals.pyc
/usr/lib/python2.4/site-packages/pygame/macosx.pyc
/usr/lib/python2.4/site-packages/pygame/pkgdata.pyc
/usr/lib/python2.4/site-packages/pygame/sprite.pyc
/usr/lib/python2.4/site-packages/pygame/sysfont.pyc
/usr/lib/python2.4/site-packages/pygame/version.pyc
/usr/lib/python2.4/site-packages/pygame/__init__.pyo
/usr/lib/python2.4/site-packages/pygame/color.pyo
/usr/lib/python2.4/site-packages/pygame/colordict.pyo
/usr/lib/python2.4/site-packages/pygame/cursors.pyo
/usr/lib/python2.4/site-packages/pygame/locals.pyo
/usr/lib/python2.4/site-packages/pygame/macosx.pyo
/usr/lib/python2.4/site-packages/pygame/pkgdata.pyo
/usr/lib/python2.4/site-packages/pygame/sprite.pyo
/usr/lib/python2.4/site-packages/pygame/sysfont.pyo
/usr/lib/python2.4/site-packages/pygame/version.pyo
/usr/share/doc/pygame-1.6.2
/usr/share/doc/pygame-1.6.2/html
/usr/share/doc/pygame-1.6.2/html/index.html
/usr/share/doc/pygame-1.6.2/html/logos.html
/usr/share/doc/pygame-1.6.2/html/pygame_logo.gif
/usr/share/doc/pygame-1.6.2/html/pygame_powered.gif
/usr/share/doc/pygame-1.6.2/html/pygame_small.gif
/usr/share/doc/pygame-1.6.2/html/pygame_tiny.gif
/usr/share/doc/pygame-1.6.2/html/ref
/usr/share/doc/pygame-1.6.2/html/ref/Channel.html
/usr/share/doc/pygame-1.6.2/html/ref/CD.html
/usr/share/doc/pygame-1.6.2/html/ref/Clock.html
/usr/share/doc/pygame-1.6.2/html/ref/Font.html
/usr/share/doc/pygame-1.6.2/html/ref/Joystick.html
/usr/share/doc/pygame-1.6.2/html/ref/Movie.html
/usr/share/doc/pygame-1.6.2/html/ref/Overlay.html
/usr/share/doc/pygame-1.6.2/html/ref/Rect.html
/usr/share/doc/pygame-1.6.2/html/ref/Sound.html
/usr/share/doc/pygame-1.6.2/html/ref/Surface.html
/usr/share/doc/pygame-1.6.2/html/ref/pygame.html
/usr/share/doc/pygame-1.6.2/html/ref/pygame_cdrom.html
/usr/share/doc/pygame-1.6.2/html/ref/pygame_color.html
/usr/share/doc/pygame-1.6.2/html/ref/pygame_constants.html
/usr/share/doc/pygame-1.6.2/html/ref/pygame_cursors.html
/usr/share/doc/pygame-1.6.2/html/ref/pygame_display.html
/usr/share/doc/pygame-1.6.2/html/ref/pygame_draw.html
/usr/share/doc/pygame-1.6.2/html/ref/pygame_event.html
/usr/share/doc/pygame-1.6.2/html/ref/pygame_font.html
/usr/share/doc/pygame-1.6.2/html/ref/pygame_image.html
/usr/share/doc/pygame-1.6.2/html/ref/pygame_joystick.html
/usr/share/doc/pygame-1.6.2/html/ref/pygame_key.html
/usr/share/doc/pygame-1.6.2/html/ref/pygame_mixer.html
/usr/share/doc/pygame-1.6.2/html/ref/pygame_mixer_music.html
/usr/share/doc/pygame-1.6.2/html/ref/pygame_mouse.html
/usr/share/doc/pygame-1.6.2/html/ref/pygame_movie.html
/usr/share/doc/pygame-1.6.2/html/ref/pygame_sndarray.html
/usr/share/doc/pygame-1.6.2/html/ref/pygame_sprite.html
/usr/share/doc/pygame-1.6.2/html/ref/pygame_surfarray.html
/usr/share/doc/pygame-1.6.2/html/ref/pygame_time.html
/usr/share/doc/pygame-1.6.2/html/ref/pygame_transform.html
/usr/share/doc/pygame-1.6.2/html/tut
/usr/share/doc/pygame-1.6.2/html/tut/chimp
/usr/share/doc/pygame-1.6.2/html/tut/chimp/ChimpLineByLine.html
/usr/share/doc/pygame-1.6.2/html/tut/chimp/chimp.py.html
/usr/share/doc/pygame-1.6.2/html/tut/chimp/chimpshot.gif
/usr/share/doc/pygame-1.6.2/html/tut/DisplayModes.html
/usr/share/doc/pygame-1.6.2/html/tut/Executable.html
/usr/share/doc/pygame-1.6.2/html/tut/ImportInit.html
/usr/share/doc/pygame-1.6.2/html/tut/MoveIt.html
/usr/share/doc/pygame-1.6.2/html/tut/SpriteIntro.html
/usr/share/doc/pygame-1.6.2/html/tut/newbieguide.html
/usr/share/doc/pygame-1.6.2/html/tut/intro
/usr/share/doc/pygame-1.6.2/html/tut/intro/ball.gif
/usr/share/doc/pygame-1.6.2/html/tut/intro/blade.jpg
/usr/share/doc/pygame-1.6.2/html/tut/intro/freedom.jpg
/usr/share/doc/pygame-1.6.2/html/tut/intro/intro.html
/usr/share/doc/pygame-1.6.2/html/tut/surfarray
/usr/share/doc/pygame-1.6.2/html/tut/surfarray/SurfarrayIntro.html
/usr/share/doc/pygame-1.6.2/html/tut/surfarray/allblack.jpg
/usr/share/doc/pygame-1.6.2/html/tut/surfarray/flipped.jpg
/usr/share/doc/pygame-1.6.2/html/tut/surfarray/imgarray.jpg
/usr/share/doc/pygame-1.6.2/html/tut/surfarray/redimg.jpg
/usr/share/doc/pygame-1.6.2/html/tut/surfarray/scaledown.jpg
/usr/share/doc/pygame-1.6.2/html/tut/surfarray/scaleup.jpg
/usr/share/doc/pygame-1.6.2/html/tut/surfarray/soften.jpg
/usr/share/doc/pygame-1.6.2/html/tut/surfarray/striped.jpg
/usr/share/doc/pygame-1.6.2/html/tut/surfarray/xfade.jpg
/usr/share/doc/pygame-1.6.2/html/tut/tom
/usr/share/doc/pygame-1.6.2/html/tut/tom/MakeGames.html
/usr/share/doc/pygame-1.6.2/html/tut/tom/basic.png
/usr/share/doc/pygame-1.6.2/html/tut/tom/event-flowchart.png
/usr/share/doc/pygame-1.6.2/html/tut/tom/formulae.png
/usr/share/doc/pygame-1.6.2/html/tut/tom/games2.html
/usr/share/doc/pygame-1.6.2/html/tut/tom/games3.html
/usr/share/doc/pygame-1.6.2/html/tut/tom/games4.html
/usr/share/doc/pygame-1.6.2/html/tut/tom/games5.html
/usr/share/doc/pygame-1.6.2/html/tut/tom/games6.html
/usr/share/doc/pygame-1.6.2/html/tut/tom/radians.png
/usr/share/doc/pygame-1.6.2/html/util
/usr/share/doc/pygame-1.6.2/html/util/doclate.html
/usr/share/doc/pygame-1.6.2/html/util/listlate.html
/usr/share/doc/pygame-1.6.2/html/util/pagelate.html
/usr/share/doc/pygame-1.6.2/MANIFEST.in.gz
/usr/share/doc/pygame-1.6.2/WHATSNEW.gz
/usr/share/doc/pygame-1.6.2/examples
/usr/share/doc/pygame-1.6.2/examples/aliens.py
/usr/share/doc/pygame-1.6.2/examples/arraydemo.py
/usr/share/doc/pygame-1.6.2/examples/chimp.py
/usr/share/doc/pygame-1.6.2/examples/eventlist.py
/usr/share/doc/pygame-1.6.2/examples/fonty.py
/usr/share/doc/pygame-1.6.2/examples/glcube.py
/usr/share/doc/pygame-1.6.2/examples/liquid.py
/usr/share/doc/pygame-1.6.2/examples/moveit.py
/usr/share/doc/pygame-1.6.2/examples/oldalien.py
/usr/share/doc/pygame-1.6.2/examples/overlay.py
/usr/share/doc/pygame-1.6.2/examples/readme.txt
/usr/share/doc/pygame-1.6.2/examples/sound.py
/usr/share/doc/pygame-1.6.2/examples/stars.py
/usr/share/doc/pygame-1.6.2/examples/vgrade.py
/usr/share/doc/pygame-1.6.2/examples/data
/usr/share/doc/pygame-1.6.2/examples/data/alien1.gif
/usr/share/doc/pygame-1.6.2/examples/data/alien2.gif
/usr/share/doc/pygame-1.6.2/examples/data/alien3.gif
/usr/share/doc/pygame-1.6.2/examples/data/arraydemo.bmp
/usr/share/doc/pygame-1.6.2/examples/data/background.gif
/usr/share/doc/pygame-1.6.2/examples/data/bomb.gif
/usr/share/doc/pygame-1.6.2/examples/data/boom.wav
/usr/share/doc/pygame-1.6.2/examples/data/car_door.wav
/usr/share/doc/pygame-1.6.2/examples/data/chimp.bmp
/usr/share/doc/pygame-1.6.2/examples/data/danger.gif
/usr/share/doc/pygame-1.6.2/examples/data/explosion1.gif
/usr/share/doc/pygame-1.6.2/examples/data/fist.bmp
/usr/share/doc/pygame-1.6.2/examples/data/house_lo.wav
/usr/share/doc/pygame-1.6.2/examples/data/liquid.bmp
/usr/share/doc/pygame-1.6.2/examples/data/oldplayer.gif
/usr/share/doc/pygame-1.6.2/examples/data/player1.gif
/usr/share/doc/pygame-1.6.2/examples/data/punch.wav
/usr/share/doc/pygame-1.6.2/examples/data/secosmic_lo.wav
/usr/share/doc/pygame-1.6.2/examples/data/shot.gif
/usr/share/doc/pygame-1.6.2/examples/data/whiff.wav
/usr/share/doc/pygame-1.6.2/examples/data/yuv_1.pgm
Also installiert ist es doch wunderschön.

Wie gesagt, ich weiß leider nicht, was ich noch machen kann.

Auf einem anderen Rechner läuft das Python Skript ohne Probleme durch.

So: Damit es noch ein paar Infos gibt:

Gentoo, x86
dev-lang/python-2.4.3-r1USE="berkdb gdbm ncurses readline ssl -X -bootstrap -build -doc -ipv6 -nocxx -tcltk -ucs2" 0 kB


Bin ratlos, und hoffe, dass ihr mir helfen könnt.

Danke

Tobi
BlackJack

Die zitierte Quelltextstelle sieht nicht nach dem Übeltäter aus. Da wird ja nicht der "checking for pygame" Text ausgegeben. Such mal wo "checking for" ausgegeben wird und auf was da geprüft wird.

Ansonsten könntest Du auch mal testen ob Du pygame "per Hand" importieren kannst. Also auf der Konsole python aufrufen und dann `import pygame` eingeben:

Code: Alles auswählen

$ python
Python 2.4.3 (#2, Apr 27 2006, 14:43:58)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame
>>> pygame.version.ver
'1.7.1release'
Finswimmer
User
Beiträge: 3
Registriert: Freitag 7. Juli 2006, 20:56

Code: Alles auswählen

server freevo-1.5.4 # python
Python 2.4.3 (#1, Jul  1 2006, 17:09:32)
[GCC 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.4/site-packages/pygame/__init__.py", line 64, in ?
    from pygame.base import *
ImportError: libdirectfb-0.9.so.24: cannot open shared object file: No such file or directory
>>>
Das Problem ist, ich habe letztens dev-libs/DirectFB-0.9.25.1 installiert.
Python versucht anscheinend noch die alten Dateien zu laden...

Kann ich das irgendwie updaten, ohne die Programme neu zu installieren?

Danke

Tobi
BlackJack

Gibt es denn irgendeine andere Version von der `libdirectfb-0.*.so.*`? Wenn ja, dann kannst Du versuchen einen symbolischen Link auf die vorhandene zu setzen.

Sauberer wäre es natürlich `pygame` und/oder `SDL` neu zu übersetzen, damit die gegen vorhandene Bibliotheken gelinkt sind.
Finswimmer
User
Beiträge: 3
Registriert: Freitag 7. Juli 2006, 20:56

Code: Alles auswählen

server ~ # python
Python 2.4.3 (#1, Jul  8 2006, 03:02:02)
[GCC 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame
>>>
Das ist aber irgendwie nun auch nicht das, was bei dir war.
Anscheinend geht der Aufruf, er bringt aber nichts zurück.

Nun geht aber der Aufruf für Freevo.

Gut, da das ganze ja nun einen Lerneffekt haben soll:

Bei Freevo hat er anscheinend auch nur "import pygame" gemacht, allerdings die Fehlermeldung unterdrückt, so dass ich nicht sehen konnte, dass es an der falschen Version von libdirectfb liegt.

Gut. Kann ich dieses neue "Verlinken" auf die PythonProgramm Versionen irgendwie schneller machen? Sowas wie "python-dep-scan"? Denn jedes Programm neu zu installieren, ist ja eigentlich unschön, denn python muss ja nur merken, dass es nicht libdirecftb-0.9.0-24 sondern libdirecftb-0.9.0-25 heißt...



Danke

Tobi
Antworten