Community Packages

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#73167 - [bpython] I think bpython now depends on python-pyxdg

Attached to Project: Community Packages
Opened by Emanuele Torre (emanuele6) - Monday, 27 December 2021, 08:30 GMT
Last edited by Antonio Rojas (arojas) - Monday, 27 December 2021, 09:52 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Critical
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
bpython won't run without the `extra/python-pyxdg' package
installed.

Reproduction steps:
* on a system that does not have the `bpython' and the
`python-pyxdg' packages installed, install the `bpython' package.
* try to run it the bpython command in a terminal (it will not work)
* now install the `python-pyxdg' package.
* try again to run the bpython command in a terminal (it will work)

Example:

bash-5.1$ sudo pacman -S --noconfirm bpython
resolving dependencies...
looking for conflicting packages...

Package (5) New Version Net Change

community/python-blessings 1.7-9 0.07 MiB
community/python-curtsies 0.3.5-3 0.19 MiB
community/python-cwcwidth 0.1.4-3 0.03 MiB
community/python-greenlet 1.1.2-3 0.39 MiB
community/bpython 0.22.1-2 1.08 MiB

Total Installed Size: 1.77 MiB

:: Proceed with installation? [Y/n]
(5/5) checking keys in keyring [##########################] 100%
(5/5) checking package integrity [##########################] 100%
(5/5) loading package files [##########################] 100%
(5/5) checking for file conflicts [##########################] 100%
(5/5) checking available disk space [##########################] 100%
:: Processing package changes...
(1/5) installing python-blessings [##########################] 100%
(2/5) installing python-cwcwidth [##########################] 100%
(3/5) installing python-curtsies [##########################] 100%
(4/5) installing python-greenlet [##########################] 100%
(5/5) installing bpython [##########################] 100%
Optional dependencies for bpython
python-urwid: for bpython-urwid
python-jedi: multiline completion [installed]
python-watchdog: module reloading
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Updating the desktop file MIME type cache...

bash-5.1$ bpython
Traceback (most recent call last):
File "/usr/bin/bpython", line 33, in <module>
sys.exit(load_entry_point('bpython==0.22.1', 'console_scripts', 'bpython')())
File "/usr/bin/bpython", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 162, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/python3.10/site-packages/bpython/curtsies.py", line 16, in <module>
from . import args as bpargs, translations, inspection
File "/usr/lib/python3.10/site-packages/bpython/args.py", line 47, in <module>
from .config import default_config_path, Config
File "/usr/lib/python3.10/site-packages/bpython/config.py", line 35, in <module>
from xdg import BaseDirectory
ModuleNotFoundError: No module named 'xdg'

bash-5.1$ sudo pacman -S --noconfirm python-pyxdg
resolving dependencies...
looking for conflicting packages...

Package (1) New Version Net Change

extra/python-pyxdg 0.27-4 0.38 MiB

Total Installed Size: 0.38 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%
(1/1) checking available disk space [##########################] 100%
:: Processing package changes...
(1/1) installing python-pyxdg [##########################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

bash-5.1$ bpython
bpython version 0.22.1 on top of Python 3.10.1 /usr/bin/python
>>>

This task depends upon

Closed by  Antonio Rojas (arojas)
Monday, 27 December 2021, 09:52 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#70472 
Comment by Emanuele Torre (emanuele6) - Monday, 27 December 2021, 09:18 GMT
Sorry for marking this as Critical severity, I meant to select High.

Loading...