Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

specify the numpy version #47

Open
juexZZ opened this issue Aug 1, 2023 · 1 comment
Open

specify the numpy version #47

juexZZ opened this issue Aug 1, 2023 · 1 comment

Comments

@juexZZ
Copy link

juexZZ commented Aug 1, 2023

Hi Zhongdao, can you specify the Numpy version compatible with all the other dependencies? It is not specified in the requirements.
I am trying to run your code for my project but getting dependency errors with cython_bbox and pycocotools. They seem to be related to specific Numpy versions.
Thanks!

@juexZZ
Copy link
Author

juexZZ commented Aug 1, 2023

To be more specific: for numy versions>=1.20 I got errors for cython_bbox(0.1.3):

File "src/cython_bbox.pyx", line 1, in init cython_bbox
ImportError: numpy.core.multiarray failed to import (auto-generated because you didn't call 'numpy.import_array()' after cimporting numpy; use 'numpy._import_array' to disable if you are certain you don't need it).

And for numpy==1.19.5 I got errors with pycocotools:

import pycocotools._mask as _mask
File "pycocotools/_mask.pyx", line 1, in init pycocotools._mask
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant