[wxPython] (no subject)

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

[wxPython] (no subject)

Jens-Erik.Nielsen
Hi

After installing gtk+ and wxGTK and installing the wxPython-2.1.11-1.i386.rpm
I get the following:

Python 1.5 (#4, Mar  8 1998, 22:24:13)  [GCC 2.7.2] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import wxPython.wx
python: can't resolve symbol 'PyEval_InitThreads'
python: can't resolve symbol 'Contains__C8wxRegionll'
python: can't resolve symbol 'FindOrCreateFont__10wxFontListiiiibRC8wxString'
python: can't resolve symbol '__10wxTextCtrlP8wxWindowiRC8wxStringRC7wxPointRC6w
xSizeiRC11wxValidatorT3'
Segmentation fault                                                                            

With Python1.5.2 I get:
>>> from wxPython.wx import *
Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python1.5/site-packages/wxPython/__init__.py", line 20, in ?
    import wxc
ImportError: /usr/lib/libwxPyHelpers.so: undefined symbol: PyEval_InitThreads  

What am I doing wrong ?

Jens

--
Jens Erik Nielsen                               EMBL      
e-mail: [hidden email]              Meyerhofstrasse 1      
Tel: +49 (0) 6221 387451                        69117 Heidelberg      
Fax: +49 (0) 6221 387517                        Germany


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



Reply | Threaded
Open this post in threaded view
|

Re: [wxPython] (no subject)

Robin Dunn
>
> After installing gtk+ and wxGTK and installing the
wxPython-2.1.11-1.i386.rpm
> I get the following:
>
> Python 1.5 (#4, Mar  8 1998, 22:24:13)  [GCC 2.7.2] on linux2
> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> >>> import wxPython.wx
> python: can't resolve symbol 'PyEval_InitThreads'
> python: can't resolve symbol 'Contains__C8wxRegionll'
> python: can't resolve symbol
'FindOrCreateFont__10wxFontListiiiibRC8wxString'
> python: can't resolve symbol
'__10wxTextCtrlP8wxWindowiRC8wxStringRC7wxPointRC6w
> xSizeiRC11wxValidatorT3'
> Segmentation fault
>
> With Python1.5.2 I get:
> >>> from wxPython.wx import *
> Traceback (innermost last):
>   File "<stdin>", line 1, in ?
>   File "/usr/lib/python1.5/site-packages/wxPython/__init__.py", line 20, in
?
>     import wxc
> ImportError: /usr/lib/libwxPyHelpers.so: undefined symbol:
PyEval_InitThreads
>
> What am I doing wrong ?
>

Well for one thing, it looks like your Python was built without thread
support, you'll either have to rebuild Python with threads or rebuild
wxPython. (wxPython's build should automatically detect that Python threads
are not available, if not you can adjust WXP_USE_THREAD in a build.local
file.)

It also looks like there is a mismatch between wxPython and wxGTK versions.
You didn't mention which version of wxGTK you have.  If you are using the
2.1.11 binary of wxPython then you should also be using 2.1.11 of wxGTK.

--
Robin Dunn
Software Craftsman
[hidden email]
http://AllDunn.com/robin/
http://AllDunn.com/wxPython/  Check it out!





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