[SciPy-user] weave failures on OSX

Fernando Perez fperez at colorado.edu
Mon Jun 30 12:04:23 EDT 2003


Christopher Fonnesbeck wrote:
> I have some inline statements that work wonderfully under Linux, but on  
> OSX (python2.3 using recent CVS weave), they die the death. Note that  
> weave.test() on my machine runs cleanly. Any clues would be most  
> appreciated. Here is the code and the resultant errors:
> 
> code = '''
>          #line 610 "ReinforcementLearning.py"
> 
>          PyObject *key, *qval, *traceval = NULL;
>          Py::List keys = qfunction.keys();

[snip]

> ReinforcementLearning.py: In function `PyObject*  
> compiled_func(PyObject*,
>     PyObject*)':
> ReinforcementLearning.py:612: `Py' undeclared (first use this function)

try using py::list instead of Py::List.  I think something changed at some 
point, because I had to update similar code myself.

hth.

best,

f




More information about the SciPy-User mailing list