app runs fine with interpreter, but not under py2exe

Doug Morse morse at edoug.org
Fri Mar 14 11:17:13 CET 2008


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 now instead of
line 18.

Doug


On Thu, 13 Mar 2008 11:46:41 -0700 (PDT), GHUM <haraldarminmassa at gmail.com>
wrote:
>  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) )   <-- Line 18
> 
>  line... Please, try the following:
> 
>  import multiarray
>  from multiarray import zeros
>  import string
> 
>  (adding the line "import multiarray" before zeros are imported from
>  it)
> 
>  I used this workaround with various packages I py2exed - maybe it also
>  works for you?
> 
>  please keep us updated,
> 
>  Harald



More information about the Python-list mailing list