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

Numpy >= 1.24.0 not supported due to np.int #11

Open
robin-maillot opened this issue Dec 20, 2022 · 1 comment
Open

Numpy >= 1.24.0 not supported due to np.int #11

robin-maillot opened this issue Dec 20, 2022 · 1 comment
Labels

Comments

@robin-maillot
Copy link

There is an np.int import in run_length_encoding.pyx which breaks when using numpy >= 1.24.0

Error:

>>> rle_encode(m)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "upolygon/run_length_encoding.pyx", line 12, in upolygon.run_length_encoding.rle_encode
  File "/home/robin/tc/software/services/machine-learning/.venv/lib/python3.8/site-packages/numpy/__init__.py", line 284, in __getattr__
    raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'int'
@owencjones
Copy link
Contributor

Hi Robin,

Thanks for raising this, we've currently pinned the numpy version at 1.23.0 for this reason, and have a task in to address soon the refactor necessary to allow this to upgrade back to our usual policy of latest-version.

Unfortunately, this does mean that if you have clashing versions, these are harder to make coexist, depending how you manage your dependencies.

Whilst numpy made this announcement in advance, the inclusion of it in a minor version upgrade was a surprise to me! It's a priority for the team and I to address. Thanks for your issue report.

Any further issues, please let me know.

Owen

@owencjones owencjones pinned this issue Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants