[SciPy-user] weave changes 0.3.2 -> 0.3.3

Christian Kristukat ckkart at hoc.net
Sun Oct 30 04:45:23 CST 2005


ckkart at hoc.net wrote:
> Hi,
> I got the latest scipy (old) from svn and tried to run the laplace.py 
> example from the weave documentation. With the 0.3.2 scipy tarball it 
> ran without problems but now I get the following error:
> 
> blitz took
> Traceback (most recent call last):
>    File "laplace.py", line 341, in ?
>      main()
>    File "laplace.py", line 317, in main
>      print "took", time_test(n, n, stepper=i, n_iter=n_iter), "seconds"
>    File "laplace.py", line 307, in time_test
>      s.solve(n_iter=n_iter, eps=eps)
>    File "laplace.py", line 268, in solve
>      err = self.timeStep()
>    File "laplace.py", line 149, in blitzTimeStep
>      weave.blitz(expr, check_size=0)
>    File "c:\python23\Lib\site-packages\weave\blitz_tools.py", line 66, 
> in blitz
>      type_converters = converters.blitz,
> AttributeError: 'module' object has no attribute 'blitz'
> 

I just found out that the problem is in blitz_spec.py on line 88:

class array_converter(standard_array_spec.array_converter):
     def init_info(self):
         standard_array_spec.array_converter.init_info(self)
         blitz_headers = ['"blitz/array.h"',
                          '"%s/arrayobject.h"' % nx.NX_ARRAYPKG,
                           '<complex>','<math.h>']

nx.NX_ARRAYPKG cannot be evaluated:

AttributeError: _TypeNamespace instance has no attribute 'NX_ARRAYPKG'

I replaced %s by 'Numeric' and it works.

Christian



More information about the SciPy-user mailing list