You are not logged in.
Pages: 1
Hi, i tried to install gamemode from the aur, and it failed with this error:
Traceback (most recent call last):
File "/usr/bin/pip3", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 57, in <module>
import six
ModuleNotFoundError: No module named 'six'
Now every command that i do with either pip, or pip3, whether it is install or uninstall or even --version it just shows me this same error. I tried to reinstall python and it didn't work. I also tought of removing totally python and installing it again but it would erase around 200 packages that i dont want to lose. Help please!
Last edited by KredikShaw (2020-03-31 02:13:30)
Offline
I tried to reinstall python and it didn't work.
Did the issue remain or did pacman fail to reinstall the package. If the latter what was the output from pacman?
Have you been using sudo pip or sudo pip3?
Offline
The issue remain the same after reinstalling python, but it reinstalled it successfully. If i use sudo pip or sudo pip3 is the same output error. Any way i use pip i get this error.
Offline
What is the output of
pacman -Qkk python-sixAlso the full output from makepkg when it fails to build gamemode.
Offline
Sure, Thanks for your help!
This is the makepkg after installing gamemode:
:: There are 2 providers available for gamemode:
:: Repository AUR
1) gamemode 2) gamemode-git
Enter a number (default=1): 1
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur: 1] gamemode-1.5.1-2
1 gamemode (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: PKGBUILD up to date, Skipping (1/1): gamemode
1 gamemode (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: Parsing SRCINFO (1/1): gamemode
==> Creando el paquete: gamemode 1.5.1-2 (lun 30 mar 2020 20:27:20)
==> Recibiendo las fuentes...
-> gamemode-1.5.1.tar.xz ha sido encontrado
==> Validando los archivos source con sha256sums...
gamemode-1.5.1.tar.xz ... Aprobado
==> Creando el paquete: gamemode 1.5.1-2 (lun 30 mar 2020 20:27:22)
==> Comprobando dependencias mientras se ejecuta...
==> Comprobando dependencias mientras se compila...
==> Recibiendo las fuentes...
-> gamemode-1.5.1.tar.xz ha sido encontrado
==> Validando los archivos source con sha256sums...
gamemode-1.5.1.tar.xz ... Aprobado
==> Eliminando el directorio $srcdir/...
==> Extrayendo las fuentes...
-> Extrayendo gamemode-1.5.1.tar.xz con bsdtar
==> Las fuentes están listas.
==> Creando el paquete: gamemode 1.5.1-2 (lun 30 mar 2020 20:27:26)
==> Comprobando dependencias mientras se ejecuta...
==> Comprobando dependencias mientras se compila...
==> ADVERTENCIA: Usando el árbol existente $srcdir/
==> Eliminando el directorio $pkgdir/...
==> Iniciando build()...
Traceback (most recent call last):
File "/usr/bin/meson", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 57, in <module>
import six
ModuleNotFoundError: No module named 'six'
==> ERROR: Se produjo un fallo en build().
Cancelando...
Error making: gamemodeAnd this is the pacman -Qkk python-six
advertencia: python-six: /usr/lib/python3.8/site-packages/six.py (No existe el fichero o el directorio)
python-six: 17 archivos totales, 1 archivo alteradosorry it is in spanish. It says that a file has been altered, and the directory does not exist, but i'm sure i didn't change anything.
Edit: I just tried to use youtube-dl for a non-related thing and it has the same error also. Loos like all the packages that depended on python are broken now.
Last edited by KredikShaw (2020-03-30 23:44:03)
Offline
Can you reinstall python-six? You can change commands output to english pre prepending LC_ALL=C e.g.:
LC_ALL=C makepkgOffline
Thanks! i reinstalled it and it reinstalled successfully, but the error remains on pip and every python depending package
warning: python-six-1.14.0-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) python-six-1.14.0-1
Total Installed Size: 0.09 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [----------------------------------------] 100%
(1/1) checking package integrity [----------------------------------------] 100%
(1/1) loading package files [----------------------------------------] 100%
(1/1) checking for file conflicts [----------------------------------------] 100%
(1/1) checking available disk space [----------------------------------------] 100%
:: Processing package changes...
(1/1) reinstalling python-six [----------------------------------------] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...Edit: Sorry, i tried the pip again and now the error remains but instead of 'six' is 'appdirs'
Traceback (most recent call last):
File "/usr/bin/pip", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 80, in <module>
import appdirs
ModuleNotFoundError: No module named 'appdirs'Edit 2: Ok i reinstalled appdirs, and after it i got missing also pyparsing, i reinstalled it too, and now i get this:
Traceback (most recent call last):
File "/usr/bin/pip", line 11, in <module>
load_entry_point('pip==20.0.2', 'console_scripts', 'pip')()
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 490, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2859, in load_entry_point
return ep.load()
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2450, in load
return self.resolve()
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2456, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3.8/site-packages/pip/_internal/cli/main.py", line 10, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/usr/lib/python3.8/site-packages/pip/_internal/cli/autocompletion.py", line 9, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/usr/lib/python3.8/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module>
from pip._internal.cli import cmdoptions
File "/usr/lib/python3.8/site-packages/pip/_internal/cli/cmdoptions.py", line 28, in <module>
from pip._internal.models.target_python import TargetPython
File "/usr/lib/python3.8/site-packages/pip/_internal/models/target_python.py", line 4, in <module>
from pip._internal.utils.misc import normalize_version_info
File "/usr/lib/python3.8/site-packages/pip/_internal/utils/misc.py", line 23, in <module>
from pip._vendor.retrying import retry # type: ignore
ModuleNotFoundError: No module named 'pip._vendor.retrying'Last edited by KredikShaw (2020-03-31 01:31:54)
Offline
The following should find files not tracked by pacman in /usr/lib/python3.8
find /usr/lib/python3.8 | LC_ALL=C pacman -Qqo - 2>&1 > /dev/null | cut -d ' ' -f 5-Offline
i added a '| unique' there because there were a million copies of the same packages. here is the output
[razor@Kredik ~]$ find /usr/lib/python3.8 | LC_ALL=C pacman -Qqo - 2>&1 > /dev/null | cut -d ' ' -f 5- | uniq
arandr
avahi
btrfs-progs
kauth
kcodecs
kcompletion
kconfig
kconfigwidgets
kcoreaddons
kdbusaddons
kguiaddons
ki18n
kitemviews
kjobwidgets
kwidgetsaddons
ldb
libaccounts-glib
libblockdev
libbytesize
libibus
libimobiledevice
libnewt
libplist
libproxy
libteam
libvoikko
libxml2
lutris
meson
openexr
python
python-appdirs
python-beaker
python-cachecontrol
python-cairo
python-certifi
python-chardet
python-click
python-colorama
python-contextlib2
python-daemonocle
python-dbus
python-distlib
python-distro
python-evdev
python-gobject
python-html5lib
python-idna
python-mako
python-markdown
python-markupsafe
python-msgpack
python-ordered-set
python-packaging
python-pep517
python-pillow
python-pip
python-progress
python-psutil
python-pyparsing
python-pytoml
python-pywal
python-requests
python-retrying
python-send2trash
python-setuptools
python-six
python-toml
python-urllib3
python-webencodings
python-yaml
redshift
talloc
tdb
tevent
util-linux
volume_key
xcb-proto
youtube-dl
python
/usr/lib/python3.8/site-packages/docopt-0.6.2-py3.8.egg-info
/usr/lib/python3.8/site-packages/docopt-0.6.2-py3.8.egg-info/PKG-INFO
/usr/lib/python3.8/site-packages/docopt-0.6.2-py3.8.egg-info/SOURCES.txt
/usr/lib/python3.8/site-packages/docopt-0.6.2-py3.8.egg-info/installed-files.txt
/usr/lib/python3.8/site-packages/docopt-0.6.2-py3.8.egg-info/dependency_links.txt
/usr/lib/python3.8/site-packages/docopt-0.6.2-py3.8.egg-info/top_level.txt
/usr/lib/python3.8/site-packages/attrs-19.3.0.dist-info
/usr/lib/python3.8/site-packages/attrs-19.3.0.dist-info/METADATA
/usr/lib/python3.8/site-packages/attrs-19.3.0.dist-info/INSTALLER
/usr/lib/python3.8/site-packages/attrs-19.3.0.dist-info/WHEEL
/usr/lib/python3.8/site-packages/attrs-19.3.0.dist-info/LICENSE
/usr/lib/python3.8/site-packages/attrs-19.3.0.dist-info/top_level.txt
/usr/lib/python3.8/site-packages/attrs-19.3.0.dist-info/RECORD
thon
python
arandr
avahi
btrfs-progs
kauth
kcodecs
kcompletion
kconfig
kconfigwidgets
kcoreaddons
kdbusaddons
kguiaddons
ki18n
kitemviews
kjobwidgets
kwidgetsaddons
ldb
libaccounts-glib
libblockdev
libbytesize
libibus
libimobiledevice
libnewt
libplist
libproxy
libteam
libvoikko
libxml2
lutris
meson
openexr
python
python-appdirs
python-beaker
python-cachecontrol
python-cairo
python-certifi
python-chardet
python-click
python-colorama
python-contextlib2
python-daemonocle
python-dbus
python-distlib
python-distro
python-evdev
python-gobject
python-html5lib
python-idna
python-mako
python-markdown
python-markupsafe
python-msgpack
python-ordered-set
python-packaging
python-pep517
python-pillow
python-pip
python-progress
python-psutil
python-pyparsing
python-pytoml
python-pywal
python-requests
python-retrying
python-send2trash
python-setuptools
python-six
python-toml
python-urllib3
python-webencodings
python-yaml
redshift
talloc
tdb
tevent
util-linux
volume_key
xcb-proto
youtube-dl
python-urllib3
python-pillow
python-colorama
python-packaging
python-colorama
python-certifi
python-daemonocle
python-appdirs
python-cachecontrol
/usr/lib/python3.8/site-packages/python_xlib-0.26.dist-info
/usr/lib/python3.8/site-packages/python_xlib-0.26.dist-info/METADATA
/usr/lib/python3.8/site-packages/python_xlib-0.26.dist-info/INSTALLER
/usr/lib/python3.8/site-packages/python_xlib-0.26.dist-info/WHEEL
/usr/lib/python3.8/site-packages/python_xlib-0.26.dist-info/LICENSE
/usr/lib/python3.8/site-packages/python_xlib-0.26.dist-info/top_level.txt
/usr/lib/python3.8/site-packages/python_xlib-0.26.dist-info/RECORD
control
python-cachecontrol
python-dbus
python-pip
python-psutil
python-mako
python-yaml
python-pytoml
python-click
python-markdown
python-six
libbytesize
python-beaker
python-click
python-pillow
/usr/lib/python3.8/site-packages/Pillow-7.0.0.dist-info
/usr/lib/python3.8/site-packages/Pillow-7.0.0.dist-info/METADATA
/usr/lib/python3.8/site-packages/Pillow-7.0.0.dist-info/INSTALLER
/usr/lib/python3.8/site-packages/Pillow-7.0.0.dist-info/zip-safe
/usr/lib/python3.8/site-packages/Pillow-7.0.0.dist-info/WHEEL
/usr/lib/python3.8/site-packages/Pillow-7.0.0.dist-info/top_level.txt
/usr/lib/python3.8/site-packages/Pillow-7.0.0.dist-info/RECORD
python-pillow
kauth
kcodecs
kcompletion
kconfig
kconfigwidgets
kcoreaddons
kdbusaddons
kguiaddons
ki18n
kitemviews
kjobwidgets
kwidgetsaddons
ki18n
kauth
kconfig
kdbusaddons
kcoreaddons
kconfigwidgets
kcompletion
kitemviews
kjobwidgets
kcodecs
kconfig
kguiaddons
kwidgetsaddons
python-beaker
libteam
python-ordered-set
python-packaging
python-urllib3
python-markupsafe
python
python-six
avahi
python-pywal
python-certifi
python-yaml
python-pep517
btrfs-progs
python-setuptools
python-pip
python-webencodings
python-distro
xcb-proto
python Offline
Package names appearing in the output is unexpected. Do you have an alias or function for the pacman command?
The following should check for altered python files.
pacman -Qqo /usr/lib/python3.8 | LC_ALL=C pacman -Qkk -Offline
I do have an alias, which is just the letter p.
The output of the last command gave me a lot of warnings on all the python packages:
[razor@Kredik ~]$ pacman -Qqo /usr/lib/python3.8 | LC_ALL=C pacman -Qkk -
warning: arandr: /usr/lib/python3.8/site-packages/arandr-0.1.10-py3.8.egg-info (No such file or directory)
arandr: 152 total files, 1 altered file
avahi: 318 total files, 0 altered files
warning: btrfs-progs: /usr/lib/python3.8/site-packages/btrfsutil.cpython-38-x86_64-linux-gnu.so (No such file or directory)
btrfs-progs: 93 total files, 1 altered file
kauth: 375 total files, 0 altered files
kcodecs: 346 total files, 0 altered files
kcompletion: 362 total files, 0 altered files
kconfig: 370 total files, 0 altered files
kconfigwidgets: 516 total files, 0 altered files
kcoreaddons: 456 total files, 0 altered files
kdbusaddons: 197 total files, 0 altered files
kguiaddons: 68 total files, 0 altered files
ki18n: 414 total files, 0 altered files
kitemviews: 362 total files, 0 altered files
kjobwidgets: 360 total files, 0 altered files
kwidgetsaddons: 555 total files, 0 altered files
warning: ldb: /usr/lib/python3.8/site-packages/_ldb_text.py (No such file or directory)
warning: ldb: /usr/lib/python3.8/site-packages/ldb.cpython-38-x86_64-linux-gnu.so (No such file or directory)
ldb: 58 total files, 2 altered files
libaccounts-glib: 99 total files, 0 altered files
libblockdev: 100 total files, 0 altered files
libbytesize: 21 total files, 0 altered files
libibus: 194 total files, 0 altered files
warning: libimobiledevice: /usr/lib/python3.8/site-packages/imobiledevice.so (No such file or directory)
libimobiledevice: 73 total files, 1 altered file
warning: libnewt: /usr/lib/python3.8/site-packages/_snack.so (No such file or directory)
warning: libnewt: /usr/lib/python3.8/site-packages/snack.py (No such file or directory)
libnewt: 247 total files, 2 altered files
warning: libplist: /usr/lib/python3.8/site-packages/plist.so (No such file or directory)
libplist: 34 total files, 1 altered file
warning: libproxy: /usr/lib/python3.8/site-packages/libproxy.py (No such file or directory)
libproxy: 36 total files, 1 altered file
warning: libteam: /usr/lib/python3.8/site-packages/team-1.0-py3.8.egg-info (No such file or directory)
libteam: 119 total files, 1 altered file
warning: libvoikko: /usr/lib/python3.8/site-packages/libvoikko.py (No such file or directory)
libvoikko: 29 total files, 1 altered file
warning: libxml2: /usr/lib/python3.8/site-packages/drv_libxml2.py (No such file or directory)
warning: libxml2: /usr/lib/python3.8/site-packages/libxml2.py (No such file or directory)
warning: libxml2: /usr/lib/python3.8/site-packages/libxml2mod.so (No such file or directory)
libxml2: 364 total files, 3 altered files
lutris: 733 total files, 0 altered files
meson: 510 total files, 0 altered files
warning: openexr: /usr/lib/python3.8/site-packages/iex.so (No such file or directory)
warning: openexr: /usr/lib/python3.8/site-packages/imath.so (No such file or directory)
warning: openexr: /usr/lib/python3.8/site-packages/imathnumpy.so (No such file or directory)
openexr: 301 total files, 3 altered files
python: 3288 total files, 0 altered files
python-appdirs: 17 total files, 0 altered files
python-beaker: 100 total files, 0 altered files
python-cachecontrol: 53 total files, 0 altered files
warning: python-cairo: /usr/lib/python3.8/site-packages/pycairo-1.19.1-py3.8.egg-info (No such file or directory)
python-cairo: 20 total files, 1 altered file
python-certifi: 26 total files, 0 altered files
python-chardet: 139 total files, 0 altered files
python-click: 66 total files, 0 altered files
python-colorama: 33 total files, 0 altered files
warning: python-contextlib2: /usr/lib/python3.8/site-packages/contextlib2.py (No such file or directory)
python-contextlib2: 17 total files, 1 altered file
python-daemonocle: 24 total files, 0 altered files
python-dbus: 61 total files, 0 altered files
warning: python-distlib: /usr/lib/python3.8/site-packages/distlib-0.3.0-py3.8.egg-info (No such file or directory)
python-distlib: 64 total files, 1 altered file
warning: python-distro: /usr/lib/python3.8/site-packages/distro.py (No such file or directory)
python-distro: 24 total files, 1 altered file
python-evdev: 47 total files, 0 altered files
warning: python-gobject: /usr/lib/python3.8/site-packages/PyGObject-3.36.0.egg-info (No such file or directory)
python-gobject: 99 total files, 1 altered file
python-html5lib: 128 total files, 0 altered files
python-idna: 39 total files, 0 altered files
python-mako: 100 total files, 0 altered files
python-markdown: 85 total files, 0 altered files
python-markupsafe: 29 total files, 0 altered files
python-msgpack: 24 total files, 0 altered files
warning: python-ordered-set: /usr/lib/python3.8/site-packages/ordered_set.py (No such file or directory)
python-ordered-set: 17 total files, 1 altered file
python-packaging: 35 total files, 0 altered files
warning: python-pep517: /usr/lib/python3.8/site-packages/pep517-0.8.1-py3.8.egg-info (No such file or directory)
python-pep517: 41 total files, 1 altered file
python-pillow: 319 total files, 0 altered files
python-pip: 307 total files, 0 altered files
python-progress: 27 total files, 0 altered files
python-psutil: 101 total files, 0 altered files
python-pyparsing: 17 total files, 0 altered files
python-pytoml: 33 total files, 0 altered files
python-pywal: 360 total files, 0 altered files
python-requests: 67 total files, 0 altered files
warning: python-retrying: /usr/lib/python3.8/site-packages/retrying.py (No such file or directory)
python-retrying: 14 total files, 1 altered file
python-send2trash: 36 total files, 0 altered files
warning: python-setuptools: /usr/lib/python3.8/site-packages/easy_install.py (No such file or directory)
python-setuptools: 201 total files, 1 altered file
python-six: 17 total files, 0 altered files
python-toml: 33 total files, 0 altered files
python-urllib3: 100 total files, 0 altered files
python-webencodings: 25 total files, 0 altered files
python-yaml: 67 total files, 0 altered files
redshift: 153 total files, 0 altered files
warning: talloc: /usr/lib/python3.8/site-packages/talloc.cpython-38-x86_64-linux-gnu.so (No such file or directory)
talloc: 23 total files, 1 altered file
warning: tdb: /usr/lib/python3.8/site-packages/_tdb_text.py (No such file or directory)
warning: tdb: /usr/lib/python3.8/site-packages/tdb.cpython-38-x86_64-linux-gnu.so (No such file or directory)
tdb: 25 total files, 2 altered files
warning: tevent: /usr/lib/python3.8/site-packages/_tevent.cpython-38-x86_64-linux-gnu.so (No such file or directory)
warning: tevent: /usr/lib/python3.8/site-packages/tevent.py (No such file or directory)
tevent: 13 total files, 2 altered files
util-linux: 500 total files, 0 altered files
warning: volume_key: /usr/lib/python3.8/site-packages/_volume_key.so (No such file or directory)
warning: volume_key: /usr/lib/python3.8/site-packages/volume_key.py (No such file or directory)
volume_key: 133 total files, 2 altered files
xcb-proto: 66 total files, 0 altered files
youtube-dl: 2430 total files, 0 altered files And looks like there's lot of things missing, what should i do?
Last edited by KredikShaw (2020-03-31 02:00:44)
Offline
Reinstall all packages that own /usr/lib/python3.8
# pacman -S `pacman -Qqo /usr/lib/python3.8`Offline
Amazing! now everything works. Thanks loqs!
Offline
Please avoid using sudo pip and sudo pip3 to avoid a repeat.
Offline
Pages: 1