Description
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
Activity
rhshadrach commentedon Mar 3, 2025
Thanks for the report!
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.
PenguinPen commentedon Mar 4, 2025
I encountered this issue when I run the docker file in the python virtual environment, and I am on Mac.
Error message:
rhshadrach commentedon Mar 4, 2025
Thanks - further investigations into workarounds are welcome!
surenpoghosian commentedon May 9, 2025
@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 .
surenpoghosian commentedon May 9, 2025
@rhshadrach I think this is worth highlighting in the documentation. If it's good, we can add it during our upcoming PyData Yerevan Sprint.