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] Numpy min. version is not respected by pip and conda. #1433

Open
willGraham01 opened this issue Aug 29, 2023 · 0 comments
Open

[BUG] Numpy min. version is not respected by pip and conda. #1433

willGraham01 opened this issue Aug 29, 2023 · 0 comments

Comments

@willGraham01
Copy link

Describe the bug
The numpy dependency (min 1.20.0) for meshio version 5.3.4 is not respected by pip or conda installs.

As such, it is possible to obtain an environment in which the bug in #1283 is present and not flagged by tools such as pip check, for example.

To Reproduce
Minimal steps to reproduce:

In a clean mamba/conda environment with python 3.9, running

pip install meshio numpy==1.19.5

will report a successful import of meshio version 5.3.4. However, then attempting to import meshio using the Python interpreter:

import meshio

raises ModuleNotFoundError: No module named 'numpy.typing', as per #1283.

Attached is a log replicating this bug using mamba install and using pip.

In practice, I came across this quirk whilst writing the conda-forge recipe for a package that depends on meshio in addition to other packages that require numpy<1.20.0. Pinning the numpy version in this example replicates the "other package" requirements.

Diagnose
I may ask you to cut and paste the output of the following command.

pip freeze | grep meshio

Output is meshio==5.3.4.

Did I help?

If I was able to resolve your problem, consider sponsoring my work on meshio, or buy me a coffee to say thanks.

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