[arch-general] Python nightmare

2022-08-18 Thread admin--- via arch-general

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 
import gi
ModuleNotFoundError: No module named 'gi'

$ ipython
Traceback (most recent call last):
File "/usr/bin/ipython", line 5, in 
from IPython import start_ipython
File 
"/home/acgx/.local/lib/python3.10/site-packages/IPython/__init__.py", 
line 55, in 

from .core.application import Application
File 
"/home/acgx/.local/lib/python3.10/site-packages/IPython/core/application.py", 
line 23, in 

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 
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


Re: [arch-general] Python nightmare

2022-08-19 Thread admin--- via arch-general

El 2022-08-19 12:18, Ralf Mardorf via arch-general escribió:


On Fri, 2022-08-19 at 10:06 +0100, Ralph Corderoy wrote:


My guess is this isn't the real Randall DuCharme


Apparently it was somebody else or a bot :D.


Pretty crazy bot :D


Re: [arch-general] Python nightmare

2022-08-19 Thread admin--- via arch-general

El 2022-08-19 06:16, Guus Snijders via arch-general escribió:


Op vr 19 aug. 2022 04:00 schreef admin--- via arch-general <
arch-general@lists.archlinux.org>:


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.


Ok, first question: how did you install these applications? Was it an 
Arch

package or from source? Or even another packager like PIP?

I tried to install it from Arch pkg first, and then from AUR, finally I 
use the

Anaconda installer

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/


Hint: use
LANG=C pacman -Syu
If you seek help on an international mailing list. Messages in English 
are

a lot easier to work with. :)

:D good point, thanks.


[...]

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.


Well, it looks like your python installation is messed up. Hence my
question about installing from source.

Could you try to use these (broken) applications as another user? With 
a

bit of luck, it's only the personal environment that got broken.

Yep, I tried it wiht a brand new user with the same result :(

If it doesn't work with another user, then you might have corrupted the
files. Perhaps that can be fixed by reinstalling the packages (from a 
known
good source), otherwise it's probably time to reinstall Arch completely 
and

restore the user data from backup.

This is what i was trying to avoid, but every day i see it more near as 
a solution.


Of course, this being Linux, you could also opt to check each file 
under
/usr with pacman. (Can this be done the other way around? By letting 
pacman

test the integrity of each installed pkg?).

There's nothing wrong with a little manual work, I'm just guessing that
starting from scratch might be faster, depending on the damage.

yes, I agree. Thanks Guus for your comments.

Regards

Mvg, Guus Snijders


Re: [arch-general] User authentication problems at OpenVPN on ArchLinux

2020-12-31 Thread admin--- via arch-general
Jordan Borgner via arch-general wrote:
> Good day everyone.

> I'm facing a weird problem with my vpn. It fails to authenticate users
> despite the entered password is correct (copied and pasted).
> 
> OpenVPN (version 2.5.0 on ArchLinux) itself is serviced with systemd and
> runs fine. I'm using OpenVPN's auth-pam plugin to authenticate users.
> You find the configuration- and logfiles below.


Hello,

I believe the problem might be openvpn is running as an unprivileged
user with capabilities now instead of relying on openvpn itself dropping
privileges. You'd have to revert those changes to allow pam access to
the password files.

https://github.com/archlinux/svntogit-packages/commit/3da0f77eeae1e7bd5e877fe183ca67fc20101ad3



--
Andy