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

Dependency issue between numpy and pandas. #2

Open
SebastianDall opened this issue Mar 11, 2025 · 0 comments
Open

Dependency issue between numpy and pandas. #2

SebastianDall opened this issue Mar 11, 2025 · 0 comments

Comments

@SebastianDall
Copy link

SebastianDall commented Mar 11, 2025

Hi,

I was trying to setup taxconverter so I can run taxVAMB in a fresh conda env with python 3.10 (also tried 3.11). However after installation as described in the README I got this error when running the tool:

taxconverter kraken2 -i kraken2_annotations.tsv -o results.tsv
<long stacktrace>
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

The solution was simple as described here: https://stackoverflow.com/questions/78634235/numpy-dtype-size-changed-may-indicate-binary-incompatibility-expected-96-from

I just had to install numpy=1.26.4 instead of letting pandas decide:

Based on this I suggest pinning numpy to 1.26.4:

pyproject.toml:

dependencies = [
    "pandas == 2.0.0",
    "numpy == 1.26.4",
    "loguru == 0.7.2",
]

Kind regards, Sebastian

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