Can't upgrade recent packages.

Was trying to install latest updates on XFCE and was greeted with this? How do I fix it?

(118/118) checking keys in keyring                                                          [------------------------------------------------------] 100%
(118/118) checking package integrity                                                        [------------------------------------------------------] 100%
(118/118) loading package files                                                             [------------------------------------------------------] 100%
(118/118) checking for file conflicts                                                       [------------------------------------------------------] 100%
error: failed to commit transaction (conflicting files)
python-attrs: /usr/lib/python3.7/site-packages/attr/__init__.py exists in filesystem
python-attrs: /usr/lib/python3.7/site-packages/attr/__init__.pyi exists in filesystem
python-attrs: /usr/lib/python3.7/site-packages/attr/__pycache__/__init__.cpython-37.pyc exists in filesystem
python-attrs: /usr/lib/python3.7/site-packages/attr/__pycache__/_compat.cpython-37.pyc exists in filesystem
python-attrs: /usr/lib/python3.7/site-packages/attr/__pycache__/_config.cpython-37.pyc exists in filesystem
python-attrs: /usr/lib/python3.7/site-packages/attr/__pycache__/_funcs.cpython-37.pyc exists in filesystem
python-attrs: /usr/lib/python3.7/site-packages/attr/__pycache__/_make.cpython-37.pyc exists in filesystem
python-attrs: /usr/lib/python3.7/site-packages/attr/__pycache__/converters.cpython-37.pyc exists in filesystem
python-attrs: /usr/lib/python3.7/site-packages/attr/__pycache__/exceptions.cpython-37.pyc exists in filesystem
python-attrs: /usr/lib/python3.7/site-packages/attr/__pycache__/filters.cpython-37.pyc exists in filesystem
python-attrs: /usr/lib/python3.7/site-packages/attr/__pycache__/validators.cpython-37.pyc exists in filesystem
python-attrs: /usr/lib/python3.7/site-packages/attr/_compat.py exists in filesystem
python-attrs: /usr/lib/python3.7/site-packages/attr/_config.py exists in filesystem
python-attrs: /usr/lib/python3.7/site-packages/attr/_funcs.py exists in filesystem
python-attrs: /usr/lib/python3.7/site-packages/attr/_make.py exists in filesystem
python-attrs: /usr/lib/python3.7/site-packages/attr/converters.py exists in filesystem
python-attrs: /usr/lib/python3.7/site-packages/attr/converters.pyi exists in filesystem
python-attrs: /usr/lib/python3.7/site-packages/attr/exceptions.py exists in filesystem
python-attrs: /usr/lib/python3.7/site-packages/attr/exceptions.pyi exists in filesystem
python-attrs: /usr/lib/python3.7/site-packages/attr/filters.py exists in filesystem
python-attrs: /usr/lib/python3.7/site-packages/attr/filters.pyi exists in filesystem
python-attrs: /usr/lib/python3.7/site-packages/attr/py.typed exists in filesystem
python-attrs: /usr/lib/python3.7/site-packages/attr/validators.py exists in filesystem
python-attrs: /usr/lib/python3.7/site-packages/attr/validators.pyi exists in filesystem
Errors occurred, no packages were upgraded.

Hi, paste results:

pacman -Qo /usr/lib/python3.7/site-packages/attr/validators.py
sudo pacman -Syyu --overwrite='*'

Python-attrs was installed via pip???

2 Likes

Searched a bit and found a similar topic and it solved the problem

sudo pip uninstall attrs

the above command solve the problem.

2 Likes

yes, uninstalling it solved the problem.

Uninstalling the attrs package solved the problem.

paste results: pacman -Qo /usr/lib/python3.7/site-packages/attr/validators.py

/usr/lib/python3.7/site-packages/attr/validators.py is owned by python-attrs 19.1.0-1

Glad to pip do the job :wink:

Oops, I just posted the same thing (did search before, this topic didn't come up). However, I'm pretty sure I did not install attrs via pip. Still wanna find out which package thinks it needs python-attrs.

On my system, python-attrs is required by python-packaging, which is required by python-setuptools, which is required by youtube-dl.

thank you, but how did you find out? python-attrs is currently not installed on my system, and all the ways I found for retrieving information about packages only work for packages that are installed.

Because I already have it installed on my system. :slight_smile:

Well is there a way to find out when you don't have it installed?

Not that I know of. But more and more applications need it now a days. For example the new fpakman needs it.

But if you are pretty sure you did not install attrs via pip, then what does:
sudo pip uninstall attrs give?

It uninstalls it - which means it was installed, of course, but it doesn't mean I installed it explicitly, it was pulled as a dependency, but I don't know what of

Forum kindly sponsored by Bytemark