Doug Morse schrieb:
> Peter,
>
> Genius! You nailed it -- thanks!
>
> py2exe is apparently getting confused by the fact that packages "Numeric" and
> "numpy" both have files multiarray.pyd and umath.pyd. It copies just one of
> each -- from $PYTHONHOME/Lib/site-packages/numpy/core -- and puts b
Hi Harald,
Bond here, James Bond. I accepted your mission. :)
Unfortunately, the mission failed. Creating a "testapp.py" as you described
(i.e., with the suggested import statements) runs just fine with the
interpreter. again, however, py2exe does the same thing as the original
problem -- that
Doug,
> as I quickly noticed that "library.zip" does NOT contain ANY .pyd files.
> I'm guessing that they can't be in library.zip for a reason (i.e., they are
> DLL files, essentially, and thus must be readily available to be loaded
> into memory).
.dll and .pyd files CAN be within library.zip an
Hi,
Well, my attempt to not use the --skip-archive option didn't get very far,
as I quickly noticed that "library.zip" does NOT contain ANY .pyd files.
I'm guessing that they can't be in library.zip for a reason (i.e., they are
DLL files, essentially, and thus must be readily available to be loade
Peter,
Genius! You nailed it -- thanks!
py2exe is apparently getting confused by the fact that packages "Numeric" and
"numpy" both have files multiarray.pyd and umath.pyd. It copies just one of
each -- from $PYTHONHOME/Lib/site-packages/numpy/core -- and puts both of them
into the top-level of
Doug Morse wrote:
> from multiarray import zeros
> import string
>
> typecodes = {'Character':'c', 'Integer':'1sil', 'UnsignedInteger':'bwu',
> 'Float':'fd', 'Complex':'FD'}
>
> def _get_precisions(typecodes):
> lst = []
> for t in typecodes:
> lst.append( (zeros( (1,), t ).items
Harald,
Great suggestion, thanks! Unfortunately, "no help there". Adding "import
multiarray" to Precision.py where you suggested (i.e., before the "from
multiarray import zeros" line) did not fix the problem. I'm getting the same
exception and traceback as before except, of course, on line 19 n
Doug,
> Precision.py is part of the Numeric package. AFAIKT, the problem is during
> the module initialization. The first lines of Precision.py are:
>
> from multiarray import zeros
> import string
>
[.]
and your program is crashing on the
lst.append( (zeros( (1,), t ).itemsize()*8, t) )
Hi Harald and C.L.P.,
Precision.py is part of the Numeric package. AFAIKT, the problem is during
the module initialization. The first lines of Precision.py are:
from multiarray import zeros
import string
typecodes = {'Character':'c', 'Integer':'1sil', 'UnsignedInteger':'bwu',
'Float':'fd', 'Co
Doug,
> File "VisionTrainer.py", line 49, in
> File "SessionController.pyc", line 53, in
> File "VisionEgg\__init__.pyc", line 42, in
> File "VisionEgg\ParameterTypes.pyc", line 28, in
> File "Numeric.pyc", line 93, in
> File "Precision.pyc", line 26, in
> File "Precision.pyc",
10 matches
Mail list logo