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

[BUG] package broken in numpy==2 #1450

Closed
kinnala opened this issue Jan 9, 2024 · 0 comments
Closed

[BUG] package broken in numpy==2 #1450

kinnala opened this issue Jan 9, 2024 · 0 comments

Comments

@kinnala
Copy link

kinnala commented Jan 9, 2024

Describe the bug
Soon there will be a backwards-incompatible release of numpy. As a consequence, np.string_ will be removed, see the migration guide:

https://numpy.org/devdocs/numpy_2_0_migration_guide.html

I tried using meshio against a nightly build of numpy==2 and noticed that it does not work because of missing np.string_. I was able to do some things that I depend on by replacing each occurence of np.string_ by np.bytes_ within meshio codebase, as suggested by the migration guide. I did not run the full meshio test suite so there might be other things to consider.

To Reproduce

  1. Install numpy==2 from https://anaconda.org/scientific-python-nightly-wheels/numpy
  2. Try doing import meshio then meshio.read and/or meshio.write and meshio.Mesh
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