kcleal / pywfa

Python wrapper for wavefront alignment using WFA2-lib
MIT License
35 stars 2 forks source link

cannot import pywfa #4

Closed iAvicenna closed 1 year ago

iAvicenna commented 1 year ago

Specs:

Ubuntu: 20.04 Python: 3.9.15

I installed pywfa via pip install into a conda environment (using the local pip of the conda environment). When I try to import it I get the following error:

Traceback (most recent call last):

  File "/tmp/ipykernel_44566/3182516229.py", line 1, in <cell line: 1>
    import pywfa

  File "/home/avicenna/miniconda3/envs/ACORG/lib/python3.9/site-packages/pywfa/__init__.py", line 2, in <module>
    from .align import WavefrontAligner, clip_cigartuples, cigartuples_to_str, elide_mismatches_from_cigar

ImportError: /home/avicenna/miniconda3/envs/ACORG/lib/python3.9/site-packages/pywfa/align.cpython-39-x86_64-linux-gnu.so: undefined symbol: wavefront_align
kcleal commented 1 year ago

Hi @iAvicenna, Thanks for raising this, I was able to repeat the build error using python3.10. I have updated pywfa to v0.4.1, hopefully this should fix it for you. Please download from github, as v0.4.1 is not on PyPi yet.

kcleal commented 1 year ago

I have uploaded 0.4.1 to pypi. Closing this for now, but happy to re-open if the issue persists