Fails to build in clean chroot. Python 3.12.
Search Criteria
Package Details: m64py 0.2.5-2
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: | 94 |
Popularity: | 0.000171 |
First Submitted: | 2012-07-25 06:07 (UTC) |
Last Updated: | 2022-10-04 01:42 (UTC) |
Dependencies (6)
- desktop-file-utils (desktop-file-utils-gitAUR)
- libxkbcommon-x11 (libxkbcommon-x11-gitAUR)
- mupen64plus (mupen64plus-gitAUR)
- python-pyqt5 (python-pyqt5-webkitAUR, python-pyqt5-sip4AUR)
- python-pysdl2AUR
- python-distribute (python-setuptools) (make)
Required by (0)
Sources (2)
xiota commented on 2024-04-28 03:57 (UTC)
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
mxhdrm commented on 2022-12-30 16:51 (UTC) (edited on 2022-12-30 16:52 (UTC) by mxhdrm)
On commit 3f824a93b9791f70f0302964de33736b8533e813
downloading and building the package fails.
==> Starting package()...
Traceback (most recent call last):
File "/home/mxhdrm/.cache/yay/python-pysdl2/src/py-sdl2-0.9.14/setup.py", line 5, in <module>
from setuptools import setup
File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 247, in <module>
monkey.patch_all()
File "/usr/lib/python3.10/site-packages/setuptools/monkey.py", line 97, in patch_all
patch_for_msvc_specialized_compiler()
File "/usr/lib/python3.10/site-packages/setuptools/monkey.py", line 134, in patch_for_msvc_specialized_compiler
msvc = import_module('setuptools.msvc')
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/lib/python3.10/site-packages/setuptools/msvc.py", line 24, in <module>
from packaging.version import LegacyVersion
ImportError: cannot import name 'LegacyVersion' from 'packaging.version' (/usr/lib/python3.10/site-packages/packaging/version.py)
==> ERROR: A failure occurred in package().
Aborting...
-> error making: python-pysdl2
This error results from a new version of packaging
.
Forcefully downgrading this package resolves this issue.
pip install --force-reinstall "packaging==21.3"
frealgagu commented on 2022-11-26 22:22 (UTC)
I've added a patch to fix the core dump. Please confirm that you are able to use m64py.
zwastik commented on 2022-09-17 03:09 (UTC) (edited on 2022-09-17 03:10 (UTC) by zwastik)
Archlinux, wayland/sway. Tested with QT_QPA_PLATFORM=xcb and same issue.
M64Py - A frontend for Mupen64Plus version 0.2.5
Frontend: INFO: attached to library 'Mupen64Plus Core' version 2.5.0
Frontend: INFO: includes support for Dynamic Recompiler.
Frontend: INFO: video extension enabled
Video: No version number in 'Rice-Video' config section. Setting defaults.
Video: Old parameter config version detected : 0, updating to 1;
Unhandled Python exception
Aborted (core dumped)
Rain_Shinotsu commented on 2022-04-23 22:59 (UTC) (edited on 2022-04-23 23:01 (UTC) by Rain_Shinotsu)
Trying to load the emulator from my desktop doesn't yield any results, but if I use the command m64py
, I get this output followed by an exit:
M64Py - A frontend for Mupen64Plus version 0.2.5
Frontend: INFO: attached to library 'Mupen64Plus Core' version 2.5.0
Frontend: INFO: includes support for Dynamic Recompiler.
Frontend: INFO: video extension enabled
Video: No version number in 'Rice-Video' config section. Setting defaults.
Video: Old parameter config version detected : 0, updating to 1;
Unhandled Python exception
Aborted (core dumped)
I should note that this is on EndeavourOS, so maybe it works for Arch users?
kiodo1981 commented on 2022-04-13 11:29 (UTC)
I use your github prebuild package and as soon as I start it then report this error:
~ m64py Can't import m64py modules Error:No module named 'm64py'
linux_dream commented on 2021-12-18 20:27 (UTC) (edited on 2021-12-18 20:29 (UTC) by linux_dream)
M64py doesn't work anymore with the latest Python 3.10 version. If there is a workaround, let me know...
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