Red Hat Bugzilla – Bug 450073
wxPython cannot be imported: fails with AttributeError
Last modified: 2008-06-20 15:13:37 EDT
Description of problem:
Trying to import wxPython results in an error when it gets to _misc.py:
AttributeError: 'module' object has no attribute 'DateTime_GetNumberOfDaysinYear
This is preventing wxPython-based applications like londonlaw from running.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
2. import wxPython
Import should work
The fix for this is trivial, in _misc.py at line 456
"DateTime_GetNumberOfDaysinYear" should become "DateTime_GetNumberOfDaysInYear"
notice the capital I in In!
Given the trivialness of this fix (and the current unusability of the wxPython
compat part of wxPython), I've taken the liberty of commiting to CVS and
building this for F-8, F-9 and devel.
Matthew, if its ok with you I will push the F-8 and F-9 builds as update (put
them in bodhi), ok?
*** Bug 450074 has been marked as a duplicate of this bug. ***
wxPython-220.127.116.11-5.fc9 has been submitted as an update for Fedora 9
wxPython-18.104.22.168-5.fc8 has been submitted as an update for Fedora 8
I've taken the liberty to create updates in bodhi for this for F-8 and F-9, for
now they are scheduled to go to testing. Matthew, as soon as I get an ok from
you I'll push them to stable.
wxPython-22.214.171.124-5.fc9 has been pushed to the Fedora 9 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 'yum --enablerepo=updates-testing update wxPython'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-5316
wxPython-126.96.36.199-5.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.
wxPython-188.8.131.52-5.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.