[Numpy-discussion] Re: cx_freezing numpy problem.
Mike Rovner
mrovner at cadence.com
Wed May 31 13:26:11 EDT 2006
Seems, the problem was that _internal.py was not picked up by Freeze.
Using --include-modules=numpy.core._internal helps.
Mike Rovner wrote:
> Hi,
>
> I'm trying to package numpy based application but get following TB:
>
> No scipy-style subpackage 'core' found in
> /home/mrovner/dev/psgapp/src/gui/lnx32/dvip/numpy. Ignoring: No module
> named _internal
> Traceback (most recent call last):
> File "/home/mrovner/src/cx_Freeze-3.0.2/initscripts/Console.py", line
> 26, in ?
> exec code in m.__dict__
> File "dvip.py", line 42, in ?
> File "dvip.py", line 31, in dvip_gui
> File "mainui.py", line 1, in ?
> File "psgdb.pyx", line 162, in psgdb
> File
> "/lan/dfm/grp_mm_data1/dev/tools/linux-x86_32/lib/python2.4/site-packages/numpy/__init__.py",
> line 35, in ?
> verbose=NUMPY_IMPORT_VERBOSE,postpone=False)
> File
> "/lan/dfm/grp_mm_data1/dev/tools/linux-x86_32/lib/python2.4/site-packages/numpy/_import_tools.py",
> line 173, in __call__
> self._init_info_modules(packages or None)
> File
> "/lan/dfm/grp_mm_data1/dev/tools/linux-x86_32/lib/python2.4/site-packages/numpy/_import_tools.py",
> line 68, in _init_info_modules
> exec 'import %s.info as info' % (package_name)
> File "<string>", line 1, in ?
> File
> "/lan/dfm/grp_mm_data1/dev/tools/linux-x86_32/lib/python2.4/site-packages/numpy/lib/__init__.py",
> line 5, in ?
> from type_check import *
> File
> "/lan/dfm/grp_mm_data1/dev/tools/linux-x86_32/lib/python2.4/site-packages/numpy/lib/type_check.py",
> line 8, in ?
> import numpy.core.numeric as _nx
> File
> "/lan/dfm/grp_mm_data1/dev/tools/linux-x86_32/lib/python2.4/site-packages/numpy/core/__init__.py",
> line 6, in ?
> import umath
> File "ExtensionLoader.py", line 12, in ?
> AttributeError: 'module' object has no attribute '_ARRAY_API'
>
> I did freezing with:
> FreezePython --install-dir=lnx32 --include-modules=numpy
> --include-modules=numpy.core dvip.py
>
> I'm using Python-2.4.2 numpy-0.9.8 cx_Freeze-3.0.2 on linux. Everything
> compiled from source.
>
> Any help appreciated.
>
> Thanks,
> Mike
>
>
>
> -------------------------------------------------------
> All the advantages of Linux Managed Hosting--Without the Cost and Risk!
> Fully trained technicians. The highest number of Red Hat certifications in
> the hosting industry. Fanatical Support. Click to learn more
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
More information about the NumPy-Discussion
mailing list