Ticket #584 (closed defect: fixed)
MacOSX Lion: wxPython program skips packing of Python shared library
|Reported by:||a_villacis||Owned by:||matysek|
I have a small wxPython script that I want to package. Before using pyinstaller, I verified that I can run the program correctly in both Windows, Fedora 16, and MacOSX Lion.
On WindowsXP, the packaging works normally, with or without wxPython. On MacOSX Lion, a script that does not import wxPython is also packaged normally, in either one-file mode or one-dir mode. When wxPython is installed (wxPython2.8-osx-unicode-22.214.171.124-universal-py2.7.dmg from official wxPython website), and I try to package a script that uses wxPython, the packaging apparently runs normally, but when I attempt to run the resulting package (in either one-file or one-dir mode), I get:
Python library not found. Bus error 10
The difference is that when the script imports wxPython, pyinstaller forgets to include the 'Python' shared library, which does appear when the packaged script does not use wxPython.
I am running the packager with this command line: VERSIONER_PYTHON_PREFER_32_BIT=yes arch -i386 python pyinstaller-gui.py
I have tried the development package from www.pyinstaller.org, as well as a checkout of the latest git, and both show the bug.
If I copy manually /System/Library/Frameworks/Python?.framework/Versions/2.7/Python to the one-dir directory, the app no longer shows the missing library error, but I get this instead:
This program needs access to the screen. Please run with 'pythonw', not 'python', and only when you are logged in on the main display of your Mac.
I tried setting LSBackgroundOnly to 0 in PyInstaller?/build.py, but it had no effect.