-
Notifications
You must be signed in to change notification settings - Fork 14
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
Installing gadma on Macs with the M1 chip #82
Comments
Dear Frank, Sorry for the long reply. Have you fixed the problem? From your error message, it looks like the issue is for moments library. Best regards, |
Hi Ekaterina, Thanks for you help. I am still having an issue on my M1. Any help would be appreciated. It looks like moments 2.0 installed ok and the gadma install says it is ok: However, I am not getting the following when opening or running the test on gadma: (GADMA_RosettaX) frankburbrink@Mac-Studio GADMA % gadma --test |
Thank you for an update. Now it looks like the import of If so, I am not sure why allele package is not supported on M1. Maybe it is possible to install it from the source. |
So, there is "No module named import allele." However, I have scikit-allel 1.3.7 successfully installed in my conda environment. I generally make the VCF files outside of gadma using the easysfs package, so it is important that I can read them into gadma. Any other thoughts? Thanks! Frank |
Oh, I am sorry I mixed up the flag, what is the output for: As you do not need VCF reading, you can do the following:
Please let me know if it helped. |
I am still working on this and getting errors: This works perfectly on my non-M1 chip. |
It becomes more interesting and unusual. Unfortunately, I do not know what is going on. It looks like Python does not like formatting of the file One idea: maybe switch to different version of Python? GADMA should work for python3.9 and python3.10 as well. |
Hmmm...it doesn't seem like it will work with python3.9 or 3.10. See the errors (first is cloned and pip install ., second is a conda install): error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. UnsatisfiableError: The following specifications were found Specifications:
Your python: python==3.9 |
Oh, this one is on me. Maybe it can be installed using pip? I will fix this restriction next release, GADMA can be used for any Python version starting from 3.6. |
I created a conda environment with python==3.10 and did the gadma pip install but the test keeps failing. I can easily run this on my cluster and other sources, but I will be teaching a workshop on speciation processes and likely many of the students attending will be using mac laptops with the m1/m2 chips. I totally realize this isn't your problem and there are tons of threads with python package and m1/m2 issues. Anyhow, your program has been a life saver for our research and allows us to explore model space in a really comprehensive way. Thanks so much! I am pasting the latest error in case you insight: frankburbrink@Mac-Studio build % gadma --test |
Thank you very much for your kind words and I am glad that you have included GADMA in the workshop for students, that sounds fantastic! I hope it went well. I will try to fix issues with M1/M2 chips as soon as I will be able to do it, I appreciate all your feedback. Best regards, |
Hi, just started using gadma2 on my mac with M1 chip. I was able to get it running following these steps (the order matters I think as some libraries/packages need to be of a specific version):
Hope this helps! Enrico |
Wow, thank you very much Enrico! |
Hello,
I was wondering if anyone has successfully installed gadma on a mac with an M1 (or M1 Ultra) chip? I have had no luck even after creating an conda environment.
Right now it seems I am stuck with this error after executing gadma:
File "/Users/frankburbrink/miniconda3/envs/gadma_try/lib/python3.10/site-packages/moments/init.py", line 13, in
from timestamp import Timestamp
ImportError: cannot import name 'Timestamp' from 'timestamp' (unknown location)
Any help would be appreciated!
Thanks!
Frank
The text was updated successfully, but these errors were encountered: