Hi

I am trying to package a small app that uses pygame under Ubuntu. I am
running the latest pyinstaller git code I just downloaded. If I run
pyinstaller.py with no flags I get a directory with my app and all the
libraries required. I can run successively my app from command line.
However if I package it with --onefile flag the resulting binary
crashes because it cannot find the pygame libraries

$ ./hidserver
Traceback (most recent call last):
  File "<string>", line 61, in <module>
  File "/home/r2d2/Mahaigaina/pyinstaller-pyinstaller-c10176b/
PyInstaller/loader/iu.py", line 449, in importHook
    mod = _self_doimport(nm, ctx, fqname)
  File "/home/r2d2/Mahaigaina/pyinstaller-pyinstaller-c10176b/
PyInstaller/loader/iu.py", line 539, in doimport
    exec co in mod.__dict__
  File "/home/r2d2/Mahaigaina/pyinstaller-pyinstaller-c10176b/
hidserver/build/pyi.linux2/hidserver/out03-PYZ.pyz/pygame", line 95,
in <module>
  File "/home/r2d2/Mahaigaina/pyinstaller-pyinstaller-c10176b/
PyInstaller/loader/iu.py", line 468, in importHook
    raise ImportError("No module named %s" % fqname)
ImportError: No module named pygame.base

Copying all the .so files manually to the directory allows the app to
work properly. Anyone knows if there is some workaround? maybe some
way to force pyinstaller to include pygame?

sorry if I am missing something very simple or obvious, I am new to
pyinstaller

thanks

enrike

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to