You are not logged in.
Hi! I do this:
❯ uname -a
Linux ARCHPC 6.9.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 28 Jun 2024 04:32:50 +0000 x86_64 GNU/Linux
❯ yay -Syu
...
# It updated all the system
....
❯ LANG=en yay -S python-plotly
Sync Explicit (1): python-plotly-5.20.0-1
warning: python-plotly-5.20.0-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) python-plotly-5.20.0-1
Total Installed Size: 110.83 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
python-plotly-5.20.0-1-x86_64 is up to date
(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%
(1/1) checking available disk space [#######################################################################################] 100%
:: Processing package changes...
(1/1) reinstalling python-plotly [#######################################################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
~
❯ python -m plotly
/usr/bin/python: No module named plotly
❯ which python
/usr/bin/python
~
❯ which pip
/usr/bin/pip
~
❯ pip list | grep plotly
# NOTHINGHow to install? Or how to reinstall all python packages as it might be the case that I used `pip install ...` directly once in the past. I found this, https://unix.stackexchange.com/question … arch-linux, Should I do pacman -Rns python python2 under clean TTY? Thanks!
Last edited by art (2024-07-09 08:10:51)
Offline
It's already installed. See pacman -Ql python-plotly, that should tell you what the module name is. If it's built for an older version of python or something, you need to rebuild it, not just reinstall the same package.
Online
It's already installed. See pacman -Ql python-plotly, that should tell you what the module name is. If it's built for an older version of python or something, you need to rebuild it, not just reinstall the same package.
Thanks! I see that it is
❯ pa -Ql python-plotly | less
...
python-plotly /usr/lib/python3.11/site-packages/plotly/
...
❯ python --version
Python 3.12.4And I have python 3.12.4. How do I rebuild it? I've tried the following. Will try later again
❯ yay -Sc
Оставить пакеты:
Все пакеты из базы данных
Каталог для кэша: /var/cache/pacman/pkg/
:: Удалить все остальные пакеты из кэша? [Y/n]
удаление старых пакетов из кэша...
ошибка: не удалось открыть файл /var/cache/pacman/pkg/chrono-date-3.0.1-2-x86_64.pkg.tar.zst: Unrecognized archive format
Каталог для кэша: /home/aur_custom_pkgs/
:: Удалить все остальные пакеты из кэша? [Y/n]
удаление старых пакетов из кэша...
Каталог базы данных: /var/lib/pacman/
:: Удалить неиспользуемые репозитории? [Y/n]
удаление неиспользуемых репозиториев...
Каталог сборки: /home/art/.cache/yay
:: Вы хотите удалить все остальные пакеты AUR из кэша? [Y/n]
удаление пакетов AUR из кэша...
:: Вы хотите удалить все неотслеживаемые файлы AUR? [Y/n]
удаление неотслеживаемых файлов AUR из кэша...
~ 7s
❯ LANG=en yay -R python-plotly
checking dependencies...
:: python-openai optionally requires python-plotly: embeddings
Packages (1) python-plotly-5.20.0-1
Total Removed Size: 110.83 MiB
:: Do you want to remove these packages? [Y/n] Y
:: Processing package changes...
(1/1) removing python-plotly [#######################################################################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) pkglist.hook
~
❯ LANG=en yay -S python-plotly --rebuildall
Sync Explicit (1): python-plotly-5.20.0-1
resolving dependencies...
looking for conflicting packages...
Packages (1) python-plotly-5.20.0-1
Total Installed Size: 110.83 MiB
:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
python-plotly-5.20.0-1-x86_64 is up to date
(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%
(1/1) checking available disk space [#######################################################################################] 100%
:: Processing package changes...
(1/1) installing python-plotly [#######################################################################################] 100%
Optional dependencies for python-plotly
ipython [installed]
jupyterlab [installed]
python-ipywidgets [installed]
python-numpy [installed]
python-matplotlib [installed]
python-pillow [installed]
python-scipy [installed]
python-ipykernel [installed]
python-pandas [installed]
python-colorcet
python-inflect [installed]
python-psutil [installed]
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) pkglist.hook
~
❯ python -m plotly
/usr/bin/python: No module named plotlyOffline
yay has a '--rebuild' option you can pass to the invocation, but maybe familiarize yourself a bit more with the AUR and how to build the packages hosted there a bit more: https://wiki.archlinux.org/title/Arch_U … g_packages
Offline
Mod note: moving to AUR Issues.
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.
Offline
Thank you for your comments. Strange, my python 12 version is not installed explicitly:
❯ pa -Qe | grep '^python[^-]'
python310 3.10.13-2
~
❯ pa -Q | grep '^python[^-]'
python 3.12.4-1
python310 3.10.13-2And when I try to uninstall python310 it says that my other packages depend on it. But how to make them depended on the latter 12 version?
❯ LANG=en _ pa -R python310
checking dependencies...
:: android-tools optionally requires python: {mk,unpack_,repack_}bootimg and mkdtboimg support
:: boost optionally requires python: for python bindings
...
:: git optionally requires python: git svn & git p4
...
:: xfsprogs optionally requires python: for xfs_scrub_all script
:: zbar optionally requires python: for zbar python bindings
Packages (1) python310-3.10.13-2
Total Removed Size: 54.17 MiBSame list of dependencies when I do `pacman -R python`
Last edited by art (2024-07-05 07:51:53)
Offline
The keywords here are optionally requires .
run pacman -Qi python310 and look at the "required by" line .
If it's empty nothing on your system needs python 3.10 .
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
I think the issue could rather be the "provides python" ..
You could try to just install it with pacman -S python, this should remove the 3.10 installation and install python
Offline
The keywords here are optionally requires .
run pacman -Qi python310 and look at the "required by" line .
If it's empty nothing on your system needs python 3.10 .
They, python310 and python, have identical list of 'Required By' as per `pacman -Qi`:
❯ LANG=en pacman -Qi python | grep '^Required By\|^Name'
Name : python
Required By : asoundconf autopep8 autorandr chatblade csvkit cython fio fwupd gdb gdb-common git-filter-repo glances glusterfs gufw ibus jupyter-nbclient jupyter-nbconvert jupyter-nbformat jupyter-notebook-shim jupyter-server jupyter-.......
❯ diff <(LANG=en pacman -Qi python | grep '^Required By\|^Name' ) <(LANG=en pacman -Qi python310 | grep '^Required By\|^Name' )
1c1
< Name : python
---
> Name : python310Last edited by art (2024-07-05 10:34:21)
Offline
I expect the required by lines are different, please post the full output without grepping of
$ pacman -Qi python310
$ pacman -Qi pythonDisliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
I expect the required by lines are different, please post the full output without grepping of
$ pacman -Qi python310 $ pacman -Qi python
It is the same:
❯ LANG=en pacman -Qi python
Name : python
Version : 3.12.4-1
Description : The Python programming language
Architecture : x86_64
URL : https://www.python.org/
Licenses : PSF-2.0
Groups : None
Provides : python3 python-externally-managed
Depends On : bzip2 expat gdbm libffi libnsl libxcrypt openssl zlib tzdata mpdecimal
Optional Deps : python-setuptools: for building Python packages using tooling that is usually bundled with Python [installed]
python-pip: for installing Python packages using tooling that is usually bundled with Python [installed]
python-pipx: for installing Python software not packaged on Arch Linux [installed]
sqlite: for a default database integration [installed]
xz: for lzma [installed]
tk: for tkinter [installed]
Required By : asoundconf autopep8 autorandr chatblade csvkit cython fio fwupd gdb gdb-common git-filter-repo glances glusterfs gufw ibus jupyter-nbclient jupyter-nbconvert jupyter-nbformat jupyter-notebook-shim
jupyter-server jupyter-server-fileid jupyterlab libixion libopenshot liborcus libreoffice-fresh libsixel lttng-ust mercurial mono nyx patool python-agate python-agate-dbf python-agate-excel
python-agate-sql python-aiohttp python-aiosignal python-aiosqlite python-annexremote python-annotated-types python-anyio python-apipkg python-appdirs python-argcomplete python-arrow python-asgiref
python-asn1crypto python-async-lru python-async-timeout python-atomicwrites python-attrs python-autocommand python-babel python-backcall python-bcrypt python-beautifulsoup4 python-black python-blinker
python-boto python-build python-cachecontrol python-cached-property python-cachetools python-cairo python-certifi python-chardet python-charset-normalizer python-click python-colorama python-comm
python-contextlib2 python-contourpy python-coverage python-cssselect2 python-cycler python-dbfread python-dbus python-debugpy python-decorator python-defusedxml python-deprecation python-dirty-equals
python-distlib python-distro python-dnspython python-docopt python-docstring-to-markdown python-docutils python-einops python-entrypoints python-et-xmlfile python-exceptiongroup python-executing
python-fastapi python-fastbencode python-fasteners python-fastjsonschema python-fido2 python-filelock python-fire python-flask-cors python-flatbuffers python-flit python-flit-core python-fonttools
python-fqdn python-frozendict python-frozenlist python-fsspec python-future python-gitlab python-gmpy2 python-gnupg python-gobject python-google-auth python-google-auth-oauthlib python-greenlet
python-grpcio python-h11 python-hpack python-httpcore python-httplib2 python-httptools python-httpx python-humanize python-hyperframe python-idna python-imagesize python-inflect python-iniconfig
python-installer python-intelhex python-ipykernel python-ipython-genutils python-ipywidgets python-iso8601 python-isoduration python-isort python-itsdangerous python-jaraco.classes python-jaraco.context
python-jaraco.functools python-jaraco.text python-jedi python-jeepney python-jinja python-joblib python-json-logger python-json5 python-jsonpointer python-jsonschema python-jsonschema-specifications
python-jupyter-client python-jupyter-core python-jupyter-events python-jupyter-ydoc python-jupyterlab-server python-keyutils python-kiwisolver python-leather python-looseversion python-lxml python-markdown
python-markupsafe python-mccabe python-merge3 python-mistune python-more-itertools python-msgpack python-multidict python-multitasking python-mupdf python-mypy_extensions python-nest-asyncio python-nh3
python-numpy python-olefile python-onnx python-openpyxl python-ordered-set python-orjson python-overrides python-packaging python-pandocfilters python-parsedatetime python-parso python-pathspec
python-patiencediff python-peewee python-pep517 python-pickleshare python-pillow python-pip python-pipenv python-pipx python-pkginfo python-platformdirs python-plotly python-pluggy python-ply python-pooch
python-progress python-prometheus_client python-prompt_toolkit python-protobuf python-psutil python-ptyprocess python-pure-eval python-py python-pyasn1 python-pyaudio python-pycodestyle python-pycparser
python-pycrdt python-pycryptodomex python-pydantic python-pydantic-core python-pydantic-extra-types python-pydantic-settings python-pydeprecate python-pyflakes python-pygments python-pyicu python-pylsp-rope
python-pymupdf python-pynacl python-pynvim python-pyopenssl python-pyparsing python-pyproject-hooks python-pyqt5-sip python-pyqt6-sip python-pyqt6-webengine python-pyrsistent python-pyserial python-pysocks
python-pythondialog python-pytimeparse python-pytoml python-pytoolconfig python-pytorch python-pytz python-pyusb python-pyxdg python-pyzmq python-referencing python-regex python-requests-unixsocket
python-resolvelib python-rfc3986 python-rfc3986-validator python-rfc3987 python-rpds-py python-ruamel.yaml.clib python-ruyaml python-scipy python-send2trash python-six python-sniffio python-snowballstemmer
python-soupsieve python-sphinx-alabaster-theme python-sphinx_rtd_theme python-sphinxcontrib-applehelp python-sphinxcontrib-devhelp python-sphinxcontrib-htmlhelp python-sphinxcontrib-jquery
python-sphinxcontrib-qthelp python-sphinxcontrib-serializinghtml python-sqlalchemy python-starlette python-stem python-systemd python-sysv_ipc python-tenacity python-termcolor python-terminado python-testpath
python-text-unidecode python-threadpoolctl python-tiktoken python-toml python-tomli python-tomli-w python-tomlkit python-tornado python-tqdm python-traitlets python-trove-classifiers python-typed-ast
python-typing_extensions python-tzlocal python-uc-micro-py python-ujson python-uri-template python-uritemplate python-urllib3 python-urwid python-userpath python-uvloop python-virtualenv
python-virtualenv-clone python-wcwidth python-webcolors python-webencodings python-websocket-client python-websockets python-xlrd python-xlsx2csv python-y-py python-yaml python-yarl python-ypy-websocket
python-zipp reflector tracker3 trash-cli udiskie ufw uvicorn vapoursynth virtualbox xfce4-screensaver yt-dlp
Optional For : android-tools boost botan botan2 btrfs-progs clang git gpac graphviz gstreamer gtest gtk2 gupnp gvim imath iproute2 ki18n ki18n5 lensfun libcaca libevent libftdi libieee1284 libimobiledevice
libnewt libplist libpwquality libsmbios libxml2 libxslt mlt mlt6 net-snmp newsboat nftables node-gyp oh-my-zsh-git pcsclite picom rsync subversion tdb usbutils util-linux-libs vim-runtime
xfce4-settings xfsprogs zbar
Conflicts With : None
Replaces : python3 python-externally-managed
Installed Size : 70.24 MiB
Packager : Jelle van der Waa <jelle@archlinux.org>
Build Date : Fri Jun 7 09:33:07 2024
Install Date : Fri Jul 5 10:45:40 2024
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
~
❯ LANG=en pacman -Qi python310
Name : python310
Version : 3.10.13-2
Description : Next generation of the python high-level scripting language, version 3.10
Architecture : x86_64
URL : https://www.python.org/
Licenses : custom
Groups : None
Provides : python=3.10.13
Depends On : bzip2 expat gdbm libffi libnsl libxcrypt openssl zlib
Optional Deps : python-setuptools [installed]
python-pip [installed]
sqlite [installed]
mpdecimal: for decimal [installed]
xz: for lzma [installed]
tk: for tkinter [installed]
Required By : asoundconf autopep8 autorandr chatblade csvkit cython fio fwupd gdb gdb-common git-filter-repo glances glusterfs gufw ibus jupyter-nbclient jupyter-nbconvert jupyter-nbformat jupyter-notebook-shim
jupyter-server jupyter-server-fileid jupyterlab libixion libopenshot liborcus libreoffice-fresh libsixel lttng-ust mercurial mono nyx patool python-agate python-agate-dbf python-agate-excel
python-agate-sql python-aiohttp python-aiosignal python-aiosqlite python-annexremote python-annotated-types python-anyio python-apipkg python-appdirs python-argcomplete python-arrow python-asgiref
python-asn1crypto python-async-lru python-async-timeout python-atomicwrites python-attrs python-autocommand python-babel python-backcall python-bcrypt python-beautifulsoup4 python-black python-blinker
python-boto python-build python-cachecontrol python-cached-property python-cachetools python-cairo python-certifi python-chardet python-charset-normalizer python-click python-colorama python-comm
python-contextlib2 python-contourpy python-coverage python-cssselect2 python-cycler python-dbfread python-dbus python-debugpy python-decorator python-defusedxml python-deprecation python-dirty-equals
python-distlib python-distro python-dnspython python-docopt python-docstring-to-markdown python-docutils python-einops python-entrypoints python-et-xmlfile python-exceptiongroup python-executing
python-fastapi python-fastbencode python-fasteners python-fastjsonschema python-fido2 python-filelock python-fire python-flask-cors python-flatbuffers python-flit python-flit-core python-fonttools
python-fqdn python-frozendict python-frozenlist python-fsspec python-future python-gitlab python-gmpy2 python-gnupg python-gobject python-google-auth python-google-auth-oauthlib python-greenlet
python-grpcio python-h11 python-hpack python-httpcore python-httplib2 python-httptools python-httpx python-humanize python-hyperframe python-idna python-imagesize python-inflect python-iniconfig
python-installer python-intelhex python-ipykernel python-ipython-genutils python-ipywidgets python-iso8601 python-isoduration python-isort python-itsdangerous python-jaraco.classes python-jaraco.context
python-jaraco.functools python-jaraco.text python-jedi python-jeepney python-jinja python-joblib python-json-logger python-json5 python-jsonpointer python-jsonschema python-jsonschema-specifications
python-jupyter-client python-jupyter-core python-jupyter-events python-jupyter-ydoc python-jupyterlab-server python-keyutils python-kiwisolver python-leather python-looseversion python-lxml python-markdown
python-markupsafe python-mccabe python-merge3 python-mistune python-more-itertools python-msgpack python-multidict python-multitasking python-mupdf python-mypy_extensions python-nest-asyncio python-nh3
python-numpy python-olefile python-onnx python-openpyxl python-ordered-set python-orjson python-overrides python-packaging python-pandocfilters python-parsedatetime python-parso python-pathspec
python-patiencediff python-peewee python-pep517 python-pickleshare python-pillow python-pip python-pipenv python-pipx python-pkginfo python-platformdirs python-plotly python-pluggy python-ply python-pooch
python-progress python-prometheus_client python-prompt_toolkit python-protobuf python-psutil python-ptyprocess python-pure-eval python-py python-pyasn1 python-pyaudio python-pycodestyle python-pycparser
python-pycrdt python-pycryptodomex python-pydantic python-pydantic-core python-pydantic-extra-types python-pydantic-settings python-pydeprecate python-pyflakes python-pygments python-pyicu python-pylsp-rope
python-pymupdf python-pynacl python-pynvim python-pyopenssl python-pyparsing python-pyproject-hooks python-pyqt5-sip python-pyqt6-sip python-pyqt6-webengine python-pyrsistent python-pyserial python-pysocks
python-pythondialog python-pytimeparse python-pytoml python-pytoolconfig python-pytorch python-pytz python-pyusb python-pyxdg python-pyzmq python-referencing python-regex python-requests-unixsocket
python-resolvelib python-rfc3986 python-rfc3986-validator python-rfc3987 python-rpds-py python-ruamel.yaml.clib python-ruyaml python-scipy python-send2trash python-six python-sniffio python-snowballstemmer
python-soupsieve python-sphinx-alabaster-theme python-sphinx_rtd_theme python-sphinxcontrib-applehelp python-sphinxcontrib-devhelp python-sphinxcontrib-htmlhelp python-sphinxcontrib-jquery
python-sphinxcontrib-qthelp python-sphinxcontrib-serializinghtml python-sqlalchemy python-starlette python-stem python-systemd python-sysv_ipc python-tenacity python-termcolor python-terminado python-testpath
python-text-unidecode python-threadpoolctl python-tiktoken python-toml python-tomli python-tomli-w python-tomlkit python-tornado python-tqdm python-traitlets python-trove-classifiers python-typed-ast
python-typing_extensions python-tzlocal python-uc-micro-py python-ujson python-uri-template python-uritemplate python-urllib3 python-urwid python-userpath python-uvloop python-virtualenv
python-virtualenv-clone python-wcwidth python-webcolors python-webencodings python-websocket-client python-websockets python-xlrd python-xlsx2csv python-y-py python-yaml python-yarl python-ypy-websocket
python-zipp reflector tracker3 trash-cli udiskie ufw uvicorn vapoursynth virtualbox xfce4-screensaver yt-dlp
Optional For : android-tools boost botan botan2 btrfs-progs clang git gpac graphviz gstreamer gtest gtk2 gupnp gvim imath iproute2 ki18n ki18n5 lensfun libcaca libevent libftdi libieee1284 libimobiledevice
libnewt libplist libpwquality libsmbios libxml2 libxslt mlt mlt6 net-snmp newsboat nftables node-gyp oh-my-zsh-git pcsclite picom rsync subversion tdb usbutils util-linux-libs vim-runtime
xfce4-settings xfsprogs zbar
Conflicts With : None
Replaces : None
Installed Size : 54.17 MiB
Packager : Unknown Packager
Build Date : Sat Mar 16 12:33:35 2024
Install Date : Sat Mar 16 14:18:01 2024
Install Reason : Explicitly installed
Install Script : No
Validated By : SHA-256 SumOffline
So I was wrong and they are exactly the same.
For clarity :
Are there any errors reported by pacman -R python310 or are they just warnings ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Since python310 provides python your can't uninstall it like this, I think it has to be in the same transaction, see https://bbs.archlinux.org/viewtopic.php … 0#p2182020
I'm not sure if that works, but its my best guess ![]()
Offline
So I was wrong and they are exactly the same.
For clarity :
Are there any errors reported by pacman -R python310 or are they just warnings ?
Since python310 provides python your can't uninstall it like this, I think it has to be in the same transaction, see https://bbs.archlinux.org/viewtopic.php … 0#p2182020
I'm not sure if that works, but its my best guess
I've removed python310. Then reinstalled python-plotly. It still links to python 3.11! That is pa -Ql python-plotly shows "/usr/lib/python3.11/site-packages/plotly/". Why? I guess the bug in the PKGBUILD (https://aur.archlinux.org/cgit/aur.git/ … hon-plotly) but that uses just `python`. So the build environment is wrong? Because "python --version" prints "Python 3.12.4". Thank your for your comments
Approximate order of commands I did:
sudo pacman -R python310
# This succeeded. It pointed at the dependencies but I ignored that. Python works OK after that.
❯ which python310
python310 not found
❯ LANG=en yay -S --rebuild python-plotly
Sync Explicit (1): python-plotly-5.20.0-1
[sudo] password for art:
warning: python-plotly-5.20.0-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) python-plotly-5.20.0-1
Total Installed Size: 110.83 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
python-plotly-5.20.0-1-x86_64 is up to date
(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%
(1/1) checking available disk space [#######################################################################################] 100%
:: Processing package changes...
(1/1) reinstalling python-plotly [#######################################################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...Offline
Because you reinstalled it, you didn't rebuild it.
Online
Because you reinstalled it, you didn't rebuild it.
Yeah, that's right, thanks.
I've finally solved that, I did:
1. yay -Scc to remove all cache
2. `yay python-plotly` and chose the one from AUR. It then rebuilt the package and python finds it now: `python -m plotly` works.
Offline