[wxPython] Error executing demo.py

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[wxPython] Error executing demo.py

lec-4
OS: Red Hat 6.0
wxPython: 2.1b2

I got the following error when I try to run the demo:

# python demo.py
Traceback (innermost last):
  File "demo.py", line 3, in ?
    import Main
  File "/usr/lib/python1.5/site-packages/wxPython/demo/Main.py", line
15, in ?
    from   wxPython.wx import *
  File "/usr/lib/python1.5/site-packages/wxPython/__init__.py", line 16,
in ?
    import wxc
ImportError: /usr/lib/python1.5/site-packages/wxPython/wxcmodule.so:
undefined symbol: __pure_virtual

Please help.

Thanks,
Thomas.



_______________________________________________
wxPython-users maillist  -  [hidden email]
http://starship.python.net/mailman/listinfo/wxpython-users



Reply | Threaded
Open this post in threaded view
|

Re: [wxPython] Error executing demo.py

Robin Dunn
> OS: Red Hat 6.0
> wxPython: 2.1b2
>
> I got the following error when I try to run the demo:
>
> # python demo.py
> Traceback (innermost last):
>   File "demo.py", line 3, in ?
>     import Main
>   File "/usr/lib/python1.5/site-packages/wxPython/demo/Main.py", line
> 15, in ?
>     from   wxPython.wx import *
>   File "/usr/lib/python1.5/site-packages/wxPython/__init__.py", line 16,
> in ?
>     import wxc
> ImportError: /usr/lib/python1.5/site-packages/wxPython/wxcmodule.so:
> undefined symbol: __pure_virtual
>

I assume you are using the RPM's?  The only thing I can think of is perhaps
an incompatibility with your stdlibc++ or something.  You may have to build
from sources.

The wxGTK author has removed the dependency on libstdc++ so hopefully there
will be another snapshot soon and things will get better.  If not, I'll see
if I can come up with some other way of distributing things...

Robin


_______________________________________________
wxPython-users maillist  -  [hidden email]
http://starship.python.net/mailman/listinfo/wxpython-users