I received a notification to update python2
package, from 2.7.18-5
to 2.7.18-6
$ yay -Syu --aur
And I cleanBuild the package.
When the system is running the tests, I get:
== Tests result: FAILURE ==
371 tests OK.
1 test failed:
test_curses
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: 8 min 10 sec
Tests result: FAILURE
==> ERROR: A failure occurred in check().
Aborting...
Anyone with this problem as well?
Please read Announcement posts:
[Stable Update] 2022-10-05 - Kernels, Systemd, AMDVLK, Deepin, Pamac, QEMU, Thunderbird, Firefox, 0 A.D., Gradience, Linux Firmware, WINE, GNOME, Pipewire Stable Updates
Hello community,
Another stable branch update packed with a lot of updates for you.
[image]
We partnered up with Slimbook to bring the Titan Gaming Laptop to our Community, including 50 ⏠launch discount!
We updated all our Kernels
Note: linux518 / linux518-rt are EOL and have been dropped from the repos
Systemd is now at 251.5
Firefox is now at 105.0.2
Thunderbird got renewed to 102.3.1
0 A.D. introduces The Han via Alpha 26
GNOME shipped 42.5 packages.
Pamac got prepped for GâŚ
1 Like
@Yochanan Thank you for your comment.
In that link, I can read:
Is this the reason, i.e. python2
being removed from the repos, why it gives that error when building?
Forgive my ignorance, Iâm new in the field.
Thanks
1 Like
Hmm, " * Python 2 was finally dropped from the repos " about time.
I too had the update message and fail to compile.
After uninstalling python2.
To be sure I ran
locate python2
and removed the remaining rubbish except for whatâs in timeshiftâs subvolumes.
1 Like
No.
The point of python2
being dropped is that you likely donât need it either.
Thanks. Iâve tried to remove it, but I get this:
$ sudo pacman -Rsn python2
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing python2 breaks dependency 'python2' required by python2-dbus
:: removing python2 breaks dependency 'python2' required by python2-numpy
:: removing python2 breaks dependency 'python2' required by python2-sip-pyqt4
How could I cleanly remove it?
Also remove the (AUR) packages that depend on it.
Meaning
$ sudo pacman -Rsn python2-pyqt4 python2-numpy
?
You can use the cascade parameter to remove all packages that depend on python2:
sudo pacman -Rcs python2
or with pamac
:
pamac remove --cascade python2
4 Likes
David5
9 October 2022 15:14
10
Thanks. I understand packages dropped to AUR can be safely removed.
However, this shouldnât prevent building the package from AUR.
Hence, what is the origin of this error?
David5:
$ yay -Syu --aur
And I cleanBuild the package.
When the system is running the tests, I get:
== Tests result: FAILURE ==
371 tests OK.
1 test failed:
test_curses
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: 8 min 10 sec
Tests result: FAILURE
==> ERROR: A failure occurred in check().
Aborting...
Lolix
9 October 2022 19:23
11
Executing test donât like most of the terminals seem AUR (en) - python2
Is a good idea to check the AURweb page for comments and solutions AUR (en) - python2
1 Like
The relevant comment is
@micwoj92 adding export TERM=xterm to check() and xterm to checkdepends
edit the package build as stated above
Notes export TERM=xterm must be within the brackets and xterm must look like this âxtermâ
Lolix
10 October 2022 19:27
13
Not mandatory, it can be whenever in the pkgbuild
also not mandatory, quoting dependencies like that is a waste of quotes, pkgubilds work the same without
I have no idea if you say so I only followed what the comment said so not being an expert on PKGBUILD
I donât Know?
Jumaru
18 October 2022 11:11
15
When i try to install âcndrvcups-lb-binâ for my Canon MF 4410 printer driver, it says âpython2 compilation failedâ. So i canât use my printer. But i could easily install the driver and use the printer before. Hope anybody can help me?
Jumaru
18 October 2022 11:25
17
Couldnât get it. Sorry.
Jumaru
18 October 2022 11:57
18
Iâm really got mad at this problem. Manjaro is nice but sometimes it is useless
If you canât play guitar that doesnât make it useless.
Try to build just python2 and edit the build to include the bits as shown in post 12
(Use pamac gui)