scipy / weave

Weave - tools for including C/C++ code within Python code.
https://pypi.org/project/scipy-weave/
Other
55 stars 27 forks source link

Import error with numpy 1.16 #11

Closed ml31415 closed 5 years ago

ml31415 commented 5 years ago
>>> from weave import inline
ImportError: cannot import name _get_ndarray_c_version

Not much to add. Looks like numpy changed some internals, and weave would need to be updated for that.

ilayn commented 5 years ago

I am not sure if anybody would work on weave for newer NumPy versions though technically we should still support this last NumPy version since Python2 support is removed from NumPy >=v1.17.

However this would probably depend mostly on the volunteer effort.

rgommers commented 5 years ago

Probably a good idea to fix indeed. I'm happy to cut a new release in February. A PR with a fix would help though.

mdepitta commented 5 years ago

Hello folks, any update on this? I keep getting the same error even downgrading to numpy 1.15, and I desperately needs to use weave. What was the workaround eventually?

ilayn commented 5 years ago

The immediate fix is to get the master branch. Otherwise in a week or two @rgommers will roll out a new version 0.17 See #12

The long solution is to stop using Python 2 and switch to Cython since this will be the last release.

rgommers commented 5 years ago

Okay, a new version with the fix is up on PyPI.