Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#61557 - [python-pyqt5] *.pyc are included in package

Attached to Project: Arch Linux
Opened by Xuanwo (xuanwo) - Monday, 28 January 2019, 13:51 GMT
Last edited by Eli Schwartz (eschwartz) - Monday, 28 January 2019, 14:06 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

*.pyc are included in package

```
:: Synchronizing package databases...
core is up to date
extra 1691.1 KiB 1604K/s 00:01 [###################################] 100%
community 4.8 MiB 2046K/s 00:02 [###################################] 100%
archlinuxcn 1193.3 KiB 1903K/s 00:01 [###################################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (2) Old Version New Version Net Change Download Size

extra/pyqt5-common 5.11.3-2 5.11.3-3 0.00 MiB 0.50 MiB
extra/python-pyqt5 5.11.3-2 5.11.3-3 0.10 MiB 3.30 MiB

Total Download Size: 3.79 MiB
Total Installed Size: 27.91 MiB
Net Upgrade Size: 0.10 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
pyqt5-common-5.11.3-3-x86_64 507.1 KiB 2.19M/s 00:00 [###################################] 100%
python-pyqt5-5.11.3-3-x86_64 3.3 MiB 1706K/s 00:02 [###################################] 100%
(2/2) checking keys in keyring [###################################] 100%
(2/2) checking package integrity [###################################] 100%
(2/2) loading package files [###################################] 100%
(2/2) 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
Errors occurred, no packages were upgraded.
Error installing repo packages
```

Additional info:
* package version(s)
* config and/or log files etc.


Steps to reproduce:

pacman -Syu
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Monday, 28 January 2019, 14:06 GMT
Reason for closing:  Not a bug
Additional comments about closing:  That's fine, they're meant to be there. Delete your root-created untracked files and proceed.
Comment by Xuanwo (xuanwo) - Monday, 28 January 2019, 13:53 GMT
Sorry, I forgot to update the task's title.
Comment by Martin Rys (C0rn3j) - Monday, 28 January 2019, 14:03 GMT
[14:54] <jelle> C0rn3j: did you launch a Qt app as root
[14:55] <jelle> that will generate .pyc files
[14:55] <jelle> if they don't exist

Looks like it should be safe to delete the file and upgrade.
Comment by Eli Schwartz (eschwartz) - Monday, 28 January 2019, 14:04 GMT
Those conflicts should not happen unless you've been running pyqt applications as root.

Loading...