Open asylvz opened 1 year ago
Hi @asylvz,
I think the setup.py error might be happening because an environment variable is not getting set properly during the build. BUILD_MINIMAL=1
should be set which avoids building the bindings directory. This is normally taken care of in the setup with the Build_ext_first
class. You can try manually building WFA2lib before running setup.py:
cd pywfa/WFA2_lib; make clean all BUILD_WFA_PARALLEL=0 BUILD_MINIMAL=1; cd ../../
pip install .
This worked, thank you so much
I have the same issue (Illegal instruction: 4) when calling WavefrontAligner() using Mac M1. For me the installation works using pip, conda or from source (I used the Build_Minimal = 1 trick) but no matter how I do it, I run into the Illegal instruction 4 error. I also tried running the Terminal in Rosetta mode but that didn't help.
Hi @asylvz, Does it work if you compile from source?
No, as far as I remember. I used conda.
Thanks for this tool, however I have some issues in using this. First I tried
pip install pywfa
and I successfully imported the package but when I called a = WavefrontAligner(pattern), I get"Illegal instruction: 4" error.
Then I tried building from source, which failed too. I tried to compile from setup.py, which also failed somewhere with this error: ....
With conda, I get the following error:
Note that I'm using mac m1. But I tried conda installation with ubuntu and got the same error.
Thank you