Skip to content

Metadata generation failed when installing PyQt5 #61037

Open
Listed in
@PenguinPen

Description

@PenguinPen
Contributor

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

rhshadrach commented on Mar 3, 2025

@rhshadrach
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.

added
BuildLibrary building on various platforms
Needs InfoClarification about behavior needed to assess issue
on Mar 3, 2025
PenguinPen

PenguinPen commented on Mar 4, 2025

@PenguinPen
ContributorAuthor

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
added
OS XRelated to Mac OS & hardware issues (M1)
and removed
Needs InfoClarification about behavior needed to assess issue
on Mar 4, 2025
rhshadrach

rhshadrach commented on Mar 4, 2025

@rhshadrach
Member

Thanks - further investigations into workarounds are welcome!

surenpoghosian

surenpoghosian commented on May 9, 2025

@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 .
surenpoghosian

surenpoghosian commented on May 9, 2025

@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.

linked a pull request that will close this issue on Jun 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BuildLibrary building on various platformsOS XRelated to Mac OS & hardware issues (M1)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @rhshadrach@surenpoghosian@PenguinPen

      Issue actions

        Metadata generation failed when installing PyQt5 · Issue #61037 · pandas-dev/pandas