import random
...
File "/home/ubuntu/Programs/project_name_pi2/build/pyi.linux2/project_name/out00-PYZ.pyz/tempfile", line 34, in <module>
ImportError: cannot import name Random
"/home/ubuntu/ENV/lib/python2.7//", "/usr/lib/python2.7//", ...
W: no module named random.Random (top-level import by tempfile)
numpy.load(directory_path + "myarray.npy")
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
import marshal # builtin
import _struct # builtin
import nt # builtin
import imp # builtin
import zlib # builtin
import errno # builtin
import _weakref # builtin
# zipimport: found 78 names in C:\DOCUME~1\mine\LOCALS~1\Temp\_MEI50162\eggs\s
etuptools-0.6c11-py2.7.egg
# zipimport: zlib available
# C:\DOCUME~1\mine\LOCALS~1\Temp\_MEI50162\eggs\setuptools-0.6c11-py2.7.egg\pk
g_resources.pyc has bad mtime
# zipimport: zlib available
import time # builtin
import _sre # builtin
import strop # builtin
import pkg_resources # loaded from Zip C:\DOCUME~1\mine\LOCALS~1\Temp\_MEI5016
2\eggs\setuptools-0.6c11-py2.7.egg\pkg_resources.py
import _codecs # builtin
etc.
etc.
Traceback (most recent call last):
File "<string>", line 24, in <module>
File "d:\pyinstaller-develop\PyInstaller\loader\pyi_importers.py", line 273, in load_module
exec(bytecode, module.__dict__)
File "d:\...\out00-PYZ.pyz\tempfile", line 35, in <module>
ImportError: cannot import name Random
{'__file__': 'C:\\DOCUME~1\\...\\LOCALS~1\\Temp\\_MEI20322\\random\\__init__.pyc', '__loader__': <pyi_importers.FrozenImporter object at 0x00A6F950>, '__path__': ['C:\\DOCUME~1\\...\\LOCALS~1\\Temp\\_MEI20322\\random'], '__name__': 'random', '__package__': 'random', '__doc__': None}
--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller...@googlegroups.com.
To post to this group, send email to pyins...@googlegroups.com.
Visit this group at http://groups.google.com/group/pyinstaller?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
a. the project was tested with the Python interpreter and it worked
b. the project was tested with calling just the .pyd (generated with cython) and it worked.
c. the project was tested with pyinstaller using the .pyd and it didn't work.
a. works with the Python interpreter
b. works when calling just the .pyd (generated with cython)
c. doesn't work with pyinstaller
--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller...@googlegroups.com.
To post to this group, send email to pyins...@googlegroups.com.
Visit this group at http://groups.google.com/group/pyinstaller?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
12968 ERROR: lib not found: libifcoremd.dll dependency of C:\bs\lib\site-packages\scipy-0.12.0-py2.7-win32.egg\scipy\linalg\calc_lwork.pyd
13343 ERROR: lib not found: libifcoremd.dll dependency of C:\bs\lib\site-packages\scipy-0.12.0-py2.7-win32.egg\scipy\sparse\linalg\eigen\arpack\_arpack.pyd
13953 ERROR: lib not found: libifcoremd.dll dependency of C:\bs\lib\site-packages\scipy-0.12.0-py2.7-win32.egg\scipy\special\specfun.pyd
14483 ERROR: lib not found: libifcoremd.dll dependency of C:\bs\lib\site-packages\scipy-0.12.0-py2.7-win32.egg\scipy\special\_ufuncs.pyd
Environment: virtualenv 1.9.1 under Ubuntu 12.04 with Python 2.7.3, Numpy 1.7.0, Cython 1.8 and PyInstaller 2.0.One of the project programs has the statement:import randomThe PyInstaller (--onedir) generated executable causes the error:...
File "/home/ubuntu/Programs/project_name_pi2/build/pyi.linux2/project_name/out00-PYZ.pyz/tempfile", line 34, in <module>
ImportError: cannot import name Random
To account for virtualenv, added both these paths to the .spec pathex:"/home/ubuntu/ENV/lib/python2.7//", "/usr/lib/python2.7//", ...The ImportError still occurs.The warnxet.txt includes:W: no module named random.Random (top-level import by tempfile)
Created both a hook-random.py and a hook-random.Random.py but that didn't help either.