weave does not work with numpy arrays of dtype="O" (Trac #601) #1128
Labels
defect
A clear bug or issue that prevents SciPy from being installed or used as expected
Migrated from Trac
Original ticket http://projects.scipy.org/scipy/ticket/601 on 2008-02-08 by trac user ceball, assigned to unknown.
If you attempt to pass an array of dtype="O" to Weave, you get an error:
This is using a copy of weave checked out from SVN:
(and Python 2.5.1 with numpy 1.0.2).
The following message to SciPy-User gives code you can use to reproduce this error:
http://thread.gmane.org/gmane.comp.python.scientific.user/14642
The following message to SciPy-Devel gives an attempt at a patch to solve the problem:
http://article.gmane.org/gmane.comp.python.scientific.devel/7264
The patch certainly fixes the error above, but it is clearly not a complete solution because there is still a problem using arrays of objects from C code in Weave. The message above also gives code to demonstrate this subsequent problem.
Additionally, there is some C code for iterating through an array of objects that works when called from Instant, but that does not work when called from Weave (as patched above):
http://thread.gmane.org/gmane.comp.python.numeric.general/18818/focus=18863
The text was updated successfully, but these errors were encountered: