Red Hat Bugzilla – Bug 1269003
pycdio can't be imported
Last modified: 2015-11-14 19:23:52 EST
Description of problem:
The pycdio package as shipped in Fedora 23 appears to be broken. Attempts to import the module produce an error (see "Actual results" below.)
Version-Release number of selected component:
Steps to Reproduce:
1. Open a python prompt (run /usr/bin/python)
2. Attempt to import the pycdio module ("import pycdio").
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/site-packages/pycdio.py", line 128, in <module>
VERSION_NUM = _pycdio.VERSION_NUM
AttributeError: 'module' object has no attribute 'VERSION_NUM'
This problem can also be observed while using a software package which depends on pycdio. I found this bug using morituri ( https://github.com/thomasvs/morituri ) and attempting to use the "offset" command (which requires pycdio.)
Confirming, I see this on Rawhide also.
Note, the _pycdio object has an attribue VERSION_NUM_swigconstant , so I'm guessing this may be some issue in swig?
I note here:
SWIG version 3.0.2 (the most recent version 3.0.5 doesn't work)
Version 3.0.5 creates a _cdisort.so module with "_swigconstant" added inconsistently. Use earlier version instead."
so there's another project which found what looks like the same problem with swig 3.0.5. swig 3.0.5 landed in Fedora shortly before pycdio 0.19-7.fc23 got built, so that timing lines up. I'm gonna see if building with a newer swig solves this, and if not, re-assign to swig.
pycdio-0.20-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-b771bd72ae
pycdio-0.20-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update pycdio'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-b771bd72ae
pycdio-0.20-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.