Bug ID 1200664
Summary python packages which install files into the python versioned path, should also use a versioned shebang line
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Other
Assignee mcepl@suse.com
Reporter mrueckert@suse.com
QA Contact qa-bugs@suse.de
CC matthias.gerstner@suse.com
Found By ---
Blocker ---

borg --version 
Traceback (most recent call last):
  File "/usr/bin/borg", line 33, in <module>
    sys.exit(load_entry_point('borgbackup==1.2.0', 'console_scripts',
'borg')())
  File "/usr/bin/borg", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
  File "/usr/lib64/python3.10/importlib/metadata/__init__.py", line 957, in
distribution
    return Distribution.from_name(distribution_name)
  File "/usr/lib64/python3.10/importlib/metadata/__init__.py", line 548, in
from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for
borgbackup


server:mail/getmail6 had the same problem.

that means we should have a macro like %python_version_shebang which updates
all references from python3 to python3.x.

And we should have a rpmlint check for this.


You are receiving this mail because: