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
Mac M1 import error #3003
Comments
I don't have an access to an M1 mac, so this might be hard to resolve...
|
pip-install logs
|
Hmm, I can't discern any problem from the install log. I would recommend checking the discussion thread above and trying some of the steps they suggest. For example, creating a new clean virtual environment and trying to install datatable there, then trying to see if it runs from that environment (not in pycharm). |
This command will show what architecture your python is built for:
And this will show the architecture of the datatable .so file:
|
Perhaps the architecture is different. Mac M1 runs on arm64 while the packages use X86_64. Do you have any plan releasing an arm64 package in the future? |
We can't release arm64 binaries without access to an arm64 machine to build & test those binaries. |
Though we can try setting this up on Travis |
The first lines gives "arm64" while the second gives "x86_64" |
Wait, so the |
can you post your |
|
Yes, the output is
|
I see, so it looks like |
Can you check |
Is there way to change the default config to arm64? |
Based on this SO answer, the target of the So, this is really baffling -- why would Apple ship its system set up to compile for architecture not compatible with its own system? Maybe you can ask on macOS support forums to shed some light on this issue. |
Thanks. Is that possible you could release pre-built wheel files on mac m1? |
I'd love to, but this is complicated by the fact that I do not own nor have access to a mac M1 machine. I'll see if we can set this up on Travis, but it is not clear if they have mac M1s either. |
For your reference, that's what I got from apple community. |
Judging from that thread, the user
However, we saw that to be not true: as you posted above, Also, it would be helpful to post (on the apple thread) the output of |
This might be because you migrated from an older |
Hi @acmilannesta, did you try the advice above to uninstall and then reinstall XCode? |
|
Can you post again your |
Still x86_64..
|
Ok, so at this point you want to figure out the following: Can x86_64 programs run on your system at all? Create file
and then compile&run it with If it prints "Hello world", then everything's fine. If there are errors about wrong architecture, then your system is definitely arm64-only. |
It prints out "hello world"... But what do you mean "everything's fine"? The import error still persists... |
hmm, can you check |
|
What do you get for |
|
You can replace |
|
It looks you are using a x86_64 emulated shell session. You need to start an |
It works! Thank you so much! I'm opening the terminal in Rosetta mode which will translate code compatible with x86_64. |
I faced the same issue while importing the "google-ads" package.
While building the project i see -
For reference -
I am using M1 chip macbook air and running terminal in Rosetta mode as well. Any workaround for this issue? |
@srvRoy I'm sorry, but how what you posted is relevant to datatable? |
Just wanted to mention that I'm on an M1 running MacOS 12.2 and @acmilannesta 's workaround ( In contrast, |
I had a similar general issue for Mac M1 imports that I resolved. Setup:
Problem:
Solution:
Explanation:
|
Is this issue still unresolved? |
@husain-bcg This issue is not about providing arm64 wheels, please refer to #3222 |
@oleksiyskononenko If you want I can support you in rolling out a version for M1. It is a bit weird that we still don't have a package for Apple Silicon. |
@husain-bcg There are currently two issues with getting the wheel:
So these two issues need to be addressed in order to support Apple Silicon. If you could help with any of those, it would be very much appreciated. Btw, I propose to move this discussion to #3222 |
@oleksiyskononenko I have some time next week and will start looking into this. Moving to the thread above. |
Mac M1 on BigSur 11.4
Python 3.8.8 on Miniforge Conda environment
DataTable: 1.0.0
Installed via
pip install git+https://github.com/h2oai/datatable
Import error:
The text was updated successfully, but these errors were encountered: