biobakery / phylophlan

Precise phylogenetic analysis of microbial isolates and genomes from metagenomes
https://huttenhower.sph.harvard.edu/phylophlan
MIT License
123 stars 33 forks source link

mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64') #101

Open PabloArrow opened 1 year ago

PabloArrow commented 1 year ago

everytime I call the phylophlan command (even phylophlan --v) I get this error.

Traceback (most recent call last): File "/Users//miniconda3/bin/phylophlan", line 5, in from phylophlan.phylophlan import phylophlan_main File "/Users//miniconda3/lib/python3.9/site-packages/phylophlan/phylophlan.py", line 21, in from Bio import SeqIO File "/Users//miniconda3/lib/python3.9/site-packages/Bio/SeqIO/init.py", line 374, in from Bio.Align import MultipleSeqAlignment File "/Users//miniconda3/lib/python3.9/site-packages/Bio/Align/init.py", line 18, in from Bio.Align import _aligners ImportError: dlopen(/Users//miniconda3/lib/python3.9/site-packages/Bio/Align/_aligners.cpython-39-darwin.so, 0x0002): tried: '/Users//miniconda3/lib/python3.9/site-packages/Bio/Align/_aligners.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users//miniconda3/lib/python3.9/site-packages/Bio/Align/_aligners.cpython-39-darwin.so' (no such file), '/Users//miniconda3/lib/python3.9/site-packages/Bio/Align/_aligners.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

I have a M1 macbook pro. Metaphlan works ok

fasnicar commented 1 year ago

Hi, reading through the error you reported it feels to me that there is a problem with the Biopython library. Please, check if there exists a Biopython version compatible with your architecture, otherwise, you should consider using a different machine with a compatible architecture.

Many thanks, Francesco