On Fri, Oct 21, 2011 at 01:18, Daniel Hyams <[email protected]> wrote:
> I've never had a problem packaging numpy nor matplotlib with
> pyinstaller. Just give it a whirl...
That sounds very encouraging.
I've now tried it, but it didn't work for me immediately. Again, I'm
sorry if I've missed something. Maybe you can see I've done something
stupid from the information below? Thanks!
Here is my test script:
import numpy
a = numpy.array([1,2,3])
Here is how I ran pyinstaller:
$ python pyinstaller-svn/pyinstaller.py test1.py
In build/pyi.linux2/test1/warntest1.txt, I see 78 warnings. The file
begins like this:
W: no module named PyQt4._qt (top-level import by PyQt4.QtXml)
W: no module named matplotlib.rcParams (top-level import by matplotlib.figure)
W: no module named glib.Idle (top-level import by gobject)
W: no module named numpy.not_equal (top-level import by numpy.numarray.ufuncs)
When I run the resulting script (dist/test1/test1), I see this
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "./pyinstaller-svn/PyInstaller/loader/iu.py", line 434, in importHook
mod = _self_doimport(nm, ctx, fqname)
File "./pyinstaller-svn/PyInstaller/loader/iu.py", line 524, in doimport
exec co in mod.__dict__
File "./build/pyi.linux2/test1/outPYZ1.pyz/numpy", line 130, in <module>
File "./pyinstaller-svn/PyInstaller/loader/iu.py", line 434, in importHook
mod = _self_doimport(nm, ctx, fqname)
File "./pyinstaller-svn/PyInstaller/loader/iu.py", line 524, in doimport
exec co in mod.__dict__
File "./build/pyi.linux2/test1/outPYZ1.pyz/numpy.add_newdocs", line
9, in <module>
File "./pyinstaller-svn/PyInstaller/loader/iu.py", line 434, in importHook
mod = _self_doimport(nm, ctx, fqname)
File "./pyinstaller-svn/PyInstaller/loader/iu.py", line 524, in doimport
exec co in mod.__dict__
File "./build/pyi.linux2/test1/outPYZ1.pyz/numpy.lib", line 4, in <module>
File "./pyinstaller-svn/PyInstaller/loader/iu.py", line 434, in importHook
mod = _self_doimport(nm, ctx, fqname)
File "./pyinstaller-svn/PyInstaller/loader/iu.py", line 524, in doimport
exec co in mod.__dict__
File "./build/pyi.linux2/test1/outPYZ1.pyz/numpy.lib.type_check",
line 8, in <module>
File "./pyinstaller-svn/PyInstaller/loader/iu.py", line 434, in importHook
mod = _self_doimport(nm, ctx, fqname)
File "./pyinstaller-svn/PyInstaller/loader/iu.py", line 524, in doimport
exec co in mod.__dict__
File "./build/pyi.linux2/test1/outPYZ1.pyz/numpy.core", line 34, in <module>
File "./pyinstaller-svn/PyInstaller/loader/iu.py", line 434, in importHook
mod = _self_doimport(nm, ctx, fqname)
File "./pyinstaller-svn/PyInstaller/loader/iu.py", line 524, in doimport
exec co in mod.__dict__
File "./build/pyi.linux2/test1/outPYZ1.pyz/numpy.testing", line 10,
in <module>
File "./pyinstaller-svn/PyInstaller/loader/iu.py", line 453, in importHook
raise ImportError("No module named %s" % fqname)
ImportError: No module named decorators
I have pyinstaller r1700 from svn. I'm using Ubuntu 10.04 LTS (which
includes Python 2.6.5 and numpy 1.3.0).
Thanks,
Chris
--
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.