exoplanet-dev / exoplanet-dev/exoplanet

`ImportError` On clean installation in virtual enviroment

Open
#296 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
239
Forks
57
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Running
```python
import exoplanet as xo
```
Trigger an `ImportError` with trace

```bash
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

```bash
python3.9 -m venv exoplanets
python3.9 -m pip install -U "exoplanet[extras]"
```
and then
```python
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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.