Bug 1213929

Summary: zypper-changelog-plugin lacks dependencies (No module named 'rpm')
Product: [openSUSE] openSUSE Tumbleweed Reporter: Michael Andres <ma>
Component: libzyppAssignee: Zoltan Balogh <zbalogh>
Status: IN_PROGRESS --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: microfocus
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

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