Martin Gamwell Dawids píše v Čt 20. 10. 2011 v 02:51 -0700: > Backing up one dir (cd ..) and running the command (test-dir/test) > still gives the error with importing "struct" and "archive" modules.
It seems like the bootloader is working now. > > So it seems I have (at least) two problems left to resolve: > > 1) I should prevent libc.a and libpthreads.a from being packaged along > with the application. I guess it is the regexes in bindepend.py which > does not work for AIX, as they incorrectly assume all shared libs ends > with ".so". yes, that's correct. Maybe there are more libraries with .a which should be also ignored. > > 2) Python cannot find packages to import unless the current working > dir contains the shared objects. Any ideas how to fix this? You should try to use ArchiveViewer.py to inspect created binaries what python modules get included. Look for linux specific python code which is not adjusted for AIX. Add some print statements to the code where python module dependencies are analyzed. look at tools 'ldd' and 'objdump' if these are available on your AIX devel. machine and look how these are used in pyinstaller if their output is properly parsed by pyinstaller. (maybe their output could is formatted differently and thus is not properly parsed by pyinstaller) > > Thank you for your invaluable help so far! Some hints: - i would recommend focusing on --onedir mode only for now (onefile is harder) - use option --debug for ./Makespec.py to get more debug messages - in iu.py at the top in debug(msg) function enable debugging to see at runtime what modules are loaded - do not worry about trunk, I can do the backport of AIX support -- 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.
