Environment: Ubuntu 12.04, virtualenv (1.9.1), Python 2.7.3, Numpy 1.7.0, Cython 1.8
PyInstaller generates an executable (--onedir) without errors. Running the program:
(bs)$ ./myprogram_linux64
gives the error:
Traceback (most recent call last):
File "<string>", line 9, in <module>
File "/home/ubuntu/Programs/pyinstaller-2.0/PyInstaller/loader/pyi_importers.py", line 404, in load_module
module = imp.load_module(fullname, fp, filename, self._c_ext_tuple)
File "myserver.pyx", line 24, in init myserver (//home//ubuntu//Programs//mypyx/myserver.c:2844)
File "/home/ubuntu/Programs/pyinstaller-2.0/PyInstaller/loader/pyi_importers.py", line 404, in load_module
module = imp.load_module(fullname, fp, filename, self._c_ext_tuple)
File "numpy.pxd", line 155, in init myresult (//home//ubuntu//Programs//mypyx/myresult.c:7875)
ImportError: No module named numpy
It seems as if PyInstaller is failing to load the Cython numpy.pxd module. Adding the tuple:
a.binaries + [("numpy.pxd", "//home//ubuntu//bs//lib//python2.7//site-packages//Cython//Includes//numpy.pxd", "EXTENSION"), ...]
doesn't change the outcome.
Any ideas where the problem lies?