PyQt6 error while building with pip /u/Medical-Cockroach230 Python Education

I use python regularly at work but a home problem has me stumped.

I am trying to trying to install m64py, a python front end for the mupen64plus emulator for Nintendo64 games. I have a fresh install of Linux Mint 22, updated and with every dependency I can find/have run into installed. Mint 22 has python(3.12) set up as externally-managed-environment so I have installed required packages through APT, rather than pip.

I need to build from this directory:

~/Emulators/m64py-0.3.0$ ls AUTHORS COPYING MANIFEST.in README.rst setup.py xdg bin env PKG-INFO requirements.txt setup.py~ CHANGELOG LICENSES pyproject.toml setup.cfg src 

I am trying to build based on the command given in the README:

~/Emulators/m64py-0.3.0$ python -m pip install . --user --break-system-packages

I don’t know how to do this without pip, so I have added –break-system-packages. The build fails with this output:

~/Emulators/m64py-0.3.0$ python -m pip install . --user --break-system-packages Processing /home/user1/Emulators/m64py-0.3.0 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: PyQt6 in /usr/lib/python3/dist-packages (from m64py==0.3.0) (6.6.1) Requirement already satisfied: PySDL2 in /usr/lib/python3/dist-packages (from m64py==0.3.0) (0.9.16) Requirement already satisfied: PyQt6-sip<14,>=13.6 in /usr/lib/python3/dist-packages (from PyQt6->m64py==0.3.0) (13.6.0) Building wheels for collected packages: m64py Building wheel for m64py (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for m64py (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [6 lines of output] running bdist_wheel running build running build_qt /usr/bin/python3: Error while finding module specification for 'PyQt6.uic.pyuic' (ModuleNotFoundError: No module named 'PyQt6') warning: BuildQt: Unable to compile ui file /home/user1/Emulators/m64py-0.3.0/src/m64py/ui/cheat.ui [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for m64py Failed to build m64py ERROR: Could not build wheels for m64py, which is required to install pyproject.toml-based projects 

I installed python3-pyqt6 with APT. I can run pyuic6 from bash, I can open python interpreter, import PyQt6.uic.pyuic (and PyQt6), and tab-complete sure looks like they are there and working. I also tried removing the cheat.ui file but it just crashes the same way on something else.

While have a lot of experience with python development, I have never dealt with building a directory with pip. The traceback doesn’t give me much to work with and I don’t know how to go searching from the problem.

submitted by /u/Medical-Cockroach230
[link] [comments]

​r/learnpython I use python regularly at work but a home problem has me stumped. I am trying to trying to install m64py, a python front end for the mupen64plus emulator for Nintendo64 games. I have a fresh install of Linux Mint 22, updated and with every dependency I can find/have run into installed. Mint 22 has python(3.12) set up as externally-managed-environment so I have installed required packages through APT, rather than pip. I need to build from this directory: ~/Emulators/m64py-0.3.0$ ls AUTHORS COPYING MANIFEST.in README.rst setup.py xdg bin env PKG-INFO requirements.txt setup.py~ CHANGELOG LICENSES pyproject.toml setup.cfg src I am trying to build based on the command given in the README: ~/Emulators/m64py-0.3.0$ python -m pip install . –user –break-system-packages I don’t know how to do this without pip, so I have added –break-system-packages. The build fails with this output: ~/Emulators/m64py-0.3.0$ python -m pip install . –user –break-system-packages Processing /home/user1/Emulators/m64py-0.3.0 Installing build dependencies … done Getting requirements to build wheel … done Preparing metadata (pyproject.toml) … done Requirement already satisfied: PyQt6 in /usr/lib/python3/dist-packages (from m64py==0.3.0) (6.6.1) Requirement already satisfied: PySDL2 in /usr/lib/python3/dist-packages (from m64py==0.3.0) (0.9.16) Requirement already satisfied: PyQt6-sip<14,>=13.6 in /usr/lib/python3/dist-packages (from PyQt6->m64py==0.3.0) (13.6.0) Building wheels for collected packages: m64py Building wheel for m64py (pyproject.toml) … error error: subprocess-exited-with-error × Building wheel for m64py (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [6 lines of output] running bdist_wheel running build running build_qt /usr/bin/python3: Error while finding module specification for ‘PyQt6.uic.pyuic’ (ModuleNotFoundError: No module named ‘PyQt6’) warning: BuildQt: Unable to compile ui file /home/user1/Emulators/m64py-0.3.0/src/m64py/ui/cheat.ui [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for m64py Failed to build m64py ERROR: Could not build wheels for m64py, which is required to install pyproject.toml-based projects I installed python3-pyqt6 with APT. I can run pyuic6 from bash, I can open python interpreter, import PyQt6.uic.pyuic (and PyQt6), and tab-complete sure looks like they are there and working. I also tried removing the cheat.ui file but it just crashes the same way on something else. While have a lot of experience with python development, I have never dealt with building a directory with pip. The traceback doesn’t give me much to work with and I don’t know how to go searching from the problem. submitted by /u/Medical-Cockroach230 [link] [comments] 

I use python regularly at work but a home problem has me stumped.

I am trying to trying to install m64py, a python front end for the mupen64plus emulator for Nintendo64 games. I have a fresh install of Linux Mint 22, updated and with every dependency I can find/have run into installed. Mint 22 has python(3.12) set up as externally-managed-environment so I have installed required packages through APT, rather than pip.

I need to build from this directory:

~/Emulators/m64py-0.3.0$ ls AUTHORS COPYING MANIFEST.in README.rst setup.py xdg bin env PKG-INFO requirements.txt setup.py~ CHANGELOG LICENSES pyproject.toml setup.cfg src 

I am trying to build based on the command given in the README:

~/Emulators/m64py-0.3.0$ python -m pip install . --user --break-system-packages

I don’t know how to do this without pip, so I have added –break-system-packages. The build fails with this output:

~/Emulators/m64py-0.3.0$ python -m pip install . --user --break-system-packages Processing /home/user1/Emulators/m64py-0.3.0 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: PyQt6 in /usr/lib/python3/dist-packages (from m64py==0.3.0) (6.6.1) Requirement already satisfied: PySDL2 in /usr/lib/python3/dist-packages (from m64py==0.3.0) (0.9.16) Requirement already satisfied: PyQt6-sip<14,>=13.6 in /usr/lib/python3/dist-packages (from PyQt6->m64py==0.3.0) (13.6.0) Building wheels for collected packages: m64py Building wheel for m64py (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for m64py (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [6 lines of output] running bdist_wheel running build running build_qt /usr/bin/python3: Error while finding module specification for 'PyQt6.uic.pyuic' (ModuleNotFoundError: No module named 'PyQt6') warning: BuildQt: Unable to compile ui file /home/user1/Emulators/m64py-0.3.0/src/m64py/ui/cheat.ui [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for m64py Failed to build m64py ERROR: Could not build wheels for m64py, which is required to install pyproject.toml-based projects 

I installed python3-pyqt6 with APT. I can run pyuic6 from bash, I can open python interpreter, import PyQt6.uic.pyuic (and PyQt6), and tab-complete sure looks like they are there and working. I also tried removing the cheat.ui file but it just crashes the same way on something else.

While have a lot of experience with python development, I have never dealt with building a directory with pip. The traceback doesn’t give me much to work with and I don’t know how to go searching from the problem.

submitted by /u/Medical-Cockroach230
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *