-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hello there!
I noticed an issue with obs-to-maven when it comes to run it. Probably this is not an issue with the code itself but how the package is deployed in obs itself.
First off, my environment is the following:
OS: OpenSUSE Tumbleweed (snapshot: 20230412)
Let me place here the steps to reproduce it:
zypper ar https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Utils/openSUSE_Tumbleweed/
zypper ref
zypper in obs-to-maven
I'm using ant to compile dependencies for the Uyuni project:
ant -f manager-build.xml ivy
And this is the error that I get:
❯ ant -f manager-build.xml ivy
Buildfile: /home/mikeletux/Development/spacewalk/java/manager-build.xml
obs-to-maven:
[exec] Traceback (most recent call last):
[exec] File "/usr/bin/obs-to-maven", line 33, in <module>
[exec] sys.exit(load_entry_point('obs-to-maven==1.1.7', 'console_scripts', 'obs-to-maven')())
[exec] File "/usr/bin/obs-to-maven", line 25, in importlib_load_entry_point
[exec] return next(matches).load()
[exec] File "/usr/lib64/python3.10/importlib/metadata/__init__.py", line 171, in load
[exec] module = import_module(match.group('module'))
[exec] File "/usr/lib64/python3.10/importlib/__init__.py", line 126, in import_module
[exec] return _bootstrap._gcd_import(name[level:], package, level)
[exec] File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
[exec] File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
[exec] File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
[exec] File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
[exec] File "<frozen importlib._bootstrap_external>", line 883, in exec_module
[exec] File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
[exec] File "/usr/lib/python3.10/site-packages/obs_maven/core.py", line 25, in <module>
[exec] import yaml
[exec] ModuleNotFoundError: No module named 'yaml'
BUILD FAILED
/home/mikeletux/Development/spacewalk/java/manager-build.xml:62: exec returned: 1
Total time: 0 seconds
The python3-PyYAML dependency is needed at runtime. I'd say that dependency should be installed when installing obs-to-maven through zypper (or any other package manager).
Thanks!
HoussemNasri
Metadata
Metadata
Assignees
Labels
No labels