On 10. 02. 20 17:56, Steven A. Falco wrote:
> There appears to be something wrong with python wx:
>
> rawhide# python
> Python 3.8.1 (default, Jan 30 2020, 00:00:00)
> [GCC 10.0.1 20200126 (Red Hat 10.0.1-0.6)] on linux
> Type "help", "copyright", "credits" or
"license" for more information.
>>>> import wx
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/usr/lib64/python3.8/site-packages/wx/__init__.py", line 17, in
<module>
> from wx.core import *
> File "/usr/lib64/python3.8/site-packages/wx/core.py", line 12, in
<module>
> from ._core import *
> ImportError:
/usr/lib64/python3.8/site-packages/wx/_core.cpython-38-x86_64-linux-gnu.so: undefined
symbol: _ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE9_M_createERmm, version
WXU_3.0
>
> Should I write a bug for this or am I doing something wrong?
We have encountered the same problem when rebuilding stuff against Python 3.9:
https://bugzilla.redhat.com/show_bug.cgi?id=1801244
Thanks. I added a comment to that bug. I found that by rebuilding python3 and
python-wxpython4 I could then import wx without error.
Steve