Bug 699207

Summary: wxPython: cannot import wx.stc
Product: [Fedora] Fedora Reporter: pankaj pandey <pankaj86>
Component: wxPythonAssignee: Dan HorĂ¡k <dan>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: dan, rpandit, xjakub
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: wxGTK-2.8.12-1.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-17 20:58:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description pankaj pandey 2011-04-24 08:51:30 UTC
Description of problem:
wx.stc in unimportable

Version-Release number of selected component (if applicable):
wxPython-2.8.11.0-5.fc15.x86_64


Steps to Reproduce:
1. $ python -c "import wx.stc"
  
Actual results:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/stc.py", line 10, in <module>
    import _stc
ImportError: /usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/_stc.so: symbol _ZN16wxStyledTextCtrl7SendMsgEill, version WXU_2.8 not defined in file libwx_gtk2u_stc-2.8.so.0 with link time reference

Expected results:
No error should be shown. wx.stc should be importable as normal

Additional info:
The file /usr/lib64/libwx_gtk2u_stc-2.8.so.0.8.0 is stripped, so it shows no symbols. Maybe that can cause errors

Comment 1 pankaj pandey 2011-04-24 09:19:05 UTC
Well i just figured that there was a mismatch between wx version and wxPython version.
wx was recently updated to wxBase-2.8.12-1.fc15.x86_64, whereas wxPython is still at wxPython-2.8.11.0-5.fc15.x86_64.
On downgrading wx to older version wxBase-2.8.11-4.fc15.x86_64, wx.stc seems to work fine.
So it seems wxPython also needs to be update to work with the newer wx version in the repo

Comment 2 Milos Jakubicek 2011-04-27 07:04:59 UTC
*** Bug 697770 has been marked as a duplicate of this bug. ***

Comment 3 Fedora Update System 2011-05-01 08:30:18 UTC
wxGTK-2.8.12-1.fc14, wxPython-2.8.12.0-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/wxPython-2.8.12.0-1.fc14,wxGTK-2.8.12-1.fc14

Comment 4 Fedora Update System 2011-05-01 20:57:54 UTC
Package wxGTK-2.8.12-1.fc14, wxPython-2.8.12.0-1.fc14:
* should fix your issue,
* was pushed to the Fedora 14 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing wxGTK-2.8.12-1.fc14 wxPython-2.8.12.0-1.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/wxPython-2.8.12.0-1.fc14,wxGTK-2.8.12-1.fc14
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2011-05-17 20:58:00 UTC
wxGTK-2.8.12-1.fc14, wxPython-2.8.12.0-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.