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

support for osx-arm64 #127

Closed
phylyc opened this issue Jun 1, 2022 · 2 comments
Closed

support for osx-arm64 #127

phylyc opened this issue Jun 1, 2022 · 2 comments

Comments

@phylyc
Copy link

phylyc commented Jun 1, 2022

Hi!

I have a mac with an M1 chip. Installing pyBigWig is no problem via pip, though anaconda is smart enough to only check the osx-arm64 channels and tells me that it's not available. Currently, there is no build for this chip.
Installing it via pip, when starting a python session and trying to import pyBigWig, I get the error

>>> import pyBigWig
Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: dlopen([...]/env/lib/python3.10/site-packages/pyBigWig.cpython-310-darwin.so, 0x0002): tried: '[...]/env/lib/python3.10/site-packages/pyBigWig.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))

Is there a plan to build for arm64? Or how can I build myself?
Thanks!

@dpryan79
Copy link
Collaborator

@phylyc It looks like you used a pip within an intel-python environment and then tried to run that using the arm-python. With the correct python in your path, you can prevent this with python -m pip install ...the normal pip stuff....

@phylyc
Copy link
Author

phylyc commented Aug 2, 2022

Thanks for the comment. I tried all possible things for a while, but it seems that the package in pip is indeed the intel version. The path to success was to download/clone the repo and use python -m pip install . in the repo within my miniconda environment. EDIT: Or simply python -m pip install git+https://github.com/deeptools/pyBigWig

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