Bug 1213929 - zypper-changelog-plugin lacks dependencies (No module named 'rpm')
Summary: zypper-changelog-plugin lacks dependencies (No module named 'rpm')
Status: IN_PROGRESS
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: libzypp (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Zoltan Balogh
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-03 09:52 UTC by Michael Andres
Modified: 2024-06-06 02:42 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Andres 2023-08-03 09:52:52 UTC
After installing the zypper-changelog-plugin in a TW container it says:

> 21606fdb0e6d:/ # zypper changelog
> Traceback (most recent call last):
>   File "/usr/bin/zypper-changelog", line 30, in <module>
>     import rpm
> ModuleNotFoundError: No module named 'rpm'

A bunch of dependencies were installed together with the package, but python311-rpm was missing.
Comment 1 Michael Andres 2023-08-03 09:57:58 UTC
> 21606fdb0e6d:/ # zypper changelog -p zypper
> Traceback (most recent call last):
>   File "/usr/bin/zypper-changelog", line 172, in <module>
>     zcat_process = subprocess.Popen(["zcat",
>                    ^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib64/python3.11/subprocess.py", line 1026, in __init__
>     self._execute_child(args, executable, preexec_fn, close_fds,
>   File "/usr/lib64/python3.11/subprocess.py", line 1950, in _execute_child
>     raise child_exception_type(errno_num, err_msg, err_filename)
> FileNotFoundError: [Errno 2] No such file or directory: 'zcat'
> '/usr/bin/zypper-changelog' exited with status 1

Maybe a few more dependencies are missing: zcat
Comment 2 Zoltan Balogh 2024-06-04 04:17:07 UTC
Thank you for reporting the problem. I am on it and I will release a fix in few days.
Comment 3 Zoltan Balogh 2024-06-06 02:42:24 UTC
The https://build.opensuse.org/request/show/1178636 is up