Upgrade Error - aur/python-future 1.0.0-2 -> 1.0.0-4

Hello Everyone,

I am trying to update the following package but getting an error:

:: 1 package to upgrade/install.
1  aur/python-future  1.0.0-2 -> 1.0.0-4

Error:

Successfully built future-1.0.0-py3-none-any.whl
==> Starting check()...
============================================================================ test session starts ============================================================================
platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0 -- /usr/bin/python
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase(PosixPath('/home/aahmad/.cache/yay/python-future/src/future-1.0.0/.hypothesis/examples'))
rootdir: /home/aahmad/.cache/yay/python-future/src/future-1.0.0
configfile: pytest.ini
plugins: typeguard-4.4.1, hypothesis-6.123.2, jaraco.test-5.4.0
collected 99 items / 1 error                                                                                                                                                

================================================================================== ERRORS ===================================================================================
___________________________________________________________ ERROR collecting tests/test_past/test_translation.py ____________________________________________________________
ImportError while importing test module '/home/aahmad/.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'
============================================================================= warnings summary ==============================================================================
build/lib/future/backports/test/support.py:1945
  /home/aahmad/.cache/yay/python-future/src/future-1.0.0/build/lib/future/backports/test/support.py:1945: SyntaxWarning: invalid escape sequence '\d'
    m = re.match("2.6.(\d{1,2})", kernel_version)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
========================================================================== short test summary info ==========================================================================
ERROR tests/test_past/test_translation.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
======================================================================== 1 warning, 1 error in 0.66s ========================================================================
==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: python-future-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
python-future - exit status 4

Can anyone help me resolve this error please? Any assistance would be greatly appreciated.

Thanks!

pip install future

Better?
https://python-future.org/quickstart.html#installation

If you have a problem with an AUR package, your first stop should generally be the package’s AUR webpage. The pinned post on the python-future AUR page states

Do not post check errors here. Python-future package is not compatible with Python 3.13. If you use packages that depend on it, please contact maintainers and/or upstream of these packages and try to work out whether this dependency is really needed.

3 Likes

Why do you even want it installed? Python 2 is dead.

From the upstream url:

What’s new in version 1.0.0 (2024-02-21)

The new version number of 1.0.0 indicates that the python-future project, like Python 2, is now done.

1 Like

Just FYI, python-future was dropped from the repos to the AUR for a reason–it’s not compatible with Python 3.13. You may not even need it unless an AUR package still depends on it.

❯ pacman -Qi python-future | grep 'Required By\|Optional For'

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.