Open saifeiLee opened 1 week ago
To resolve the poetry install
error related to gmpy2
, ensure that the necessary system dependencies for gmpy2
are installed. The error message indicates that the mpfr.h
file is missing, which is part of the libmpfr-dev
package. Make sure your devcontainer setup includes the installation of this package. According to the Dockerfile
used in the Dify project, the required packages should be installed with the following command:
RUN apt-get update \
&& apt-get install -y --no-install-recommends gcc g++ libc-dev libffi-dev libgmp-dev libmpfr-dev libmpc-dev
Verify that this part of the Dockerfile
is executed correctly in your devcontainer setup. If the error persists, check that the apt-get update
and apt-get install
commands complete successfully without errors during the build process [1].
To continue talking to Dosu, mention @dosu.
Run command:
sudo apt-get install -y --no-install-recommends gcc g++ libc-dev libffi-dev libgmp-dev libmpfr-dev libmpc-dev
can fix this error. But devconatiner init should handle it properly.
Self Checks
Dify version
recently
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
the devcontainer building process will end up with a error message like this:
Note: This error originates from the build backend, and is likely not a problem with poetry but with gmpy2 (2.2.1) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "gmpy2 (==2.2.1)"'.