Hello,
I'm trying to package my application that makes use of several Scipy
packages and I met several problems. This is the error I got:
Traceback (most recent call last):
File "<string>", line 12, in <module>
File "C:\Users\ncreati\pyinstaller\PyInstaller\loader\iu.py", line
437, in importHook
mod = _self_doimport(nm, ctx, fqname)
File "C:\Users\ncreati\pyinstaller\PyInstaller\loader\iu.py", line
527, in doimport
exec co in mod.__dict__
File "C:\Users\ncreati\pyinstaller\scipy_test\build
\pyi.win32\scipy_test\out03-PYZ.pyz\GbrImagePlugin", line 16, in
<module>
File "C:\Users\ncreati\pyinstaller\PyInstaller\loader\iu.py", line
437, in importHook
mod = _self_doimport(nm, ctx, fqname)
File "C:\Users\ncreati\pyinstaller\PyInstaller\loader\iu.py", line
527, in doimport
exec co in mod.__dict__
File "C:\Users\ncreati\pyinstaller\scipy_test\build
\pyi.win32\scipy_test\out03-PYZ.pyz\Image", line 47, in <module>
File "C:\Users\ncreati\pyinstaller\PyInstaller\loader\iu.py", line
437, in importHook
mod = _self_doimport(nm, ctx, fqname)
File "C:\Users\ncreati\pyinstaller\PyInstaller\loader\iu.py", line
527, in doimport
exec co in mod.__dict__
File "C:\Users\ncreati\pyinstaller\scipy_test\build
\pyi.win32\scipy_test\out03-PYZ.pyz\FixTk", line 56, in <module>
File "C:\Users\ncreati\pyinstaller\scipy_test\build
\pyi.win32\scipy_test\out03-PYZ.pyz\FixTk", line 23, in convert_path
LookupError: no codec search functions registered: can't find encoding
This is a sample script that reproduce the error:
from numpy import arange, cos, linspace, pi, sin, random
from scipy.interpolate import splprep, splev
#===============================================================================
if __name__ == "__main__":
# make ascending spiral in 3-space
t=linspace(0,1.75*2*pi,100)
x = sin(t)
y = cos(t)
z = t
# add noise
x+= random.normal(scale=0.1, size=x.shape)
y+= random.normal(scale=0.1, size=y.shape)
z+= random.normal(scale=0.1, size=z.shape)
# spline parameters
s=3.0 # smoothness parameter
k=2 # spline order
nest=-1 # estimate of number of knots needed (-1 = maximal)
# find the knot points
tckp,u = splprep([x,y,z],s=s,k=k,nest=-1)
# evaluate spline, including interpolated points
xnew,ynew,znew = splev(linspace(0,1,400),tckp)
print 'Done'
I'm on a Window 7 64 bit and I'm using Python2.7.2 64 bit with Numpy
and Scipy for window 64 (source: http://www.lfd.uci.edu/~gohlke/pythonlibs/)
Thanks.
Nicola
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyinstaller?hl=en.