You are not logged in.

#1 2022-04-18 23:15:28

kalekundert
Member
Registered: 2022-04-18
Posts: 4

[solved] python-entrypoints: entrypoints.cpython-310.pyc exists...

I got the following error when I tried to upgrade my system today:

$ pacman -Syyu
:: Synchronizing package databases...
 core                  157.3 KiB   119 KiB/s 00:01 [######################] 100%
 extra                1724.5 KiB  1265 KiB/s 00:01 [######################] 100%
 community               6.6 MiB  2.84 MiB/s 00:02 [######################] 100%
 multilib              175.4 KiB   713 KiB/s 00:00 [######################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
:: libvterm01 and libvterm are in conflict. Remove libvterm? [y/N] y
warning: dependency cycle detected:
warning: jupyterlab will be installed before its jupyter-nbconvert dependency

Packages (160) adwaita-icon-theme-42.0+r1+gc144c3d75-1
               alsa-card-profiles-1:0.3.50-1  appstream-0.15.3-1
               appstream-qt-0.15.3-1  attica-5.93.0-1  binutils-2.38-4
               blas-3.10.1-1  boost-1.78.0-2  boost-libs-1.78.0-2
               breeze-icons-5.93.0-1  calibre-5.40.0-2  cblas-3.10.1-1
               chromium-100.0.4896.127-2  cmake-3.23.1-1
               cups-filters-1.28.15-1  enchant-2.3.2-2  evince-42.2-1
               firefox-99.0.1-1  frameworkintegration-5.93.0-1  ghex-42.1-1
               git-2.35.3-1  github-cli-2.8.0-1  go-2:1.18.1-1
               gptfdisk-1.0.9-1  gvfs-1.50.0+r5+g747c7f6e-1  harfbuzz-4.2.0-3
               harfbuzz-icu-4.2.0-3  haskell-citeproc-0.6.0.1-36
               haskell-text-icu-0.8.0.1-10  iana-etc-20220325-1  icu-71.1-1
               imagemagick-7.1.0.30-1
               intellij-idea-community-edition-4:2022.1-1  iproute2-5.17.0-2
               jack2-1.9.21-1  jupyter-nbclient-0.6.0-1
               jupyter-nbconvert-6.5.0-2  jupyterlab-3.3.4-1
               kactivities-5.93.0-1  kactivities-stats-5.93.0-1
               karchive-5.93.0-1  kauth-5.93.0-1  kbookmarks-5.93.0-1
               kcmutils-5.93.0-1  kcodecs-5.93.0-1  kcompletion-5.93.0-1
               kconfig-5.93.0-1  kconfigwidgets-5.93.0-1  kcoreaddons-5.93.0-1
               kcrash-5.93.0-1  kdbusaddons-5.93.0-1  kdeclarative-5.93.0-1
               kded-5.93.0-1  kdesu-5.93.0-1  kdnssd-5.93.0-1
               kglobalaccel-5.93.0-1  kguiaddons-5.93.0-1  kholidays-1:5.93.0-1
               ki18n-5.93.0-1  kiconthemes-5.93.0-1  kidletime-5.93.0-1
               kio-5.93.0-1  kirigami2-5.93.0-1  kitemmodels-5.93.0-1
               kitemviews-5.93.0-1  kitty-0.25.0-1
               kitty-shell-integration-0.25.0-1  kitty-terminfo-0.25.0-1
               kjobwidgets-5.93.0-1  knewstuff-5.93.0-1
               knotifications-5.93.0-1  knotifyconfig-5.93.0-1
               kpackage-5.93.0-1  kparts-5.93.0-1  kpeople-5.93.0-1
               kpty-5.93.0-1  kquickcharts-5.93.0-1  krunner-5.93.0-1
               kservice-5.93.0-1  ktexteditor-5.93.0-1  ktextwidgets-5.93.0-1
               kwallet-5.93.0-1  kwayland-5.93.0-2  kwidgetsaddons-5.93.0-1
               kwindowsystem-5.93.0-1  kxmlgui-5.93.0-1  lapack-3.10.1-1
               lib32-harfbuzz-4.2.0-3  lib32-icu-71.1-1  lib32-libxml2-2.9.13-2
               libbpf-0.7.0-1  libbsd-0.11.6-1  libcdr-0.1.7-4
               libe-book-0.1.3-11  libgit2-1:1.4.3-1  libical-3.0.14-3
               libmnl-1.0.5-1  libmspub-0.1.4-12  libnfnetlink-1.0.2-1
               libqalculate-4.1.1-2  libqxp-0.0.2-8  libreoffice-fresh-7.3.2-2
               libsynctex-2021.59745-3  libusb-1.0.26-1  libvisio-0.1.7-7
               libvterm-0.2-1 [removal]  libvterm01-0.1.4-1  libxml2-2.9.13-2
               libzmf-0.0.2-12  linux-5.17.3.arch1-1
               linux-firmware-20220411.705f19a-1
               linux-firmware-whence-20220411.705f19a-1  meson-0.62.0-2
               neovim-0.7.0-1  nodejs-17.9.0-2  openexr-3.1.5-1
               openssh-9.0p1-1  pandoc-2.17.1.1-12  pango-1:1.50.7-1
               pavucontrol-1:5.0+r35+g964f298-1  pipewire-1:0.3.50-1
               plasma-framework-5.93.0-2  postfix-3.7.0-3  postgresql-13.6-2
               postgresql-libs-13.6-2  prison-5.93.0-1
               python-entrypoints-0.4-2  python-gobject-3.42.1-1
               python-ipykernel-6.13.0-1  python-jupyter_core-4.10.0-1
               python-pyqt5-sip-12.10.1-1  python-setproctitle-1.2.3-1
               python-setuptools-1:59.5.0-1  qqc2-desktop-style-5.93.0-1
               qt5-base-5.15.3+kde+r137-2  qt5-wayland-5.15.3+kde+r44-1
               qt5-webengine-5.15.9-2  qt5-webkit-5.212.0alpha4-13  r-4.1.3-2
               raptor-2.0.15-19  ruby-3.0.4-1  ruby-public_suffix-4.0.7-1
               scribus-1.5.8-4  semver-7.3.7-1  signal-desktop-5.39.0-1
               smbclient-4.16.0-5  solid-5.93.0-1  sonnet-5.93.0-1
               suitesparse-5.12.0-1  syndication-5.93.0-1
               syntax-highlighting-5.93.0-1  texlive-bin-2021.59745-3
               threadweaver-5.93.0-1  thunderbird-91.8.0-2  tracker3-3.3.0-2
               vmaf-2.3.1-1  vte-common-0.68.0-2  vte3-0.68.0-2
               webkit2gtk-2.36.0-3  xfsprogs-5.15.0-2

Total Download Size:   1730.62 MiB
Total Installed Size:  5861.46 MiB
Net Upgrade Size:       226.93 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 intellij-idea-co...   408.0 MiB  3.70 MiB/s 01:50 [######################] 100%
 linux-5.17.3.arc...   159.1 MiB  4.10 MiB/s 00:39 [######################] 100%
 linux-firmware-2...   143.3 MiB  4.38 MiB/s 00:33 [######################] 100%
 libreoffice-fres...   138.2 MiB  4.02 MiB/s 00:34 [######################] 100%
 signal-desktop-5...   108.7 MiB  4.55 MiB/s 00:24 [######################] 100%
 go-2:1.18.1-1-x86_64  104.1 MiB  3.63 MiB/s 00:29 [######################] 100%
 chromium-100.0.4...    82.4 MiB  5.00 MiB/s 00:16 [######################] 100%
 firefox-99.0.1-1...    62.7 MiB  3.59 MiB/s 00:17 [######################] 100%
 r-4.1.3-2-x86_64       56.9 MiB  4.03 MiB/s 00:14 [######################] 100%
 scribus-1.5.8-4-...    50.3 MiB  4.12 MiB/s 00:12 [######################] 100%
 thunderbird-91.8...    49.2 MiB  3.76 MiB/s 00:13 [######################] 100%
 qt5-webengine-5....    48.6 MiB  4.31 MiB/s 00:11 [######################] 100%
 calibre-5.40.0-2...    28.4 MiB  3.64 MiB/s 00:08 [######################] 100%
 webkit2gtk-2.36....    21.4 MiB  4.17 MiB/s 00:05 [######################] 100%
 postgresql-13.6-...    17.3 MiB  3.23 MiB/s 00:05 [######################] 100%
 texlive-bin-2021...    14.1 MiB  2.33 MiB/s 00:06 [######################] 100%
 boost-1.78.0-2-x...    13.5 MiB  2.73 MiB/s 00:05 [######################] 100%
 qt5-base-5.15.3+...    12.9 MiB  3.68 MiB/s 00:04 [######################] 100%
 qt5-webkit-5.212...    12.3 MiB  3.88 MiB/s 00:03 [######################] 100%
 icu-71.1-1-x86_64      10.8 MiB  3.00 MiB/s 00:04 [######################] 100%
 lib32-icu-71.1-1...    10.1 MiB  2.77 MiB/s 00:04 [######################] 100%
 cmake-3.23.1-1-x...    10.1 MiB  3.28 MiB/s 00:03 [######################] 100%
 nodejs-17.9.0-2-...     9.4 MiB  3.35 MiB/s 00:03 [######################] 100%
 pandoc-2.17.1.1-...     9.0 MiB  3.49 MiB/s 00:03 [######################] 100%
 kio-5.93.0-1-x86_64     7.7 MiB  2.64 MiB/s 00:03 [######################] 100%
 smbclient-4.16.0...     6.7 MiB  2.35 MiB/s 00:03 [######################] 100%
 breeze-icons-5.9...     6.7 MiB  3.26 MiB/s 00:02 [######################] 100%
 github-cli-2.8.0...     6.4 MiB  2.97 MiB/s 00:02 [######################] 100%
 binutils-2.38-4-...     6.1 MiB  1739 KiB/s 00:04 [######################] 100%
 git-2.35.3-1-x86_64     6.0 MiB  3.39 MiB/s 00:02 [######################] 100%
 neovim-0.7.0-1-x...     5.7 MiB  3.05 MiB/s 00:02 [######################] 100%
 kwidgetsaddons-5...     4.7 MiB  1643 KiB/s 00:03 [######################] 100%
 adwaita-icon-the...     4.4 MiB  2.63 MiB/s 00:02 [######################] 100%
 plasma-framework...     4.0 MiB  2.50 MiB/s 00:02 [######################] 100%
 kitty-0.25.0-1-x...     3.9 MiB  1826 KiB/s 00:02 [######################] 100%
 jupyterlab-3.3.4...     3.7 MiB  2.49 MiB/s 00:02 [######################] 100%
 ktexteditor-5.93...     3.5 MiB  1929 KiB/s 00:02 [######################] 100%
 ruby-3.0.4-1-x86_64     3.2 MiB  3.15 MiB/s 00:01 [######################] 100%
 kwayland-5.93.0-...     3.0 MiB  1989 KiB/s 00:02 [######################] 100%
 imagemagick-7.1....     2.8 MiB  2.28 MiB/s 00:01 [######################] 100%
 libqalculate-4.1...     2.4 MiB  2.20 MiB/s 00:01 [######################] 100%
 lapack-3.10.1-1-...     2.4 MiB  1789 KiB/s 00:01 [######################] 100%
 appstream-0.15.3...     2.2 MiB  2.42 MiB/s 00:01 [######################] 100%
 boost-libs-1.78....     2.1 MiB  2.43 MiB/s 00:01 [######################] 100%
 ki18n-5.93.0-1-x...  1970.4 KiB  1813 KiB/s 00:01 [######################] 100%
 knewstuff-5.93.0...  1938.8 KiB  2.57 MiB/s 00:01 [######################] 100%
 evince-42.2-1-x86_64 1739.3 KiB  2.42 MiB/s 00:01 [######################] 100%
 kxmlgui-5.93.0-1...  1718.8 KiB  1581 KiB/s 00:01 [######################] 100%
 pipewire-1:0.3.5...  1636.4 KiB  2.50 MiB/s 00:01 [######################] 100%
 frameworkintegra...  1587.9 KiB  2.20 MiB/s 00:01 [######################] 100%
 syntax-highlight...  1396.9 KiB  2.23 MiB/s 00:01 [######################] 100%
 postgresql-libs-...  1391.4 KiB  1424 KiB/s 00:01 [######################] 100%
 postfix-3.7.0-3-...  1375.2 KiB  2.34 MiB/s 00:01 [######################] 100%
 meson-0.62.0-2-any   1374.3 KiB  2.07 MiB/s 00:01 [######################] 100%
 libxml2-2.9.13-2...  1362.0 KiB  2.33 MiB/s 00:01 [######################] 100%
 kcoreaddons-5.93...  1353.7 KiB  1354 KiB/s 00:01 [######################] 100%
 kconfig-5.93.0-1...  1180.6 KiB  2.10 MiB/s 00:01 [######################] 100%
 openexr-3.1.5-1-...  1171.8 KiB  2.37 MiB/s 00:00 [######################] 100%
 kconfigwidgets-5...  1154.0 KiB  2.36 MiB/s 00:00 [######################] 100%
 openssh-9.0p1-1-...  1117.3 KiB  1531 KiB/s 00:01 [######################] 100%
 qt5-wayland-5.15...  1109.4 KiB  2.36 MiB/s 00:00 [######################] 100%
 haskell-citeproc...  1105.5 KiB  2.06 MiB/s 00:01 [######################] 100%
 suitesparse-5.12...  1099.1 KiB  2.35 MiB/s 00:00 [######################] 100%
 iproute2-5.17.0-...  1071.6 KiB  1599 KiB/s 00:01 [######################] 100%
 kparts-5.93.0-1-...  1022.7 KiB  2.25 MiB/s 00:00 [######################] 100%
 syndication-5.93...  1021.5 KiB  2.17 MiB/s 00:00 [######################] 100%
 gvfs-1.50.0+r5+g...  1013.7 KiB  1964 KiB/s 00:01 [######################] 100%
 xfsprogs-5.15.0-...  1009.7 KiB  2.26 MiB/s 00:00 [######################] 100%
 harfbuzz-4.2.0-3...   974.0 KiB  2.21 MiB/s 00:00 [######################] 100%
 libcdr-0.1.7-4-x...   958.3 KiB  2.08 MiB/s 00:00 [######################] 100%
 ktextwidgets-5.9...   859.4 KiB  1546 KiB/s 00:01 [######################] 100%
 cups-filters-1.2...   846.4 KiB  2001 KiB/s 00:00 [######################] 100%
 solid-5.93.0-1-x...   825.8 KiB  1938 KiB/s 00:00 [######################] 100%
 haskell-text-icu...   787.6 KiB  1862 KiB/s 00:00 [######################] 100%
 kwindowsystem-5....   783.1 KiB  2023 KiB/s 00:00 [######################] 100%
 tracker3-3.3.0-2...   733.7 KiB  1772 KiB/s 00:00 [######################] 100%
 kservice-5.93.0-...   719.0 KiB  1922 KiB/s 00:00 [######################] 100%
 libe-book-0.1.3-...   701.6 KiB  1493 KiB/s 00:00 [######################] 100%
 kcmutils-5.93.0-...   693.9 KiB  1640 KiB/s 00:00 [######################] 100%
 lib32-harfbuzz-4...   663.7 KiB  1689 KiB/s 00:00 [######################] 100%
 sonnet-5.93.0-1-...   657.9 KiB  1807 KiB/s 00:00 [######################] 100%
 libgit2-1:1.4.3-...   641.6 KiB  1553 KiB/s 00:00 [######################] 100%
 lib32-libxml2-2....   637.2 KiB  1448 KiB/s 00:00 [######################] 100%
 kitemmodels-5.93...   635.8 KiB  1700 KiB/s 00:00 [######################] 100%
 libvisio-0.1.7-7...   633.4 KiB  1583 KiB/s 00:00 [######################] 100%
 kcompletion-5.93...   622.1 KiB  1229 KiB/s 00:01 [######################] 100%
 libical-3.0.14-3...   618.3 KiB  1472 KiB/s 00:00 [######################] 100%
 kirigami2-5.93.0...   593.8 KiB  1534 KiB/s 00:00 [######################] 100%
 kbookmarks-5.93....   587.4 KiB  1712 KiB/s 00:00 [######################] 100%
 python-setuptool...   562.5 KiB  1278 KiB/s 00:00 [######################] 100%
 attica-5.93.0-1-...   545.5 KiB  1503 KiB/s 00:00 [######################] 100%
 kdeclarative-5.9...   513.9 KiB  1468 KiB/s 00:00 [######################] 100%
 kiconthemes-5.93...   513.7 KiB  1576 KiB/s 00:00 [######################] 100%
 jupyter-nbconver...   512.1 KiB  1493 KiB/s 00:00 [######################] 100%
 kitemviews-5.93....   510.7 KiB  1296 KiB/s 00:00 [######################] 100%
 kwallet-5.93.0-1...   496.4 KiB  1331 KiB/s 00:00 [######################] 100%
 knotifications-5...   480.0 KiB  1263 KiB/s 00:00 [######################] 100%
 jack2-1.9.21-1-x...   473.3 KiB  1192 KiB/s 00:00 [######################] 100%
 libmspub-0.1.4-1...   462.5 KiB  1432 KiB/s 00:00 [######################] 100%
 threadweaver-5.9...   458.7 KiB  1119 KiB/s 00:00 [######################] 100%
 raptor-2.0.15-19...   454.6 KiB  1408 KiB/s 00:00 [######################] 100%
 vmaf-2.3.1-1-x86_64   410.5 KiB  1355 KiB/s 00:00 [######################] 100%
 pango-1:1.50.7-1...   398.4 KiB  1030 KiB/s 00:00 [######################] 100%
 kholidays-1:5.93...   397.1 KiB  1189 KiB/s 00:00 [######################] 100%
 kpeople-5.93.0-1...   396.9 KiB  1167 KiB/s 00:00 [######################] 100%
 iana-etc-2022032...   392.8 KiB  1255 KiB/s 00:00 [######################] 100%
 krunner-5.93.0-1...   390.7 KiB  1094 KiB/s 00:00 [######################] 100%
 karchive-5.93.0-...   380.4 KiB  1012 KiB/s 00:00 [######################] 100%
 ghex-42.1-1-x86_64    373.3 KiB  1204 KiB/s 00:00 [######################] 100%
 vte3-0.68.0-2-x86_64  358.8 KiB  1111 KiB/s 00:00 [######################] 100%
 kcodecs-5.93.0-1...   355.0 KiB  1172 KiB/s 00:00 [######################] 100%
 kpackage-5.93.0-...   338.0 KiB   735 KiB/s 00:00 [######################] 100%
 kguiaddons-5.93....   325.9 KiB   987 KiB/s 00:00 [######################] 100%
 kactivities-5.93...   324.3 KiB  1118 KiB/s 00:00 [######################] 100%
 kjobwidgets-5.93...   321.4 KiB  1124 KiB/s 00:00 [######################] 100%
 kauth-5.93.0-1-x...   317.8 KiB  1096 KiB/s 00:00 [######################] 100%
 kdnssd-5.93.0-1-...   313.0 KiB  1010 KiB/s 00:00 [######################] 100%
 libqxp-0.0.2-8-x...   288.4 KiB   660 KiB/s 00:00 [######################] 100%
 kactivities-stat...   285.6 KiB   943 KiB/s 00:00 [######################] 100%
 kglobalaccel-5.9...   256.8 KiB   755 KiB/s 00:00 [######################] 100%
 python-gobject-3...   253.7 KiB   926 KiB/s 00:00 [######################] 100%
 kdesu-5.93.0-1-x...   241.5 KiB   862 KiB/s 00:00 [######################] 100%
 kdbusaddons-5.93...   236.3 KiB   899 KiB/s 00:00 [######################] 100%
 libbpf-0.7.0-1-x...   221.3 KiB   841 KiB/s 00:00 [######################] 100%
 gptfdisk-1.0.9-1...   212.4 KiB   769 KiB/s 00:00 [######################] 100%
 kpty-5.93.0-1-x86_64  206.2 KiB   764 KiB/s 00:00 [######################] 100%
 python-ipykernel...   205.8 KiB   801 KiB/s 00:00 [######################] 100%
 knotifyconfig-5....   204.7 KiB   660 KiB/s 00:00 [######################] 100%
 pavucontrol-1:5....   183.5 KiB   579 KiB/s 00:00 [######################] 100%
 prison-5.93.0-1-...   171.4 KiB   685 KiB/s 00:00 [######################] 100%
 libzmf-0.0.2-12-...   171.0 KiB   650 KiB/s 00:00 [######################] 100%
 libbsd-0.11.6-1-...   166.3 KiB   531 KiB/s 00:00 [######################] 100%
 kidletime-5.93.0...   141.6 KiB   566 KiB/s 00:00 [######################] 100%
 kcrash-5.93.0-1-...   132.5 KiB   491 KiB/s 00:00 [######################] 100%
 blas-3.10.1-1-x86_64  125.8 KiB   509 KiB/s 00:00 [######################] 100%
 kquickcharts-5.9...   117.7 KiB   410 KiB/s 00:00 [######################] 100%
 ruby-public_suff...   117.6 KiB   482 KiB/s 00:00 [######################] 100%
 jupyter-nbclient...    93.0 KiB   392 KiB/s 00:00 [######################] 100%
 python-jupyter_c...    82.6 KiB   353 KiB/s 00:00 [######################] 100%
 qqc2-desktop-sty...    76.7 KiB   256 KiB/s 00:00 [######################] 100%
 appstream-qt-0.1...    74.5 KiB   282 KiB/s 00:00 [######################] 100%
 libusb-1.0.26-1-...    70.9 KiB   247 KiB/s 00:00 [######################] 100%
 python-pyqt5-sip...    57.4 KiB   233 KiB/s 00:00 [######################] 100%
 kded-5.93.0-1-x86_64   55.0 KiB   226 KiB/s 00:00 [######################] 100%
 enchant-2.3.2-2-...    53.3 KiB   232 KiB/s 00:00 [######################] 100%
 libsynctex-2021....    51.8 KiB   229 KiB/s 00:00 [######################] 100%
 libvterm01-0.1.4...    43.6 KiB   153 KiB/s 00:00 [######################] 100%
 cblas-3.10.1-1-x...    35.9 KiB   158 KiB/s 00:00 [######################] 100%
 semver-7.3.7-1-any     35.9 KiB   125 KiB/s 00:00 [######################] 100%
 linux-firmware-w...    29.3 KiB   133 KiB/s 00:00 [######################] 100%
 alsa-card-profil...    27.0 KiB   124 KiB/s 00:00 [######################] 100%
 kitty-shell-inte...    21.9 KiB  99.6 KiB/s 00:00 [######################] 100%
 libnfnetlink-1.0...    17.1 KiB  77.9 KiB/s 00:00 [######################] 100%
 python-setprocti...    12.5 KiB  58.5 KiB/s 00:00 [######################] 100%
 libmnl-1.0.5-1-x...    11.2 KiB  47.3 KiB/s 00:00 [######################] 100%
 python-entrypoin...    10.2 KiB  47.9 KiB/s 00:00 [######################] 100%
 harfbuzz-icu-4.2...     7.6 KiB  35.2 KiB/s 00:00 [######################] 100%
 vte-common-0.68....     7.0 KiB  19.5 KiB/s 00:00 [######################] 100%
 kitty-terminfo-0...     4.2 KiB  19.6 KiB/s 00:00 [######################] 100%
 Total (159/159)      1730.6 MiB  3.30 MiB/s 08:45 [######################] 100%
(159/159) checking keys in keyring                 [######################] 100%
(159/159) checking package integrity               [######################] 100%
(159/159) loading package files                    [######################] 100%
(159/159) checking for file conflicts              [######################] 100%
error: failed to commit transaction (conflicting files)
python-entrypoints: /usr/lib/python3.10/site-packages/__pycache__/entrypoints.cpython-310.pyc exists in filesystem
Errors occurred, no packages were upgraded.

I included all the output for completeness, but the relevant part (at the very end) is:

error: failed to commit transaction (conflicting files)
python-entrypoints: /usr/lib/python3.10/site-packages/__pycache__/entrypoints.cpython-310.pyc exists in filesystem
Errors occurred, no packages were upgraded.

I'm pretty sure that I didn't accidentally install this file myself, because I've never run "pip" as root.  I know that I could probably get the update to work by doing "pacman -Syyu --overwrite", but that seems like a bad idea given that I don't know what the underlying problem is.  Does anybody have any ideas about what went wrong and what should be done to fix it?

Last edited by kalekundert (2022-04-19 01:04:41)

Offline

#2 2022-04-18 23:50:04

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,463

Re: [solved] python-entrypoints: entrypoints.cpython-310.pyc exists...

You've previously loaded it as root, so the byte compiled file was created and cached. It's now part of the package, though, so you'll have to overwrite the old, untracked file. See the pacman wiki page.

Offline

#3 2022-04-19 01:03:23

kalekundert
Member
Registered: 2022-04-18
Posts: 4

Re: [solved] python-entrypoints: entrypoints.cpython-310.pyc exists...

That makes sense, thanks!

Offline

#4 2022-12-04 05:18:28

AmithKumar
Member
Registered: 2022-12-03
Posts: 11

Re: [solved] python-entrypoints: entrypoints.cpython-310.pyc exists...

kalekundert wrote:

That makes sense, thanks!


How did you do?
What command did you use?

Offline

#5 2022-12-04 15:39:15

hakova
Member
Registered: 2009-11-11
Posts: 9

Re: [solved] python-entrypoints: entrypoints.cpython-310.pyc exists...

AmithKumar wrote:

How did you do?
...

I solved this by renaming the offending/existing file with a .org extension and repeating the update.
Hope it helps.

Thanks!

Offline

#6 2022-12-04 15:43:45

kalekundert
Member
Registered: 2022-04-18
Posts: 4

Re: [solved] python-entrypoints: entrypoints.cpython-310.pyc exists...

I don't remember, probably "pacman -Syyu --overwrite".

IIRC, my concern was that I didn't want to overwrite any files in /usr without understanding why there was a conflict in the first place.  Scimmia explained that the conflict (probably) arose because the file in question was recently added to "python-entrypoints", but already existed on my machine due to having been generated and cached by python after I ran some code (as root) that imported the entrypoints module.  Knowing that, and knowing that *.pyc files can be regenerated from the corresponding *.py files anyways, I felt safe overwriting it.

On this topic, I don't really understand why python packages in the repositories contain *.pyc files at all.  But I checked a handful of packages and they all included *.pyc files, so there must be a reason.

Offline

#7 2022-12-04 16:04:14

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,463

Re: [solved] python-entrypoints: entrypoints.cpython-310.pyc exists...

kalekundert wrote:

On this topic, I don't really understand why python packages in the repositories contain *.pyc files at all.  But I checked a handful of packages and they all included *.pyc files, so there must be a reason.

Speed. If they aren't there, they have to be byte-compiled at runtime. If it's not run with root privileges, it then can't save the file, so it happens every time you start it.

Offline

#8 2022-12-04 16:56:54

kalekundert
Member
Registered: 2022-04-18
Posts: 4

Re: [solved] python-entrypoints: entrypoints.cpython-310.pyc exists...

Thanks again for the good explanation!

Offline

Board footer

Powered by FluxBB