-
Notifications
You must be signed in to change notification settings - Fork 30
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
Issue running on Macbook Pro M1 #253
Comments
Hi, Could you show how you install the package on M1 Mac and the version of RGT? You can get the version information by |
Hi, The latest version of develop branch is v1.0.1. To do so, you need to run the following commands:
Please let me know if this fixes the issue on m1. |
When I do this it just reinstalls the 1.0.0 version. I downloaded from the 'develop' branch here After I install and run i get the same error I think I am not down getting to the 1.0.1 version you mention. I cannot get to the repository with this command: [email protected]:CostaLab/reg-gen.git. I was able to clone through GitHub Desktop and with gh as above, with the same results, downloading version 1.0.0. Can you indicate how to get to the 1.0.1 version? Thanks! Ricardo |
Hi, Sorry, the command to download RGT should be:
Anyway, since you already downloaded the package through GitHub Desktop, you can switch to develop branch by
Alternatively, you can try to install rgt via conda, which is what I usually do when running rgt,
This will automatically install rgt (v1.0.0) with all its dependencies. Please let me know if this solves your issue. |
Hi, Thanks for the feedback. I didn't test rgt on python 3.11, for me, python 3.9 works well. Regarding the error, I think it is because you are running python directly on M1 chip which is an arm64 architecture, and librgt_mac.so was complied for x86_64 through ROSETTA translation. |
Hi, Is there a way to compile librgt_mac.so for arm64? |
Let me give it a try. |
Sounds good, thanks! |
Please keep me posted when you have news. |
Hi, I installed rgt on my Mac M1 pro, and it worked well. This means I couldn't reproduce your issue. Could you provide more information about your python and platform? You can type python and then:
|
Hi, Thanks for your feedback. I finally can reproduce your error:
I have modified the code to first check if it's being installed in arm64 or X86_64 platform, and now it works well with Arm64 platform. To solve it, what you need to do is the following:
The problem should be solved by following the above steps. |
Hi Zhijian, I followed the last instructions and HINT is working perfectly fine on M1 Mac. Thanks again so much for your help. |
Thanks |
When running on Macbook Pro M1 I have run into an issue running rgt-hint.
I get the following -
OSError: dlopen(/Users/ivancorea/rgtdata/lib/librgt_mac.so, 0x0006): tried: '/Users/ivancorea/rgtdata/lib/librgt_mac.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/ivancorea/rgtdata/lib/librgt_mac.so' (no such file), '/Users/ivancorea/rgtdata/lib/librgt_mac.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
I see the librgt_mac_m1.so file installed but I cannot find where to explicitly make sure this library is used.
Are there additional flags that must be set when running rgt-hint on the M1? Any advice on getting past this error?
The text was updated successfully, but these errors were encountered: