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"
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