Hi everyone,
I am trying to build a MacOS X application using py2app, and am
running into issues with the python zmq module. For example, if I have
a setup.py script with:
from setuptools import setup
OPTIONS = {
'argv_emulation': False,
'includes': ['zmq'],
'excludes': [],
}
setup(
app=['test.py'],
data_files=[],
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)
and test.py contains:
import zmq.core.constants
and I build with:
python setup.py py2app
then I get the following exception when trying to launch the resulting
.app file:
Traceback (most recent call last):
File
"/Users/tom/Dropbox/zmq/dist/test.app/Contents/Resources/__boot__.py",
line 39, in <module>
_run('test.py')
File
"/Users/tom/Dropbox/zmq/dist/test.app/Contents/Resources/__boot__.py",
line 36, in _run
execfile(path, globals(), globals())
File "/Users/tom/Dropbox/zmq/dist/test.app/Contents/Resources/test.py",
line 1, in <module>
import zmq.core.constants
File "zmq/__init__.pyc", line 29, in <module>
File "zmq/core/__init__.pyc", line 26, in <module>
File "zmq/core/error.pyc", line 18, in <module>
File "zmq/core/error.pyc", line 11, in __load
File "error.pyx", line 34, in init zmq.core.error (zmq/core/error.c:1195)
ImportError: No module named strtypes
Does anyone have any idea how to get this working?
Thanks!
Tom
_______________________________________________
Pythonmac-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG