Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

obs-to-maven issue with python-PyYAML dependency #25

Open
mikeletux opened this issue Apr 14, 2023 · 1 comment
Open

obs-to-maven issue with python-PyYAML dependency #25

mikeletux opened this issue Apr 14, 2023 · 1 comment

Comments

@mikeletux
Copy link

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!

@Bhavya031
Copy link

same problem did you find any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants