[SciPy-user] error importing scipy.weave

David M. Cooke cookedm at physics.mcmaster.ca
Tue Jun 13 20:27:03 CDT 2006


On Tue, 13 Jun 2006 15:41:16 -0700
"Taro Sato" <nomo17k at gmail.com> wrote:

> I just checked out scipy from subversion (0.5.0.1962), and after
> building and installing following:
> 
>   http://pong.tamu.edu/tiki/tiki-view_blog_post.php?blogId=6&postId=97
> 
> I get the following error (attached) importing scipy.weave.
> 
> Am I missing anything?
> /usr/lib/python2.3/site-packages/scipy/weave/standard_array_spec.py in
> init_info(self)
>     139         self.return_type = 'PyArrayObject*'
>     140         self.to_c_return = '(PyArrayObject*) py_obj'
> --> 141         self.matching_types = [ArrayType]
>     142         self.headers = ['"numpy/arrayobject.h"',
>     143                         '<complex>','<math.h>']
> 
> NameError: global name 'ArrayType' is not defined

We're trying to get rid of the old Numeric names (like ArrayType), and not
all the scipy modules are converted yet. I've updated weave to remove all
uses of those names, so try it now.

-- 
|>|\/|<
/--------------------------------------------------------------------------\
|David M. Cooke                      http://arbutus.physics.mcmaster.ca/dmc/
|cookedm at physics.mcmaster.ca



More information about the SciPy-user mailing list