ksamuk / pixy

Software for painlessly estimating average nucleotide diversity within and between populations
https://pixy.readthedocs.io/
MIT License
115 stars 14 forks source link

Error during install from conda #86

Closed jbruxaux closed 9 months ago

jbruxaux commented 1 year ago

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 commented 1 year ago

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.