[arch-general] Python nightmare

admin at linuxsrv.org admin at linuxsrv.org
Fri Aug 19 02:00:10 UTC 2022


Hi guys,

Recently tried to install Spyder IDE but i got a ton of errors, so after 
trying different approaches I found that probably doing it through 
Anaconda would be better. And try first with AUR, but never could, so I 
download Anacondas installer and after a huge amount of time it got 
installed. So there it was Anaconda + Spyder  etc.... however I started 
to get a ton of Python related warnings and error every time I updated 
(pacman -Syu), so i ended up removing Anconda and everything else. But 
now i still getting errors like...

advertencia: no se pudo obtener información del archivo 
usr/lib/python3.10/site-packages/btrfsutil.cpython-310-x86_64-linux-gnu.so
advertencia: no se pudo obtener información del archivo 
usr/lib/python3.10/site-packages/_distutils_hack/__pycache__/override.cpython-310.pyc
advertencia: no se pudo obtener información del archivo 
usr/lib/python3.10/site-packages/jaraco.text-3.8.1.dist-info/

for instance this packages are indeed installed, but I keep gettin the 
warning, and like that I get for a ton of files

ls -l /usr/lib/python3.10/site-packages/jaraco.text-3.9.0.dist-info/
total 20
-rw-r--r-- 1 root root 1050 ago 15 10:38 LICENSE
-rw-r--r-- 1 root root 3916 ago 15 10:38 METADATA
-rw-r--r-- 1 root root 1102 ago 15 10:38 RECORD
-rw-r--r-- 1 root root 7 ago 15 10:38 top_level.txt
-rw-r--r-- 1 root root 92 ago 15 10:38 WHEEL

And even worse, whenever i tried to run certain apps (like gnome-tweaks, 
bpython, ipyhton) now i get errors when they work before without a 
problem.. this is the outrput.

$ gnome-tweaks
Traceback (most recent call last):
File "/usr/bin/gnome-tweaks", line 13, in <module>
import gi
ModuleNotFoundError: No module named 'gi'

$ ipython
Traceback (most recent call last):
File "/usr/bin/ipython", line 5, in <module>
from IPython import start_ipython
File 
"/home/acgx/.local/lib/python3.10/site-packages/IPython/__init__.py", 
line 55, in <module>
from .core.application import Application
File 
"/home/acgx/.local/lib/python3.10/site-packages/IPython/core/application.py", 
line 23, in <module>
from traitlets.config.application import Application, catch_config_error
ModuleNotFoundError: No module named 'traitlets'

$ bpython
Traceback (most recent call last):
File "/usr/bin/bpython", line 33, in <module>
sys.exit(load_entry_point('bpython==0.22.1', 'console_scripts', 
'bpython')())
File "/usr/bin/bpython", line 22, in importlib_load_entry_point
for entry_point in distribution(dist_name).entry_points
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 957, in 
distribution
return Distribution.from_name(distribution_name)
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 548, in 
from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found 
for bpython

Checking out my python binaries i get..

$ ls -l /usr/bin/python*

lrwxrwxrwx 1 root root 7 ago 3 12:39 /usr/bin/python -> python3
lrwxrwxrwx 1 root root 9 oct 10 2021 /usr/bin/python2 -> python2.7
-rwxr-xr-x 1 root root 14168 oct 10 2021 /usr/bin/python2.7
-rwxr-xr-x 1 root root 1681 oct 10 2021 /usr/bin/python2.7-config
lrwxrwxrwx 1 root root 16 oct 10 2021 /usr/bin/python2-config -> 
python2.7-config
-rwxr-xr-x 1 root root 94 dic 13 2021 /usr/bin/python2-pyuic4
lrwxrwxrwx 1 root root 10 ago 3 12:39 /usr/bin/python3 -> python3.10
-rwxr-xr-x 1 root root 14280 ago 3 12:39 /usr/bin/python3.10
-rwxr-xr-x 1 root root 3299 ago 3 12:39 /usr/bin/python3.10-config
lrwxrwxrwx 1 root root 17 ago 3 12:39 /usr/bin/python3-config -> 
python3.10-config
lrwxrwxrwx 1 root root 14 ago 3 12:39 /usr/bin/python-config -> 
python3-config

So, does anybody has seen or been in something like this? any hints how 
can I "purge" "remove" or deinstall properly the buggy libraries and 
reinstall everything properly?

Hope someone have a good pointer. Thanks in advance.

Regards

Adriel CG


More information about the arch-general mailing list