Description of problem: We need openwsman-python built for Python 3 to be able to build fence-agents-amt-ws with Python 3 support. Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1. Install openwsman-python 2. Run python3 3. >>> import pywsman Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named 'pywsman' Actual results: Missing pywsman module for Python 3. Expected results: Able to load pywsman module from Python 3. Additional info:
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle. Changing version to '25'.
Hello Oyvind, Please check openwsman-2.6.2-7.fc26 which I've built recently for Rawhide. It introduces new subpackage named openwsman-python3 with binding for Python 3. It also keeps old openwsman-python for Python 2. I updated Openwsman only in Rawhide at this moment, because the change needed some tweaks in Openwsman's build system (as it doesn't support build for both Python versions) and I want to be sure that I didn't break something. Please let me know your opinion and whether everything works as expected.
It works fine for building (where it also imports it, so it should be fine). It fails in my rawhide VM though, so I guess that might be because it's not as up-to-date as the rawhide build-branch. From my rawhide VM: # python3 Python 3.5.2 (default, Aug 16 2016, 12:17:47) [GCC 6.1.1 20160810 (Red Hat 6.1.1-5)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import pywsman Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python3.5/site-packages/pywsman.py", line 109, in <module> OPENWSMAN_MAJOR = _pywsman.OPENWSMAN_MAJOR AttributeError: module '_pywsman' has no attribute 'OPENWSMAN_MAJOR'
openwsman-2.6.2-7.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-0fe46c0ad2
openwsman-2.6.2-7.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-0fe46c0ad2
openwsman-2.6.2-7.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.