This package builds now for me after https://gitlab.archlinux.org/archlinux/packaging/packages/pyqt6/-/issues/1 has been resolved.
Search Criteria
Package Details: m64py 0.3.0-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/m64py.git (read-only, click to copy) |
---|---|
Package Base: | m64py |
Description: | A Qt5 front-end (GUI) for Mupen64Plus, a cross-platform plugin-based Nintendo 64 emulator |
Upstream URL: | https://github.com/mupen64plus/mupen64plus-ui-python |
Keywords: | Emulator m64py nintendo64 |
Licenses: | GPL |
Submitter: | TingPing |
Maintainer: | frealgagu |
Last Packager: | frealgagu |
Votes: | 93 |
Popularity: | 0.000004 |
First Submitted: | 2012-07-25 06:07 (UTC) |
Last Updated: | 2024-10-29 23:47 (UTC) |
Dependencies (12)
- desktop-file-utils (desktop-file-utils-gitAUR)
- libxkbcommon-x11 (libxkbcommon-x11-gitAUR)
- mupen64plus (mupen64plus-gitAUR)
- python-pyqt6-webengine
- python-pysdl2AUR
- qt6-tools
- python-build (make)
- python-distribute (python-setuptools) (make)
- python-installer (python-installer-gitAUR) (make)
- python-setuptools (make)
- python-setuptools-scm (make)
- python-wheel (make)
Required by (0)
Sources (1)
Martchus commented on 2024-10-30 21:57 (UTC)
Martchus commented on 2024-10-30 14:38 (UTC) (edited on 2024-10-30 14:40 (UTC) by Martchus)
Yes, most likely a packaging issue in python-pyqt6
. I created an issue.
By the way, you might want to remove the major Qt version from the description because it is now outdated.
rubin55 commented on 2024-10-30 14:05 (UTC)
For some reason /usr/bin/pyuic6
(from the extra/python-pyqt6 package) is not executable. After doing sudo chmod +x /usr/bin/pyuic6
, the build works. This is probably a bug in python-pyqt6
frealgagu commented on 2024-10-30 13:58 (UTC) (edited on 2024-10-30 13:59 (UTC) by frealgagu)
It seems that the pyuic6 package maintainer made a mistake and the pyuic6 script doesn't have the execution flag.
You can solve it by setting the flag as follows:
sudo chmod a+x /usr/bin/pyuic6
Please let me know if you continue getting errors.
rubin55 commented on 2024-10-30 13:49 (UTC) (edited on 2024-10-30 13:50 (UTC) by rubin55)
The description of this package still says Qt5, whilst the dependencies are to Qt6. Additionally, I'm getting an error after updating to 0.3.0:
==> Removing existing $pkgdir/ directory...
==> Starting build()...
* Getting build dependencies for wheel...
validate_pyproject.api.load_builtin_plugin defines `tool.distutils` schema
validate_pyproject.api.load_builtin_plugin defines `tool.setuptools` schema
running egg_info
creating src/m64py.egg-info
writing src/m64py.egg-info/PKG-INFO
writing dependency_links to src/m64py.egg-info/dependency_links.txt
writing requirements to src/m64py.egg-info/requires.txt
writing top-level names to src/m64py.egg-info/top_level.txt
writing manifest file 'src/m64py.egg-info/SOURCES.txt'
[10/30/24 14:47:51] ERROR listing git files failed - pretending git.py:26
there aren't any
reading manifest file 'src/m64py.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.jpg' under directory 'src'
warning: no previously-included files matching '*' found under directory 'dist'
warning: no previously-included files matching '*' found under directory 'test'
warning: no previously-included files matching '*_ui.py' found anywhere in distribution
warning: no previously-included files matching '*_rc.py' found anywhere in distribution
adding license file 'LICENSES'
adding license file 'COPYING'
adding license file 'AUTHORS'
writing manifest file 'src/m64py.egg-info/SOURCES.txt'
* Building wheel...
validate_pyproject.api.load_builtin_plugin defines `tool.distutils` schema
validate_pyproject.api.load_builtin_plugin defines `tool.setuptools` schema
running bdist_wheel
running build
running build_qt
Updating '/tmp/makepkg.builddir/m64py/src/m64py-0.3.0/src/m64py/ui/i18n/m64py_de_DE.qm'...
Generated 103 translation(s) (0 finished and 103 unfinished)
Ignored 60 untranslated source text(s)
Updating '/tmp/makepkg.builddir/m64py/src/m64py-0.3.0/src/m64py/ui/i18n/m64py_en.qm'...
Generated 0 translation(s) (0 finished and 0 unfinished)
Ignored 163 untranslated source text(s)
warning: BuildQt: Unable to find Qt User Interface Compiler (pyuic6)
ERROR Backend subprocess exited when trying to invoke build_wheel
==> ERROR: A failure occurred in build().
Aborting...
paullouisageneau commented on 2024-10-30 11:15 (UTC)
With commit b149e6460c48b205634477ab61c9ac71ebbb6c9e
(Upgrading to version 0.3.0), build()
fails with the following error:
warning: BuildQt: Unable to find Qt User Interface Compiler (pyuic6)
ERROR Backend subprocess exited when trying to invoke build_wheel
rubin55 commented on 2024-02-09 20:25 (UTC)
To fix the old setup.py, you need to patch it so the "newer" function comes from the right place.
Patch for the PKGBUILD:
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,10 +14,12 @@ makedepends=("python-distribute")
source=(
"https://github.com/mupen64plus/mupen64plus-ui-python/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz"
"fix_core_dump_by_int_cast.patch"
+ "fix_setup_py.patch"
)
sha256sums=(
"0223569ec031b6e6c1d96ac51a19b9262cccce7705c84b5ca5044c94afb75fca"
"598672aa8f821a9b28cdeae8a8058661e379460d9f1201104146623dc59ba7c1"
+ "81f41a2212c9a9edf71f2248e92e99e8f3420a1b74762d23d6e91a26d72d5155"
)
prepare() {
@@ -25,6 +27,9 @@ prepare() {
# https://github.com/mupen64plus/mupen64plus-ui-python/issues/191
patch -Np1 -i "${srcdir}/fix_core_dump_by_int_cast.patch"
+
+ # Make setuptools >69 work.
+ patch -Np0 -i "${srcdir}/fix_setup_py.patch"
}
package() {
Patch to fix setup.py:
--- setup.py.orig 2024-02-09 21:14:15.359607270 +0100
+++ setup.py 2024-02-09 21:15:55.391267720 +0100
@@ -15,6 +15,11 @@
import distutils.command.clean as distutils_clean
import setuptools
+try:
+ from setuptools.modified import newer
+except ImportError:
+ from distutils.dep_util import newer
+
# Add the src folder to the path
sys.path.insert(0, os.path.realpath("src"))
@@ -39,7 +44,7 @@
def compile_rc(self, qrc_file):
import PyQt5
py_file = os.path.splitext(qrc_file)[0] + "_rc.py"
- if not distutils.dep_util.newer(qrc_file, py_file):
+ if not newer(qrc_file, py_file):
return
origpath = os.getenv("PATH")
path = origpath.split(os.pathsep)
@@ -54,7 +59,7 @@
def compile_ui(self, ui_file):
from PyQt5 import uic
py_file = os.path.splitext(ui_file)[0] + "_ui.py"
- if not distutils.dep_util.newer(ui_file, py_file):
+ if not newer(ui_file, py_file):
return
with open(py_file, "w") as a_file:
uic.compileUi(ui_file, a_file, from_imports=True)
ZetaRevan commented on 2023-06-08 15:53 (UTC)
Had issues with install not finding m64py module, so I reinstalled with yay. Running into an error that it can't find the sdl2 python module. Running pacman -Qi shows that I have sdl2 & python-pysdl2 installed.
frealgagu commented on 2023-03-13 13:06 (UTC)
@mxhdrm is the error still happening? I was able to install without issues after the patch
Pinned Comments
frealgagu commented on 2020-12-05 20:57 (UTC)
I maintain the latest built package at:
https://github.com/frealgagu/archlinux.m64py/releases