Kanaries / Rath

Next generation of automated data exploratory analysis and visualization platform.
https://kanaries.net
GNU Affero General Public License v3.0
4.26k stars 331 forks source link

ImportError: cannot import name 'ComplexWarning' from 'numpy.core.numeric' #417

Open suharevA opened 3 months ago

suharevA commented 3 months ago

rath-210-prediction-api error when starting the conetainer in version 2.1.0

2024-07-29 15:25:24   File "/usr/local/lib/python3.10/site-packages/sklearn/utils/validation.py", line 24, in <module>
2024-07-29 15:25:24     from numpy.core.numeric import ComplexWarning  # type: ignore
2024-07-29 15:25:24 ImportError: cannot import name 'ComplexWarning' from 'numpy.core.numeric' (/usr/local/lib/python3.10/site-packages/numpy/core/numeric.py)
2024-07-29 15:40:53   File "/usr/local/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 341, in load
2024-07-29 15:40:53     raise exc.NoSuchModuleError(
2024-07-29 15:40:53 sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:clickhouse
Davidsobey commented 2 months ago

Rath\services\prediction updating the requirements.txt file here with a suitable numpy version (numpy==1.23.0) resolves the issue with:

2024-07-29 15:25:24   File "/usr/local/lib/python3.10/site-packages/sklearn/utils/validation.py", line 24, in <module>
2024-07-29 15:25:24     from numpy.core.numeric import ComplexWarning  # type: ignore
2024-07-29 15:25:24 ImportError: cannot import name 'ComplexWarning' from 'numpy.core.numeric' (/usr/local/lib/python3.10/site-packages/numpy/core/numeric.py)