You are not logged in.
Sorry that this was posted before, not related to mythplugins, but I did not understand the solution.
The error occurs in the install of future-1.0.0
platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0 -- /usr/bin/python
cachedir: .pytest_cache
rootdir: /home/jklug/.cache/yay/python-future/src/future-1.0.0
configfile: pytest.ini
plugins: typeguard-4.4.1
collecting ... collected 99 items / 1 error
==================================== ERRORS ====================================
_____________ ERROR collecting tests/test_past/test_translation.py _____________
ImportError while importing test module '/home/jklug/.cache/yay/python-future/src/future-1.0.0/tests/test_past/test_translation.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.13/importlib/__init__.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_past/test_translation.py:21: in <module>
from past.translation import install_hooks, remove_hooks, common_substring
build/lib/past/translation/__init__.py:44: in <module>
from lib2to3.pgen2.parse import ParseError
E ModuleNotFoundError: No module named 'lib2to3'
Is there a way to work around this issue to install mythplugins?
If it matters, this occurs when I updated my system using yay:
yay -Syuu
Last edited by klugja (Today 14:07:29)
Offline
What research have you done so far regarding this issue?
Online
I know lib2to3 is deprecated, so it should not be referenced at all.
I suppose the next thing to do is look at the sources for the build and try to determine what file is using lib2to3.
Here is a similar discussion about seafile, which was apparently corrected, but I don't have seafile installed, I believe. I don't think it applies to my situation.
https://bbs.archlinux.org/viewtopic.php?id=302235
I have python3 3.11.2 on another Linux PC, and python3-lib2to3 is available.
So I suppose the solution is to install python3 3.11.2, or some other old version, however that can be done.
Last edited by klugja (Yesterday 23:56:45)
Offline
This seems to be a work-around:
https://aur.archlinux.org/packages/pyth … nt-1006698
I will have to give it a try.
Offline
Replacing lib2to3 with python-fissix fixes the mythtv build issue I had:
https://aur.archlinux.org/packages/pyth … nt-1006698
I installed samba (which I had not previously installed) using pacman, so I do not believe that python-future or python-fissix will break pacman as one comment suggests.
I think mythtv has accumulated many python scripts over the years, and they don't have the resources to update them, and they are not required, so here we are.
Offline
An alternative solution is to remove python-future from the myth-git PKGBUILD as it is no longer used:
https://aur.archlinux.org/packages/myth … nt-1006378
https://github.com/MythTV/mythtv/commit … 1ecde12182
https://github.com/MythTV/mythtv/commit … 92388bd7d1
diff --git a/PKGBUILD b/PKGBUILD
index 88dc512..228e604 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -56,7 +56,6 @@ makedepends=(
'perl-net-upnp'
'perl-xml-simple'
'perl-xml-xpath'
- 'python-future'
'python-lxml'
'python-mysqlclient'
'python-pip'
@@ -76,7 +75,6 @@ optdepends=(
'perl-net-upnp: Perl bindings'
'perl-xml-simple: Perl bindings'
'perl-xml-xpath: Perl bindings'
- 'python-future: Python bindings'
'python-lxml: Python bindings'
'python-mysqlclient: Python bindings'
'python-requests: Python bindings'
Offline