Bug 1222614 - osc-plugin-staging No module named 'osc.connection'
Summary: osc-plugin-staging No module named 'osc.connection'
Status: NEW
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Other (show other bugs)
Version: Leap 15.6
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Marco Strigl
QA Contact: E-mail List
URL:
Whiteboard: not:osc
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-10 11:01 UTC by Lubos Kocman
Modified: 2024-06-10 06:36 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 Lubos Kocman 2024-04-10 11:01:41 UTC
lkocman@localhost:~/Workspace/obs/home:lkocman:branches:openSUSE:Leap:15.6/branding-openSUSE> sudo zypper in osc-plugin-staging
Refreshing service 'NVIDIA'.
Refreshing service 'openSUSE'.
Loading repository data...
Warning: Repository 'update-non-oss (15.6)' metadata expired since 2023-09-21 14:47:58 CEST.

    Warning: Repository metadata expired: Check if 'autorefresh' is turned on (zypper lr), otherwise
    manually refresh the repository (zypper ref). If this does not solve the issue, it could be that
    you are using a broken mirror or the server has actually discontinued to support the repository.

Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
  osc-plugin-staging

1 new package to install.
Overall download size: 268.6 KiB. Already cached: 0 B. After the operation, additional 25.3 KiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving: osc-plugin-staging-20230928.864b176-bp156.1.1.noarch (repo-oss (15.6))                                                                                                                       (1/1), 268.6 KiB    
Retrieving: osc-plugin-staging-20230928.864b176-bp156.1.1.noarch.rpm ......................................................................................................................................[done (1.3 MiB/s)]

Checking for file conflicts: ..........................................................................................................................................................................................[done]
(1/1) Installing: osc-plugin-staging-20230928.864b176-bp156.1.1.noarch ................................................................................................................................................[done]
lkocman@localhost:~/Workspace/obs/home:lkocman:branches:openSUSE:Leap:15.6/branding-openSUSE> ls
branding-leap-15.6.zip  branding-openSUSE.changes  branding-openSUSE.spec
lkocman@localhost:~/Workspace/obs/home:lkocman:branches:openSUSE:Leap:15.6/branding-openSUSE> sudo su - lkocman-factory
lkocman-factory@localhost:~> osc staging -p openSUSE:Leap:15.6 adi
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/osc/commandline.py", line 9583, in _load_plugins
    mod = imp.load_source(modname, os.path.join(plugin_dir, extfile))
  File "/usr/lib64/python3.6/imp.py", line 172, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 684, in _load
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/osc-plugins/osc-staging.py", line 17, in <module>
    from osclib.accept_command import AcceptCommand
  File "/usr/lib/osc-plugins/osclib/accept_command.py", line 11, in <module>
    from osclib.core import attribute_value_save, attribute_value_load
  File "/usr/lib/osc-plugins/osclib/core.py", line 20, in <module>
    from osc.connection import http_DELETE
ModuleNotFoundError: No module named 'osc.connection'

/usr/lib/osc-plugins/osc-staging.py: No module named 'osc.connection'

 Try 'env OSC_PLUGIN_FAIL_IGNORE=1 osc ...'
Comment 1 Daniel Mach 2024-06-10 06:36:35 UTC
It looks like the problem is in the osc-plugin-staging.
I suppose it was ported to the latest osc that is in Factory, but they did not test it with osc in SLE/Leap.
Any idea where to reassign this bug?