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 error numpy.dtype size changed, may indicate binary incompatibility due to conflict with pandas #553

Closed
1 task done
nesnoj opened this issue Aug 27, 2024 · 2 comments
Assignees
Labels
🐛 bug Something isn't working

Comments

@nesnoj
Copy link
Collaborator

nesnoj commented Aug 27, 2024

Description of the issue

After installing from source I get
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

pip reveals that pandas 2.1.0 and numpy 2.1.0 have been installed.

According to the changelog, pandas <2.2.2 was not fully compatible with numpy >=2.0 which can lead to the error above. After installing pandas==2.2.2 the error is gone.

Interestingly, pandas 2.2.2 (and numpy 2.1.0) is used when installing from pypi. However, the dev requirements installed above are not the reason for the different versions as I also tried without these.

In a later installation attempt, pandas 2.2.2 has been used end everything is fine. I guess, the pandas version 2.1.0 from my cache had been used before (which meets our requirement >=2.1).

Steps to Reproduce

  1. Install from source as described here (branch: production)
  2. Start python, type e.g. from open_mastr.soap_api.download import MaStRAPI

Ideas of solution

To avoid incompatible versions, I propose to set min. pandas version to 2.2.2.
This is in accordance to our min. python version (v3.9) given in the toml.

Workflow checklist

@nesnoj nesnoj added the 🐛 bug Something isn't working label Aug 27, 2024
@nesnoj nesnoj self-assigned this Aug 27, 2024
@FlorianK13
Copy link
Member

Your ideas for solution sound good 👍

@nesnoj
Copy link
Collaborator Author

nesnoj commented Aug 27, 2024

Done in #554

@nesnoj nesnoj closed this as completed Aug 27, 2024
This was referenced Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants