Skip to content

ImportError when following contributing instructions #743

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

Closed
TomNicholas opened this issue Apr 23, 2025 · 5 comments
Closed

ImportError when following contributing instructions #743

TomNicholas opened this issue Apr 23, 2025 · 5 comments

Comments

@TomNicholas
Copy link
Member

Following these instructions https://numcodecs.readthedocs.io/en/stable/contributing.html#creating-a-development-environment

I get this error whenever I try to import anything from numcodecs

from numcodecs import blosc

E   ImportError: dlopen(/Users/tom/Documents/Work/Code/numcodecs/numcodecs/blosc.cpython-312-darwin.so, 0x0002): symbol not found in flat namespace '_blosc_cbuffer_complib'
@TomNicholas
Copy link
Member Author

Oh I didn't read the instructions properly - I had not used --recursive when git cloning.

@jakirkham
Copy link
Member

Yeah this can be confusing if one doesn't know this has (or hasn't used) git submodules before

If there are tweaks that would make this clearer, please feel free to send a PR

@d-v-b
Copy link
Contributor

d-v-b commented Apr 23, 2025

IMO the best thing here would be to not use submodules for blosc, e.g. by using the version of blosc on pypi. I think @dstansby is working on this in #571

@jakirkham
Copy link
Member

That is a different conversation altogether best served by a dedicated issue

For example:

@d-v-b
Copy link
Contributor

d-v-b commented Apr 23, 2025

I agree that it's best served by a dedicated issue, such as the one I linked :)

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

3 participants