Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
suharevA opened this issue Jul 29, 2024 · 1 comment

Comments

@suharevA
Copy link

suharevA commented Jul 29, 2024

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
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants