Re: app runs fine with interpreter, but not under py2exe

2008-03-16 Thread Thomas Heller
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

Re: app runs fine with interpreter, but not under py2exe

2008-03-16 Thread Doug Morse
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

Re: app runs fine with interpreter, but not under py2exe

2008-03-16 Thread GHUM
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

Re: app runs fine with interpreter, but not under py2exe

2008-03-14 Thread Doug Morse
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

Re: app runs fine with interpreter, but not under py2exe

2008-03-14 Thread Doug Morse
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

Re: app runs fine with interpreter, but not under py2exe

2008-03-14 Thread Peter Otten
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

Re: app runs fine with interpreter, but not under py2exe

2008-03-14 Thread Doug Morse
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

Re: app runs fine with interpreter, but not under py2exe

2008-03-13 Thread GHUM
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) )

Re: app runs fine with interpreter, but not under py2exe

2008-03-12 Thread Doug Morse
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

Re: app runs fine with interpreter, but not under py2exe

2008-03-12 Thread GHUM
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",