If building the package fails for you, either build in a clean chroot or disable the tests, but at your own risk that the functionality will be faulty.
Perhaps because Python 2 is a long way past EOL and does not get security updates?
@Franilustrador :
Would it be best to find out first what apps you have that depend on Python2?
When they have been upgraded, they should be using Python3.
Also, Arch/Manjaro is not guaranteed to be upgradable after a long break.
Maybe it will be easier to start again with a fresh install.
Yes, it does the same thing.
But no, don’t use sudo with pamac.
If it doesn’t work, it won’t do any permanent damage –
it only builds a package, and if it’s no good, either it won’t install or you can uninstall it.
[Disclaimer: I think these statements are true, but am not absolutely certain; use with care. ]
Well, this is what I’ve done, and so far there don’t seem to be any more problems. I have been able to update the other two packages, although I still need to investigate which application needs so manypython 2 packages. Actually, I think Displaycal only uses python 2, and I tried uninstalling it, although I don’t know what else to do or how to act to get rid of all the python 2 packages from AUR.
There was nothing depending on ‘python2-gobject’,
so I removed it recursively :
$ sudo pacman -Rsu python2-gobject
checking dependencies...
Packages (2) python2-2.7.18-5 python2-gobject-3.36.1-4
Total Removed Size: 78.04 MiB
:: Do you want to remove these packages? [Y/n] y
...
The fact that it offered to remove python2 as well meant
that there was nothing else depending on python2, so I hit ‘y’.
Now my machine is free of ancient python2,
which should have died 10 years ago.
@Franilustrador :
Have you successfully updated everything else on your system?
If so, then persist with weeding out python2.
If not, then consider doing a fresh install, as the Arch/Manjaro rolling release system can get into a state that is not automatically upgradable if you leave it for too long between upgrades. You might succed with python2, then find that other things will not upgrade.