[SciPy-user] "import scipy" fails with Python-2.2a4

H Jansen h.jansen at fel.tno.nl
Mon Jan 7 01:47:41 CST 2002


Thanks, that helped.

Henk.

Travis Oliphant wrote:
> 
> > I've compiled the latest SciPy successfully. However, when importing the
> > module this is the result:
> 
> > "/fmnt/stbsvr/sdata/apps/inst/lib/python2.2/site-packages/scipy/stats/pstat.py",
> > line 176
> >     exec execstring
> > SyntaxError: unqualified exec is not allowed in function 'colex' it
> > contains a nested function with free variables
> > >>>
> >
> 
> This is a documented error for Python 2.2 which changed the implementation
> of exec.  The pstat functions using exec must be re-written.  Until this
> is done, disable the stats package by not including it in the list of
> subpackages to be imported in the main __init__.py  file
> 
> scipy/__init__.py
> 
> -Travis
> 
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user
-------------- next part --------------
A non-text attachment was scrubbed...
Name: h.jansen.vcf
Type: text/x-vcard
Size: 472 bytes
Desc: Card for H Jansen
Url : http://projects.scipy.org/pipermail/scipy-user/attachments/20020107/bd30bd83/attachment.vcf 


More information about the SciPy-user mailing list