GIScience / GIScience/ohsome-quality-api
Dependency conflict Python and scikit-learn
- Dominant language
- Python
- Stars
- 51
- Forks
- 7
- Avg merge
- 21h 54m
- Merged PRs (30d)
- 9
Description
Following dependency specification installs without errors but throws below pasted error when trying to execute `scikit-learn` and `scipy`
```
[tool.poetry.dependencies]
python = "^3.8"
scikit-learn = "^1.0.2"
```
```
============================================================================================ ERRORS ============================================================================================
_______________________________________________________________________ ERROR collecting tests/unittests/test_helper.py ________________________________________________________________________
ImportError while importing test module '.../oqt/workers/tests/unittests/test_helper.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.10/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unittests/test_helper.py:6: in
from sklearn.svm import SVC
../../../.cache/pypoetry/virtualenvs/ohsome-quality-analyst-JhxvPu0L-py3.10/lib64/python3.10/site-packages/sklearn/__init__.py:82: in
from .base import clone
../../../.cache/pypoetry/virtualenvs/ohsome-quality-analyst-JhxvPu0L-py3.10/lib64/python3.10/site-packages/sklearn/base.py:17: in
from .utils import _IS_32BIT
../../../.cache/pypoetry/virtualenvs/ohsome-quality-analyst-JhxvPu0L-py3.10/lib64/python3.10/site-packages/sklearn/utils/__init__.py:28: in
from .fixes import np_version, parse_version
../../../.cache/pypoetry/virtualenvs/ohsome-quality-analyst-JhxvPu0L-py3.10/lib64/python3.10/site-packages/sklearn/utils/fixes.py:20: in
import scipy.stats
../../../.cache/pypoetry/virtualenvs/ohsome-quality-analyst-JhxvPu0L-py3.10/lib64/python3.10/site-packages/scipy/stats/__init__.py:391: in
from .stats import *
../../../.cache/pypoetry/virtualenvs/ohsome-quality-analyst-JhxvPu0L-py3.10/lib64/python3.10/site-packages/scipy/stats/stats.py:174: in
from scipy.spatial.distance import cdist
../../../.cache/pypoetry/virtualenvs/ohsome-quality-analyst-JhxvPu0L-py3.10/lib64/python3.10/site-packages/scipy/spatial/__init__.py:107: in
from . import distance, transform
../../../.cache/pypoetry/virtualenvs/ohsome-quality-analyst-JhxvPu0L-py3.10/lib64/python3.10/site-packages/scipy/spatial/transform/__init__.py:19: in
from .rotation import Rotation, Slerp
E ImportError: .../.cache/pypoetry/virtualenvs/ohsome-quality-analyst-JhxvPu0L-py3.10/lib64/python3.10/site-packages/scipy/spatial/transform/rotation.cpython-310-x86_64-linux-gnu.so: undefined symbol: _PyGen_Send
=================================================================================== short test summary info ====================================================================================
ERROR tests/unittests/test_helper.py
```
This does not happend with following deps:
```
[tool.poetry.dependencies]
python = ">=3.8,<3.11"
scikit-learn = "^1.0.2"
```
Contributor guide
Assessment
This issue has not been assessed yet.