Skip to content
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

PyPI wheel installs incorrect architecture for macOS on M1 #72

Open
maedoc opened this issue May 3, 2022 · 2 comments
Open

PyPI wheel installs incorrect architecture for macOS on M1 #72

maedoc opened this issue May 3, 2022 · 2 comments

Comments

@maedoc
Copy link
Member

maedoc commented May 3, 2022

A pip install tvb-gdist on macOS in an arm64 environment, works but unable to import,

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
/var/folders/22/7cxnw94d2bq3cw98w7px74w40000gn/T/ipykernel_2570/3461558562.py in <module>
----> 1 import gdist

ImportError: dlopen(/Users/duke/miniforge3/lib/python3.9/site-packages/gdist.cpython-39-darwin.so, 0x0002): tried: '/Users/duke/miniforge3/lib/python3.9/site-packages/gdist.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))

When I build and install from source, generating the wheels, the folder name now includes the architecture, and it would be helpful to upload wheels for this.

@liadomide
Copy link
Member

Is the conda-forge pack for tvb-gdist working better for M1, or is the same ?

@maedoc
Copy link
Member Author

maedoc commented May 16, 2022

At least it refuses to install. Conda has an explicit notion of osx-arm64 and excludes the prebuilt conda packages. When I download one of them anyway, I can see they are built for x86_64, not arm64,

% file gdist.cpython-38-darwin.so 
gdist.cpython-38-darwin.so: Mach-O 64-bit bundle x86_64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants