This error comes from running the dockerfile and reaches the PyQt5 in the requirements-dev.txt. From stackoverflow, this problem occur when installing PyQt5 with version after 5.15.6 in virtual environment.
Not labeling bug as it's bug from PyQt5, but since this could affect dockerfile building I'll create this issue. If this is not proper please close this issue.
Reference: https://stackoverflow.com/questions/70936664/metadata-generation-failed-while-installing-pyqt5
Comment From: rhshadrach
Thanks for the report!
Not labeling bug as it's bug from PyQt5, but since this could affect dockerfile building I'll create this issue.
Could or does affect the Dockerfile? The issue you linked to seems to all refer to Mac OS and Windows, but our Dockerfile is based on Ubuntu.
Comment From: PenguinPen
Could or does affect the Dockerfile? The issue you linked to seems to all refer to Mac OS and Windows, but our Dockerfile is based on Ubuntu.
I encountered this issue when I run the docker file in the python virtual environment, and I am on Mac.
Error message:
Comment From: rhshadrach
Thanks - further investigations into workarounds are welcome!
Comment From: surenpoghosian
@PenguinPen This happened to me while trying to build it on a mac with an M chip. Even if you resolve the problem with PyQt, further issues will arise with a number of other packages.
Use the commands below, in order to build the docker image with correct platform specifications:
build your image with the modified command below (forcing amd64 architecture)
- docker build --platform=linux/amd64 --no-cache -t pandas-dev .
this runs the previously built image and moves you inside the running container
- docker run -it --rm -v ${PWD}:/home/pandas pandas-dev
these will install all the required dependencies
- pip install -r /tmp/requirements-dev.txt
- pip install --no-build-isolation -v -e .
Comment From: surenpoghosian
@rhshadrach I think this is worth highlighting in the documentation. If it's good, we can add it during our upcoming PyData Yerevan Sprint.
Comment From: tihanayo
take