Skip to content

ImportError On clean installation in virtual enviroment #296

@mattiasotgia

Description

@mattiasotgia

Describe the bug
Running

import exoplanet as xo

Trigger an ImportError with trace

ImportError: dlopen(./exoplanet/lib/python3.9/site-packages/netCDF4/_netCDF4.cpython-39-darwin.so, 2): Library not loaded: @loader_path/libzip.5.5.dylib
  Referenced from: ./exoplanet/lib/python3.9/site-packages/netCDF4/.dylibs/libnetcdf.19.dylib
  Reason: no suitable image found.  Did find:
	./exoplanet/lib/python3.9/site-packages/netCDF4/.dylibs/libzip.5.5.dylib: cannot load 'libzip.5.5.dylib' (load command 0x80000034 is unknown)
	./exoplanet/lib/python3.9/site-packages/netCDF4/.dylibs/libzip.5.5.dylib: cannot load 'libzip.5.5.dylib' (load command 0x80000034 is unknown)

To Reproduce
The only code run is

python3.9 -m venv exoplanets
python3.9 -m pip install -U "exoplanet[extras]"

and then

import exoplanet as xo

Expected behavior
To import the package

Your setup (please complete the following information):

  • Version of exoplanet: latest (0.5.3)
  • Operating system: macOs (python venv)
  • Python version & installation method (pip, conda, etc.): python 3.9.12, installed throught pip

Additional context
None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions