[SciPy-user] error importing scipy.weave

Taro Sato nomo17k at gmail.com
Tue Jun 13 17:41:16 CDT 2006


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?

Thank you for your time,
Taro

---BEGIN OUTPUT--------------------------------

In [1]: import scipy.weave
---------------------------------------------------------------------------
exceptions.NameError                                 Traceback (most
recent call last)

/home/taro/<console>

/usr/lib/python2.3/site-packages/scipy/weave/__init__.py
      7
      8 try:
----> 9     from blitz_tools import blitz
     10 except ImportError:
     11     pass # scipy (core) wasn't available

/usr/lib/python2.3/site-packages/scipy/weave/blitz_tools.py
      6 import slice_handler
      7 import size_check
----> 8 import converters
      9
     10 from ast_tools import *

/usr/lib/python2.3/site-packages/scipy/weave/converters.py
     27 try:
     28     import standard_array_spec
---> 29     default.append(standard_array_spec.array_converter())
     30 except ImportError:
     31     pass

/usr/lib/python2.3/site-packages/scipy/weave/c_spec.py in __init__(self)
     72
     73     def __init__(self):
---> 74         self.init_info()
     75         self._build_information = [self.generate_build_info()]
     76

/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

---END OUTPUT--------------------------------



More information about the SciPy-user mailing list