You are not logged in.

#1 2019-01-28 18:09:42

doblerone
Member
Registered: 2011-12-08
Posts: 187

[SOLVED] python-pyqt5 error upgrading

Trying to get my system updated I got the following error:

david@arch ~ % LANG=en sudo pacman -Syu                             :(
[sudo] password for david: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (1) python-pyqt5-5.11.3-3

Total Installed Size:  23.14 MiB
Net Upgrade Size:       0.10 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%
error: failed to commit transaction (conflicting files)
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/__pycache__/__init__.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/__pycache__/pylupdate_main.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/__pycache__/pyrcc_main.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/Compiler/__pycache__/__init__.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/Compiler/__pycache__/compiler.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/Compiler/__pycache__/indenter.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/Compiler/__pycache__/misc.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/Compiler/__pycache__/proxy_metaclass.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/Compiler/__pycache__/qobjectcreator.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/Compiler/__pycache__/qtproxies.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/Loader/__pycache__/__init__.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/Loader/__pycache__/loader.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/Loader/__pycache__/qobjectcreator.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/__pycache__/__init__.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/__pycache__/driver.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/__pycache__/exceptions.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/__pycache__/icon_cache.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/__pycache__/objcreator.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/__pycache__/properties.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/__pycache__/pyuic.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/__pycache__/uiparser.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/port_v3/__pycache__/__init__.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/port_v3/__pycache__/as_string.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/port_v3/__pycache__/ascii_upper.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/port_v3/__pycache__/proxy_base.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/port_v3/__pycache__/string_io.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/widget-plugins/__pycache__/qaxcontainer.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/widget-plugins/__pycache__/qscintilla.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/widget-plugins/__pycache__/qtcharts.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/widget-plugins/__pycache__/qtprintsupport.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/widget-plugins/__pycache__/qtquickwidgets.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/widget-plugins/__pycache__/qtwebenginewidgets.cpython-37.pyc exists in filesystem
python-pyqt5: /usr/lib/python3.7/site-packages/PyQt5/uic/widget-plugins/__pycache__/qtwebkit.cpython-37.pyc exists in filesystem
Errors occurred, no packages were upgraded.

Is it safe to delete the conflicting files?

P.S.: I have already version 5.11.3.2

david@arch ~ % checkupdates                                                                :(
python-pyqt5 5.11.3-2 -> 5.11.3-3

Last edited by doblerone (2019-01-28 18:57:59)

Offline

#2 2019-01-28 18:25:18

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 1,594

Re: [SOLVED] python-pyqt5 error upgrading

doblerone wrote:

Is it safe to delete the conflicting files?

Yes

Offline

#3 2019-01-28 18:33:21

doblerone
Member
Registered: 2011-12-08
Posts: 187

Re: [SOLVED] python-pyqt5 error upgrading

Will do!

Thanks.

Edit: Works! Will mark as SOLVED

Last edited by doblerone (2019-01-28 18:57:39)

Offline

#4 2019-01-29 01:21:34

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 2,853

Re: [SOLVED] python-pyqt5 error upgrading

This happened because you apparently ran pyqt code as root. Since the package was recently updated to include byte-compiled python code, this clashed with the orphaned files which python created when 1) it imported the code itself due to running pyuic5, 2) it was executed as root and thus had write permission to the cache directory in /usr/lib


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#5 2019-01-29 16:43:00

Pippip19
Member
Registered: 2018-02-19
Posts: 8

Re: [SOLVED] python-pyqt5 error upgrading

I also saw this error today, albeit only with the file

/usr/lib/python3.7/site-packages/PyQt5/__pycache__/__init__.cpython-37.pyc

Removal of this file worked as OP found. Don't recall ever running pyqt as root.

Offline

#6 2019-02-01 13:35:16

nuc
Member
Registered: 2012-04-26
Posts: 116

Re: [SOLVED] python-pyqt5 error upgrading

Same here.. never run it as root either

Offline

#7 2019-02-01 13:38:47

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 6,443

Re: [SOLVED] python-pyqt5 error upgrading

You also never run pyqt as root, that's a library, if you run anything that uses pyqt as root then this can happen.

Offline

#8 2019-02-04 16:31:30

m4D_guY
Member
Registered: 2018-11-18
Posts: 5

Re: [SOLVED] python-pyqt5 error upgrading

doblerone wrote:

Will do!

Thanks.

Edit: Works! Will mark as SOLVED


Is there an easy command to delete them all at once?
For example somehow pipe the pacman output to rm?

Offline

#9 2019-02-04 17:05:04

m4D_guY
Member
Registered: 2018-11-18
Posts: 5

Re: [SOLVED] python-pyqt5 error upgrading

m4D_guY wrote:
doblerone wrote:

Will do!

Thanks.

Edit: Works! Will mark as SOLVED


Is there an easy command to delete them all at once?
For example somehow pipe the pacman output to rm?

Solved it by runinng :

 sudo pacman -S --overwrite "*.pyc" python-pyqt5  

Offline

#10 2019-02-08 11:37:31

krumelmonster
Member
Registered: 2015-04-27
Posts: 11

Re: [SOLVED] python-pyqt5 error upgrading

I get a

warning: directory permissions differ on /usr/lib/python3.7/site-packages/PyQt5/__pycache__/
filesystem: 740  package: 755

So I guess it's a good idea to also

# chmod 755 /usr/lib/python3.7/site-packages/PyQt5/__pycache__/

Offline

#11 2019-02-08 13:44:38

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 8,692
Website

Re: [SOLVED] python-pyqt5 error upgrading

Yes, package provided permissions are usually the most sane, unless you have a reason for deviating from them.


Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: nVidia GeForce GTX 970 // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB