You are not logged in.
Pages: 1
Topic closed
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
Is it safe to delete the conflicting files?
Yes
Offline
Will do!
Thanks.
Edit: Works! Will mark as SOLVED
Last edited by doblerone (2019-01-28 18:57:39)
Offline
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
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
Same here.. never run it as root either
Offline
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
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
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
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
Yes, package provided permissions are usually the most sane, unless you have a reason for deviating from them.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
Hope this doesn't count as necrobumping...
I simply wanted to say, that after sifting through many entirely unhelpful threads, here and elsewhere, consisting mainly of advice to 'Read the documentation' -- done, thanks -- you wonderful people solved a problem that had been driving me crazy. With the added bonus of clear and articulate explanations as to what had occurred!
Many thanks and very helpful.
Last edited by chris.r (2019-05-23 14:45:54)
Offline
Necrobumping or empty posting, either way, please don't.
https://wiki.archlinux.org/index.php/Co … bumping%22
https://wiki.archlinux.org/index.php/Co … mpty_posts
Closing.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
Pages: 1
Topic closed