You are not logged in.

#1 2022-11-22 06:29:42

Registered: 2020-03-27
Posts: 30

Python2 failing to build

Hello, I am trying to build the python2 package from the AUR and it is failing the tests portion of the makepkg:

Ran 54 tests in 0.986s


== Tests result: FAILURE ==

367 tests OK.

4 tests failed:
    test_dbm test_gdbm test_mmap test_whichdb

1 test altered the execution environment:

23 tests skipped:
    test_aepack test_al test_applesingle test_bsddb185 test_cd test_cl
    test_dl test_gl test_imageop test_imgfile test_kqueue
    test_linuxaudiodev test_macos test_macostools test_msilib
    test_ossaudiodev test_py3kwarn test_scriptpackages test_startfile
    test_sunaudiodev test_winreg test_winsound test_zipfile64
Those skips are all expected on linux2.

Total duration: 10 min 48 sec
Tests result: FAILURE
==> ERROR: A failure occurred in check().

As a workaround I was able to install the "python2-bin" package which satisfied the dependency for another package I was trying to build. Just FYI


#2 2022-11-22 17:15:44

Registered: 2012-08-01
Posts: 1,222

Re: Python2 failing to build

Python2 has been deprecated in 2014, and is unmaintained for 2.5 years now. It is expected, that it will become incompatible with existing environments, causing test failures, build failures or — worst of all — silent malfunctions.

The best option is to quit using software that depends on Python2 (or any other unmaintained components) and find an alternative. If that is not possible, the second best option is to help with updating the software (if it’s FOSS) or imploring the owners to update (if it’s proprietary). If neither of the above is available, separate it inside a virtual machine or a container, frozen in early 2022. Preferably with no network exposure and as little communication with your live system as possible: for both safety and security.

Sometimes I seem a bit harsh — don’t get offended too easily!


#3 2022-11-22 17:24:19

Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,953

Re: Python2 failing to build

Builds fine in a clean chroot on my machine. … ean_chroot

Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.


Board footer

Powered by FluxBB