From: Mark H. <mha...@sk...> - 2009-08-06 01:02:29
|
On 6/08/2009 8:26 AM, Zwicky, William R ERDC-CERL-IL Contractor wrote: > One of us is missing the point ... > >>> ImportError: No module named numpy.distutils.tests >> >> So something is attempting to import numpy.distutils.tests... > > Yes - Numpy itself is doing that. > >> But you have excluded it. > > Yes - but the exclusion is ignored. I get that message whether or not I > exclude that package. Is 'packages' processed after excludes? I'm still a little lost here - numpy will fail with an import error if that module doesn't exist, but you are explicitly listing it in excludes? But either way... > And as I mentioned last time, the error is *false* -- that package does > indeed exist, but py2exe is refusing to see it. Does exist where? What does 'refusing to see it' mean? Not trying to be pedantic, but numpy is the thing failing to 'see' it as witnessed by the ImportError. The question is whether py2exe is putting that package, in the correct location, in the .zip file used at runtime by Python when in a py2exe environment. Looking inside the .zip file might help, as would looking for any messages relating to that package when py2exe is run with -v. The PY2EXE_VERBOSE environment variable can be used in place of PYTHON_VERBOSE for a py2exe executable, so should then dump lots of noise about the import process at runtime... Cheers, Mark |