Bug 1373955

Summary: python import yui fail
Product: [Fedora] Fedora Reporter: Philippe Makowski <makowski.fedora>
Component: libyui-bindingsAssignee: Björn 'besser82' Esser <besser82>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: besser82
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libyui-bindings-1.1.1-4.fc24 libyui-bindings-1.1.1-6.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-03 23:54:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
proposed changes none

Description Philippe Makowski 2016-09-07 14:15:23 UTC
Description of problem:
yui module can't be imported in python2 and python3

Version-Release number of selected component (if applicable):
python3-yui-1.1.1-3.fc24.x86_64  
python2-yui-1.1.1-3.fc24.x86_64  

How reproducible:

always

Steps to Reproduce:
$ python -m yui
Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib64/python2.7/site-packages/yui.py", line 5048, in <module>
    class YOptionalWidgetFactory(_object):
  File "/usr/lib64/python2.7/site-packages/yui.py", line 5065, in YOptionalWidgetFactory
    def createWizard(self, parent, backButtonLabel, abortButtonLabel, nextButtonLabel, wizardMode=YWizardMode_Standard):
NameError: name 'YWizardMode_Standard' is not defined

$ python3 -m yui
Traceback (most recent call last):
  File "/usr/lib64/python3.5/runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib64/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib64/python3.5/site-packages/yui.py", line 5048, in <module>
    class YOptionalWidgetFactory(_object):
  File "/usr/lib64/python3.5/site-packages/yui.py", line 5065, in YOptionalWidgetFactory
    def createWizard(self, parent, backButtonLabel, abortButtonLabel, nextButtonLabel, wizardMode=YWizardMode_Standard):
NameError: name 'YWizardMode_Standard' is not defined

Comment 1 Philippe Makowski 2016-09-07 14:23:52 UTC
upstream bug report with possible patch
https://github.com/libyui/libyui-bindings/issues/22

Comment 2 Philippe Makowski 2016-09-08 14:48:15 UTC
Created attachment 1199134 [details]
proposed changes

Please consider the following changes
as I can't push in rpms/libyui-bindings fedora git repo

here the koji build http://koji.fedoraproject.org/koji/taskinfo?taskID=15543370

Comment 3 Fedora Update System 2016-10-26 03:21:14 UTC
libyui-bindings-1.1.1-4.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-7630a3575e

Comment 4 Fedora Update System 2016-10-26 04:24:15 UTC
libyui-bindings-1.1.1-6.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-e470aa9107

Comment 5 Fedora Update System 2016-11-03 23:54:13 UTC
libyui-bindings-1.1.1-4.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2016-11-26 22:52:29 UTC
libyui-bindings-1.1.1-6.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.