TL;DR:
ImportError: No module named zipp
==> ERROR: A failure occurred in check().
Aborting...
error: target not found: python2-flaky
error: target not found: python2-pretend
-> error making: python2-chardet
These AUR packages are causing problems:
python2-chardet-4.0.0-3
python2-flaky-3.7.0-4
python2-pretend-1.0.9-9
python2-pyopenssl-21.0.0-4
python2-toml-0.10.2-7
Hello there. Hope you’re doing well.
I have a bunch of python2 packages that are failing to upgrade:
❯ yay -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
:: Starting full system upgrade...
there is nothing to do
:: Searching databases for updates...
:: Searching AUR for updates...
-> python2-asn1crypto: local (1.4.0-3) is newer than AUR (1.4.0-1)
-> python2-contextlib2: local (0.6.0.post1-3) is newer than AUR (0.6.0.post1-1)
-> python2-ipaddress: local (1.0.23-2) is newer than AUR (1.0.23-1)
-> python2-ply: local (3.11-7) is newer than AUR (3.11-1)
-> python2-zipp: local (1:1.1.1-1) is newer than AUR (1.2.0-1)
-> Missing AUR Packages: python2-cachecontrol python2-distlib python2-distro python2-pep517 python2-pip python2-progress python2-resolvelib python2-retrying
-> Orphaned AUR Packages: alsaequal
-> Flagged Out Of Date AUR Packages: alsaequal python2-asn1crypto python2-urllib3
:: 3 Packages to upgrade.
3 aur/python2-chardet 4.0.0-2 -> 4.0.0-3
2 aur/python2-pyopenssl 20.0.1-1 -> 21.0.0-4
1 aur/python2-toml 0.10.2-3 -> 0.10.2-7
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
==>
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:3] python2-chardet-4.0.0-3 python2-pyopenssl-21.0.0-4 python2-toml-0.10.2-7
[Aur Make:2] python2-flaky-3.7.0-4 python2-pretend-1.0.9-9
==> Remove make dependencies after install? [y/N] y
5 python2-chardet (Installed) (Build Files Exist)
4 python2-flaky (Build Files Exist)
3 python2-pretend (Build Files Exist)
2 python2-pyopenssl (Installed) (Build Files Exist)
1 python2-toml (Installed) (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> I
:: Deleting (1/3): /home/username/.cache/yay/python2-chardet
:: Deleting (2/3): /home/username/.cache/yay/python2-pyopenssl
:: Deleting (3/3): /home/username/.cache/yay/python2-toml
:: PKGBUILD up to date, Skipping (2/3): python2-flaky, python2-pretend
:: (1/3) Downloaded PKGBUILD: python2-chardet
:: (2/3) Downloaded PKGBUILD: python2-pyopenssl
:: (3/3) Downloaded PKGBUILD: python2-toml
5 python2-chardet (Installed) (Build Files Exist)
4 python2-flaky (Build Files Exist)
3 python2-pretend (Build Files Exist)
2 python2-pyopenssl (Installed) (Build Files Exist)
1 python2-toml (Installed) (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> I
==> Proceed with install? [Y/n] Y
:: (1/5) Parsing SRCINFO: python2-chardet
:: (2/5) Parsing SRCINFO: python2-flaky
:: (3/5) Parsing SRCINFO: python2-pretend
:: (4/5) Parsing SRCINFO: python2-pyopenssl
:: (5/5) Parsing SRCINFO: python2-toml
==> Making package: python2-pyopenssl 21.0.0-4 (Tuesday, June 21, 2022 AM11:03:31)
==> Retrieving sources...
==> Making package: python2-chardet 4.0.0-3 (Tuesday, June 21, 2022 AM11:03:31)
-> Downloading pyopenssl-21.0.0.tar.gz...
% Total % Received % Xferd Average Speed T==> Retrieving sources...
ime Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0==> Making package: python2-pretend 1.0.9-9 (Tuesday, June 21, 2022 AM11:03:31)
==> Making package: python2-flaky 3.7.0-4 (Tuesday, June 21, 2022 AM11:03:31)
-> Downloading chardet-4.0.0.tar.gz...
==> Retrieving sources...
==> Retrieving sources...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0==> Making package: python2-toml 0.10.2-7 (Tuesday, June 21, 2022 AM11:03:31)
-> Found flaky-3.7.0.tar.gz
==> Retrieving sources...
-> Found pretend-1.0.9.tar.gz
==> Validating source files with b2sums...
flaky-3.7.0.tar.gz ... -> Downloading python2-toml-0.10.2.tar.gz...
==> Validating source files with b2sums...
pretend-1.0.9.tar.gz ... Passed
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Passed
100 122 100 122 0 0 1267 0 --:--:-- --:--:-- --:--:-- 1270
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 274 100 274 0 0 750 0 --:--:-- --:--:-- --:--:-- 750
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 1863k 100 1863k 0 0 3111k 0 --:--:-- --:--:-- --:--:-- 3111k
==> Validating source files with b2sums...
chardet-4.0.0.tar.gz ... Passed
100 23325 0 23325 0 0 35734 0 --:--:-- --:--:-- --:--:-- 257k
-> Downloading toml-test-v1.2.0.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 39435 100 39435 0 0 44419 0 --:--:-- --:--:-- --:--:-- 844k
==> Validating source files with sha256sums...
python2-toml-0.10.2.tar.gz ... Passed
toml-test-v1.2.0.tar.gz ... Passed
100 168k 0 168k 0 0 97886 0 --:--:-- 0:00:01 --:--:-- 126k
==> Validating source files with sha512sums...
pyopenssl-21.0.0.tar.gz ... Passed
==> Making package: python2-chardet 4.0.0-3 (Tuesday, June 21, 2022 AM11:03:34)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found chardet-4.0.0.tar.gz
==> Validating source files with b2sums...
chardet-4.0.0.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Extracting chardet-4.0.0.tar.gz with bsdtar
==> Starting prepare()...
==> Sources are ready.
==> Making package: python2-chardet 4.0.0-3 (Tuesday, June 21, 2022 AM11:03:35)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
running build
running build_py
creating build
creating build/lib
creating build/lib/chardet
copying chardet/mbcssm.py -> build/lib/chardet
copying chardet/escprober.py -> build/lib/chardet
copying chardet/euctwfreq.py -> build/lib/chardet
copying chardet/langgreekmodel.py -> build/lib/chardet
copying chardet/chardistribution.py -> build/lib/chardet
copying chardet/hebrewprober.py -> build/lib/chardet
copying chardet/enums.py -> build/lib/chardet
copying chardet/escsm.py -> build/lib/chardet
copying chardet/jisfreq.py -> build/lib/chardet
copying chardet/sjisprober.py -> build/lib/chardet
copying chardet/gb2312freq.py -> build/lib/chardet
copying chardet/jpcntx.py -> build/lib/chardet
copying chardet/big5freq.py -> build/lib/chardet
copying chardet/euctwprober.py -> build/lib/chardet
copying chardet/latin1prober.py -> build/lib/chardet
copying chardet/version.py -> build/lib/chardet
copying chardet/big5prober.py -> build/lib/chardet
copying chardet/compat.py -> build/lib/chardet
copying chardet/mbcharsetprober.py -> build/lib/chardet
copying chardet/euckrprober.py -> build/lib/chardet
copying chardet/utf8prober.py -> build/lib/chardet
copying chardet/sbcsgroupprober.py -> build/lib/chardet
copying chardet/charsetgroupprober.py -> build/lib/chardet
copying chardet/cp949prober.py -> build/lib/chardet
copying chardet/eucjpprober.py -> build/lib/chardet
copying chardet/langrussianmodel.py -> build/lib/chardet
copying chardet/langbulgarianmodel.py -> build/lib/chardet
copying chardet/codingstatemachine.py -> build/lib/chardet
copying chardet/charsetprober.py -> build/lib/chardet
copying chardet/gb2312prober.py -> build/lib/chardet
copying chardet/universaldetector.py -> build/lib/chardet
copying chardet/__init__.py -> build/lib/chardet
copying chardet/langturkishmodel.py -> build/lib/chardet
copying chardet/euckrfreq.py -> build/lib/chardet
copying chardet/mbcsgroupprober.py -> build/lib/chardet
copying chardet/langhebrewmodel.py -> build/lib/chardet
copying chardet/sbcharsetprober.py -> build/lib/chardet
copying chardet/langthaimodel.py -> build/lib/chardet
copying chardet/langhungarianmodel.py -> build/lib/chardet
creating build/lib/chardet/cli
copying chardet/cli/chardetect.py -> build/lib/chardet/cli
copying chardet/cli/__init__.py -> build/lib/chardet/cli
creating build/lib/chardet/metadata
copying chardet/metadata/languages.py -> build/lib/chardet/metadata
copying chardet/metadata/__init__.py -> build/lib/chardet/metadata
==> Starting check()...
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/lib/python2.7/site-packages/pytest.py", line 8, in <module>
from _pytest.assertion import register_assert_rewrite
File "/usr/lib/python2.7/site-packages/_pytest/assertion/__init__.py", line 13, in <module>
from _pytest.assertion import rewrite
File "/usr/lib/python2.7/site-packages/_pytest/assertion/rewrite.py", line 24, in <module>
from _pytest.assertion import util
File "/usr/lib/python2.7/site-packages/_pytest/assertion/util.py", line 11, in <module>
import _pytest._code
File "/usr/lib/python2.7/site-packages/_pytest/_code/__init__.py", line 7, in <module>
from .code import Code # noqa
File "/usr/lib/python2.7/site-packages/_pytest/_code/code.py", line 15, in <module>
import pluggy
File "/usr/lib/python2.7/site-packages/pluggy/__init__.py", line 16, in <module>
from .manager import PluginManager, PluginValidationError
File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 11, in <module>
import importlib_metadata
File "/usr/lib/python2.7/site-packages/importlib_metadata/__init__.py", line 9, in <module>
import zipp
ImportError: No module named zipp
==> ERROR: A failure occurred in check().
Aborting...
error: target not found: python2-flaky
error: target not found: python2-pretend
-> error making: python2-chardet
These packages are causing problems:
python2-chardet-4.0.0-3
python2-flaky-3.7.0-4
python2-pretend-1.0.9-9
python2-pyopenssl-21.0.0-4
python2-toml-0.10.2-7
After reading Missing Python 2 AUR Packages I believe I have the same case as well.
My questions:
1. How do I make sure they are not used by programs in my system
2. After ensuring that is the case above, how do I remove them?
I tried to remove them but got different errors:
❯ yay -R python2-toml
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing python2-toml breaks dependency 'python2-toml' required by python2-pep517
:: removing python2-toml breaks dependency 'python2-toml' required by python2-pip
-> exit status 1
❯ yay -R python2-chardet
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing python2-chardet breaks dependency 'python2-chardet' required by python2-requests
-> exit status 1
❯ yay -R python2-flaky
error: target not found: python2-flaky
-> exit status 1
❯ yay -R python2-pretend
error: target not found: python2-pretend
-> exit status 1
❯ yay -R python2-pyopenssl
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing python2-pyopenssl breaks dependency 'python2-pyopenssl' required by python2-pip
-> exit status 1
Any input is much appreciated. Thank you:)