On Sun, Oct 23, 2011 at 17:59, Hartmut Goebel <[email protected]> wrote: > Am 21.10.2011 13:02, schrieb Chris Ball: >> import numpy >> a = numpy.array([1,2,3]) > [...] >> 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 > > This looks like some module is not packages. But I can not reproduce > this, here the module is packaged correctly. Please follow the > instructions in > <http://www.pyinstaller.org/wiki/HowtoReportBugs#Beforesubmittingareport:Makesureeverythingispackaged> > to track this down. Thanks.
Thanks for the help. Since you said you couldn't reproduce the problem, I tried on another system and had no trouble this time. Again, I tried with PyInstaller 1.5.1 on 32-bit Ubuntu 10.04 LTS (same as the first system, with the same versions of python and numpy). So, that's great! I'll continue trying to package my application and see how I get on. Meanwhile, I have two questions. The first is: can I tell PyInstaller to include a module/package even if it is not explicitly imported by my script? The second (not so important to me, so feel free to ignore) is why didn't PyInstaller work with numpy on the first system? The dist/ directory on both systems appears to contain the same numpy-related files. Using ArchiveViewer to inspect the outPYZ1.pyz files on both, I can see that numpy.testing.decorators is missing from the first system's but not the second's: System 1: ... 'numpy.random': (True, 1567857L, 1283), 'numpy.random.info': (False, 899404L, 1341), 'numpy.testing': (True, 3559330L, 416), 'numpy.testing.info': (False, 3148191L, 596), 'numpy.testing.numpytest': (False, 2954259L, 999), 'numpy.testing.parametric': (False, 2850802L, 3551), 'numpy.testing.utils': (False, 3159099L, 8359), 'numpy.version': (False, 1666492L, 393), System 2: ... 'numpy.random': (True, 678742L, 1283), 'numpy.random.info': (False, 1238003L, 1343), 'numpy.testing': (True, 1239346L, 416), 'numpy.testing.decorators': (False, 997868L, 2377), 'numpy.testing.noseclasses': (False, 1125914L, 4013), 'numpy.testing.nosetester': (False, 1508182L, 3889), 'numpy.testing.numpytest': (False, 1451974L, 1000), 'numpy.testing.utils': (False, 1522985L, 8360), 'numpy.version': (False, 885498L, 395), ... On System 1, I can import numpy.testing.decorators without a problem. I wonder why the numpy modules are not the same on both systems? Thanks again, 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.
