gpt4free
gpt4free copied to clipboard
docker image error: No module named 'numpy.core._multiarray_umath'
Traceback (most recent call last):
File "/usr/app/venv/lib/python3.11/site-packages/numpy/core/init.py", line 23, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/app/venv/bin/streamlit", line 5, in
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed.
We have compiled some common reasons and troubleshooting tips at:
https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:
- The Python version is: Python3.11 from "/usr/app/venv/bin/python"
- The NumPy version is: "1.24.3"
and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help.
Original error was: No module named 'numpy.core._multiarray_umath'
Same issue here. Does anyone know a Git commit hash that works?
@mabushey try this for now, it works:
git co cb17cc7fe41440c920082722ca6e5bf0bd3d75e8 && docker-compose up --build
As a stop gap you can edit your Dockerfile by changing from the alpine container and installing the dependencies.
TLDL replace the line 17 with this
FROM python:3.11
RUN pip install numpy && pip install setuptools