Open m-dz opened 6 years ago
Discussed here: https://github.com/cython/cython/issues/1738
It's strange as in _hdbscan_boruvka.pyx
you are both importing and cimporting numpy, so this should not happen.
Thanks, I was unaware of these apparent Cython changes. They will involve a lot of changes across the codebase :-( Worse still is the issue of backwards compatability.
It still should work though as you have both (c)imports in place in this particular file (I was lucky enough to compile all using Cython 0.25.2 and then work only on boruvka after updating to 0.27.3).
The "backwards incompatable" change in #1738 is that what was a runtime error (using an unimported module) becomes a compile time error instead.
FWIW, it looks like _hdbscan_boruvka.pyx has been correctly importing and cimporting numpy for years now. I just tried building master with the latest Cython and could not reproduce the issue.
Maybe it is system/Python version related then? I will try one more time.
Edit: @robertwb , I have checked on a different computer, same issue. Win 8.1, Python 2.7.14, pip-installed Cython 0.27.3. all working after installing Cython 0.25.2.
i experience a similar issue with missing "np.intp" and "np.float64" causing compiler errors.
i tried cython 0.29.x. then 0.27.x. then with 0.25.2 i was successful.
i am using
(i am using 0.18.2 scikit-learn because it's reqs still mostly fit with centos7)
After running the standard
python setup.py install
I got a series of errors:Fixed by uninstalling Cython v. 0.27.3 and installing Cython v. 0.25.2, I will report there as well, but maybe it's worth to amend requirements.txt here as well?
Edit: system info: Win 10 64 bits, Python 2.7.14, up to date master of hdbscan.