-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
I am limited to versions of numpy<2.0 for one of my projects.
When I install copulae, I get an error on the first import. It's not clear to me if it's a problem with copulae or scipy, but installing scipy<1.15 removes the error.
Python 3.10.11, MacOS Sequoia 15.3.1 (but similar issue on Windows with same Python version and pip configuration).
(py310_venv) dev % pip install copulae "numpy<2"
Collecting copulae
[...]
Successfully installed copulae-0.7.9 joblib-1.4.2 numpy-1.26.4 packaging-24.2 pandas-2.2.3 patsy-1.0.1 python-dateutil-2.9.0.post0 pytz-2025.1 scikit-learn-1.6.1 scipy-1.15.2 six-1.17.0 statsmodels-0.14.4 threadpoolctl-3.5.0 typing-extensions-4.12.2 tzdata-2025.1 wrapt-1.17.2
(py310_venv) dev % pip freeze
copulae==0.7.9
joblib==1.4.2
numpy==1.26.4
packaging==24.2
pandas==2.2.3
patsy==1.0.1
python-dateutil==2.9.0.post0
pytz==2025.1
scikit-learn==1.6.1
scipy==1.15.2
six==1.17.0
statsmodels==0.14.4
threadpoolctl==3.5.0
typing_extensions==4.12.2
tzdata==2025.1
wrapt==1.17.2
(py310_venv) dev % python
Python 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import copulae
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/rxxg/dev/py310_venv/lib/python3.10/site-packages/copulae/__init__.py", line 4, in <module>
from copulae.empirical import *
File "/Users/rxxg/dev/py310_venv/lib/python3.10/site-packages/copulae/empirical/__init__.py", line 1, in <module>
from .empirical import EmpiricalCopula
File "/Users/rxxg/dev/py310_venv/lib/python3.10/site-packages/copulae/empirical/empirical.py", line 14, in <module>
from .distribution import emp_dist_func
File "/Users/rxxg/dev/py310_venv/lib/python3.10/site-packages/copulae/empirical/distribution.py", line 5, in <module>
from ._distribution import emp_copula_dist
File "copulae/empirical/_distribution.pyx", line 1, in init copulae.empirical._distribution
ImportError: scipy.special.cython_special does not export expected C function btdtr
>>> quit()
(py310_venv) dev % pip install copulae "numpy<2" "scipy<1.15"
Collecting copulae
[...]
Installing collected packages: pytz, wrapt, tzdata, typing-extensions, threadpoolctl, six, packaging, numpy, joblib, scipy, python-dateutil, patsy, scikit-learn, pandas, statsmodels, copulae
Successfully installed copulae-0.7.9 joblib-1.4.2 numpy-1.26.4 packaging-24.2 pandas-2.2.3 patsy-1.0.1 python-dateutil-2.9.0.post0 pytz-2025.1 scikit-learn-1.6.1 scipy-1.14.1 six-1.17.0 statsmodels-0.14.4 threadpoolctl-3.5.0 typing-extensions-4.12.2 tzdata-2025.1 wrapt-1.17.2
(py310_venv) dev % pip freeze
copulae==0.7.9
joblib==1.4.2
numpy==1.26.4
packaging==24.2
pandas==2.2.3
patsy==1.0.1
python-dateutil==2.9.0.post0
pytz==2025.1
scikit-learn==1.6.1
scipy==1.14.1
six==1.17.0
statsmodels==0.14.4
threadpoolctl==3.5.0
typing_extensions==4.12.2
tzdata==2025.1
wrapt==1.17.2
(py310_venv) dev % python
Python 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import copulae
>>>
Metadata
Metadata
Assignees
Labels
No labels