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

Error during install from conda #86

Closed
jbruxaux opened this issue Aug 28, 2023 · 1 comment
Closed

Error during install from conda #86

jbruxaux opened this issue Aug 28, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@jbruxaux
Copy link

jbruxaux commented Aug 28, 2023

Hi!

I'm trying to install pixy from conda, following the very clear explanations on the readthedocs.io website. But I get an error when I type "pixy --help" at the end:

Traceback (most recent call last):
  File "/home/j/jbruxaux/miniconda3/envs/pixy/bin/pixy", line 7, in <module>
    from pixy.__main__ import main
  File "/home/j/jbruxaux/miniconda3/envs/pixy/lib/python3.8/site-packages/pixy/__main__.py", line 6, in <module>
    import allel
  File "/home/j/jbruxaux/miniconda3/envs/pixy/lib/python3.8/site-packages/allel/__init__.py", line 4, in <module>
    from .model.ndarray import *
  File "/home/j/jbruxaux/miniconda3/envs/pixy/lib/python3.8/site-packages/allel/model/ndarray.py", line 18, in <module>
    from allel.opt.model import genotype_array_pack_diploid, genotype_array_unpack_diploid, \
  File "allel/opt/model.pyx", line 1, in init allel.opt.model
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject

I tried to install an older version of numpy, as suggested here #82, but it didn't help, I get the same error message.
I am using python 3.8.17.
Any idea?

Thanks in advance!

Jade

@jbruxaux jbruxaux added the help wanted Extra attention is needed label Aug 28, 2023
@jbruxaux
Copy link
Author

I found a solution. I upgraded numpy and scipy using pip instead of conda, and it works now. I leave the issue opened, in case it helps someone else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants