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

Latest proplot version incompatible with numpy 1.24.1 #406

Closed
Quba1 opened this issue Feb 1, 2023 · 5 comments
Closed

Latest proplot version incompatible with numpy 1.24.1 #406

Quba1 opened this issue Feb 1, 2023 · 5 comments

Comments

@Quba1
Copy link

Quba1 commented Feb 1, 2023

Description

Latest proplot version (0.9.5) seems to be incompatible with numpy 1.24.1 because of deprecation of np.int as suggested by this issue.

Steps to reproduce

fig, axs = pplt.subplots(nrows=3, ncols=3)

Expected behavior:

No error

Actual behavior:

AtributeError

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/user/mambaforge/envs/noc/lib/python3.10/site-packages/proplot/ui.py", line 192, in subplots
    axs = fig.add_subplots(*args, **kwsubs)
  File "/home/user/mambaforge/envs/noc/lib/python3.10/site-packages/proplot/figure.py", line 1324, in add_subplots
    array = array.astype(np.int)
  File "/home/user/mambaforge/envs/noc/lib/python3.10/site-packages/numpy/__init__.py", line 284, in __getattr__
    raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'int'. Did you mean: 'inf'?

Proplot version

matplotlib 3.4.3
proplot 0.9.5
numpy 1.24.1

@zxdawn
Copy link

zxdawn commented Feb 1, 2023

This has been fixed in d6ab941. You can try to install proplot from the master branch.

@Quba1
Copy link
Author

Quba1 commented Feb 1, 2023

I honestly don't think installing from master is a solution, merely a workaround. It has been a year since this bug has been found and fixed. Would it be possible to release a bugfix for that (and other issues)?

@zxdawn
Copy link

zxdawn commented Feb 1, 2023

Sorry, I'm not the collaborator of this repo and can't release a new version ... From the user end, I'm afraid that installing from the master branch is the current solution.

@Quba1
Copy link
Author

Quba1 commented Feb 1, 2023

Oh, sorry, for that. Thanks for the workaround then.

@lukelbd
Copy link
Collaborator

lukelbd commented Feb 28, 2023

Sorry for the delay responding to this. The new release v0.9.7 adds matplotlib/numpy dependency fixes to the previous stable version v0.9.5 (see comments in #309).

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

No branches or pull requests

3 participants