mgd píše v Po 05. 09. 2011 v 05:49 -0700: > Trying to run the executable results in: > > -------------- > bash-3.00$ cd dist/test/ > bash-3.00$ ./test > Error loading Python lib './libpython2.6.so.1.0': 0509-022 > Cannot load module .. > 0509-026 System error: A file or directory in the path name > does not exist. > -------------- > > According to 'ldd' my executable does not depend on something called > 'libpython'
The executable should not depend directly on libpython. (it is loaded dinamically). > > so I guess it is something the generated binary loads dynamically. > However, there is no 'libpython<anything>.so' on my AIX box, only > something called libpython2.6.a and I am not sure whether this is a > static library or a shared library. But simply copying it to my > PyInstaller generated folder and renaming it to libpython2.6.so.1.0 > does not help. libpython2.6.a is not a dynamic library and it can't be used with pyinstaller. > > -------------- > Error loading Python lib './libpython2.6.so.1.0': 0509-022 > Cannot load module ./libpython2.6.so.1.0. > 0509-103 The module has an invalid magic number. > -------------- > > Now, I am a bit stuck. > > Any help or pointers are highly appreciated. PyInstaller is not made to work with statically linked python. The bootloader is searching for any libpython*.so in your dist folder. That's also the reason why pyinstaller does not work with activestate python - activestate python is also statically linked. I don't know much about C/C++ (bootloader code) but you would have to add python interpreter to dist folder and modify bootloader to somehow use python interpreter to run the python code with it. Maybe you could try link the libpython.a statically when compiling the bootloader. -- 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.
