Skip to content

Metadata generation failed when installing PyQt5 #61037

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

Open
Tracked by #1
PenguinPen opened this issue Mar 3, 2025 · 5 comments · May be fixed by #61611
Open
Tracked by #1

Metadata generation failed when installing PyQt5 #61037

PenguinPen opened this issue Mar 3, 2025 · 5 comments · May be fixed by #61611
Labels
Build Library building on various platforms OS X Related to Mac OS & hardware issues (M1)

Comments

@PenguinPen
Copy link
Contributor

PenguinPen commented Mar 3, 2025

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

@rhshadrach
Copy link
Member

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.

@rhshadrach rhshadrach added Build Library building on various platforms Needs Info Clarification about behavior needed to assess issue labels Mar 3, 2025
@PenguinPen
Copy link
Contributor Author

PenguinPen commented Mar 4, 2025

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:

Image

@rhshadrach rhshadrach added OS X Related to Mac OS & hardware issues (M1) and removed Needs Info Clarification about behavior needed to assess issue labels Mar 4, 2025
@rhshadrach
Copy link
Member

Thanks - further investigations into workarounds are welcome!

@surenpoghosian
Copy link

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

@rhshadrach I think this is worth highlighting in the documentation. If it's good, we can add it during our upcoming PyData Yerevan Sprint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Library building on various platforms OS X Related to Mac OS & hardware issues (M1)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants