Skip to content

Import error on Python 3.9 #164

@MNGuenther

Description

@MNGuenther

Hi Dan,

I understand celerite is superseded by celerite2, but it would still be nice to keep the functionality alive for allesfitter users on Python 3.9.

To replicate the error: I set up a brand new conda environment with Python 3.9 and full anaconda. Then I pip-installed celerite and tried to import it as shown below:

(env_python39) Maximilians-iMac-Pro:~ mx$ pip install celerite
Collecting celerite
  Using cached celerite-0.4.0-cp39-cp39-macosx_10_9_x86_64.whl
Requirement already satisfied: pybind11 in ./opt/anaconda3/envs/env_python39/lib/python3.9/site-packages (from celerite) (2.7.1)
Requirement already satisfied: numpy in ./opt/anaconda3/envs/env_python39/lib/python3.9/site-packages (from celerite) (1.20.1)
Installing collected packages: celerite
Successfully installed celerite-0.4.0
(env_python39) Maximilians-iMac-Pro:~ mx$ python
Python 3.9.4 (default, Apr  9 2021, 09:32:38) 
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import celerite
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/mx/opt/anaconda3/envs/env_python39/lib/python3.9/site-packages/celerite/__init__.py", line 34, in <module>
    from . import terms, solver, modeling
  File "/Users/mx/opt/anaconda3/envs/env_python39/lib/python3.9/site-packages/celerite/terms.py", line 18, in <module>
    from .solver import get_kernel_value, get_psd_value, check_coefficients
ImportError: dlopen(/Users/mx/opt/anaconda3/envs/env_python39/lib/python3.9/site-packages/celerite/solver.cpython-39-darwin.so, 2): Symbol not found: __ZTIN10__cxxabiv115__forced_unwindE
  Referenced from: /Users/mx/opt/anaconda3/envs/env_python39/lib/python3.9/site-packages/celerite/solver.cpython-39-darwin.so
  Expected in: flat namespace
 in /Users/mx/opt/anaconda3/envs/env_python39/lib/python3.9/site-packages/celerite/solver.cpython-39-darwin.so

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions