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

import error - Library not loaded: @loader_path/libzip.5.5.dylib (no suitable image found) #1310

Open
isx2015 opened this issue Feb 4, 2024 · 2 comments

Comments

@isx2015
Copy link

isx2015 commented Feb 4, 2024

Operating system: MacOS Mojave 10.14.6
netCDF4 Version: 1.6.5
Python 3.11.4

unable to import netCDF4:

>>> import netCDF4
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/easy/co/descartes/venv/lib/python3.11/site-packages/netCDF4/__init__.py", line 3, in <module>
    from ._netCDF4 import *
ImportError: dlopen(/Users/easy/co/descartes/venv/lib/python3.11/site-packages/netCDF4/_netCDF4.cpython-311-darwin.so, 2): Library not loaded: @loader_path/libzip.5.5.dylib
  Referenced from: /Users/easy/co/descartes/venv/lib/python3.11/site-packages/netCDF4/.dylibs/libnetcdf.19.dylib
  Reason: no suitable image found.  Did find:
	/Users/easy/co/descartes/venv/lib/python3.11/site-packages/netCDF4/.dylibs/libzip.5.5.dylib: cannot load 'libzip.5.5.dylib' (load command 0x80000034 is unknown)
	/Users/easy/co/descartes/venv/lib/python3.11/site-packages/netCDF4/.dylibs/libzip.5.5.dylib: cannot load 'libzip.5.5.dylib' (load command 0x80000034 is unknown)
@jswhit
Copy link
Collaborator

jswhit commented Feb 4, 2024

How was netcdf4-python installed? (pip install, conda, from source?)

@isx2015
Copy link
Author

isx2015 commented Feb 5, 2024

How was netcdf4-python installed? (pip install, conda, from source?)

I have tried to install from both pip and from source.
seems like a MacOS problem? (too old) I had to work on Linux.

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