[wxPython] wxPython-2.3.2.1 build trouble

Hello All.

Truing to build wxPython-2.3.2.1 under linux from source tarball i get following errors:

src/helpers.cpp: In function `struct PyObject * wxPyMake_wxObject(wxObject *, bool = 1)':
src/helpers.cpp:318: no matching function for call to `wxEvtHandler::GetClientObject ()'
src/helpers.cpp:339: no matching function for call to `wxEvtHandler::SetClientObject (wxPyClientData *)

I have Python 2.0.1, gtk+ 1.2.10 and wxgtk 2.2.7 installed, as mentioned in BUILD.unix.txt.
The problem is that wxEvtHandler object from wxGTK really does not provide any of these Get/Set methods. Grep'ing through wx/*h i found these methods only in wxWindowBase class.

What should all this mean and how should i build wxPython?

Thanks for help
Maxim (tws5@mail.ru)

Hello All, again.

Hello All.

I'm so sorry, sorry for bothering you all, people...
I've got an old version of wxWindows -- need 2.3.2 instead of 2.2.7,
2.3.2 has all the headers OK.

···

Truing to build wxPython-2.3.2.1 under linux from source tarball i get
following errors:

src/helpers.cpp: In function `struct PyObject *
wxPyMake_wxObject(wxObject *, bool = 1)':
src/helpers.cpp:318: no matching function for call to
`wxEvtHandler::GetClientObject ()'
src/helpers.cpp:339: no matching function for call to
`wxEvtHandler::SetClientObject (wxPyClientData *)

I have Python 2.0.1, gtk+ 1.2.10 and wxgtk 2.2.7 installed, as
mentioned in BUILD.unix.txt.
The problem is that wxEvtHandler object from wxGTK really does not
provide any of these Get/Set methods. Grep'ing through wx/*h i found
these methods only in wxWindowBase class.

--
Best regards,
Maxim mailto:tws5@mail.ru

hello all,

using wxGTK 2.3.2 and wxPython 2.3.2.1 (both from cvs) with python 2.2

everything builds ok but anytime i try to import wxpython (in demo.py
for exemple) i get messages like this :

Traceback (most recent call last):

  • File “demo.py”, line 3, in ?*
  • import Main*
  • File “Main.py”, line 15, in ?*
    _ from wxPython.wx import
···

*_

  • File “/usr/local/lib/python2.2/site-packages/wxPython/init.py”,
    line 20, in ?*
  • import wxc*
    ImportError: /usr/local/lib/python2.2/site-packages/wxPython/wxc.so:
    undefined symbol: StoreObject__8wxObjectR20wxObjectOutputStream

Here s what ldd says about wxc.so :

ldd /usr/local/lib/python2.2/site-packages/wxPython/wxc.so

  • libwx_gtk-2.3.so => /usr/local/lib/libwx_gtk-2.3.so
    (0x40197000)*
  • libc.so.6 => /lib/libc.so.6 (0x4050f000)*
  • libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0
    (0x40644000)*
  • libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0
    (0x40772000)*
  • libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0
    (0x407a9000)*
  • libgthread-1.2.so.0 => /usr/lib/libgthread-1.2.so.0
    (0x407ac000)*
  • libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0
    (0x407af000)*
  • libpthread.so.0 => /lib/libpthread.so.0 (0x407d3000)*
  • libdl.so.2 => /lib/libdl.so.2 (0x407ea000)*
  • libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x407ee000)*
  • libXext.so.6 => /usr/X11R6/lib/libXext.so.6
    (0x407f7000)*
  • libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40805000)*
  • libz.so.1 => /usr/lib/libz.so.1 (0x408e3000)*
  • libm.so.6 => /lib/libm.so.6 (0x408f1000)*
  • libstdc+±libc6.2-2.so.3 => /usr/lib/libstdc+±libc6.2-2.so.3
    (0x40913000)*
  • /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)*

This computer is brand new and i installed linux yesterday, so no previous
versions of wx on it.

Anyone can help me ?

Thx

Emmanuel Olart

Maxim Krikun wrote:

Hello All, again.

Hello All.

I’m so sorry, sorry for bothering you all, people…

I’ve got an old version of wxWindows – need 2.3.2 instead of 2.2.7,

2.3.2 has all the headers OK.

Truing to build wxPython-2.3.2.1 under linux from source tarball
i get

following errors:

src/helpers.cpp: In function `struct PyObject *

wxPyMake_wxObject(wxObject *, bool = 1)’:

src/helpers.cpp:318: no matching function for call to

`wxEvtHandler::GetClientObject ()’

src/helpers.cpp:339: no matching function for call to

`wxEvtHandler::SetClientObject (wxPyClientData *)

I have Python 2.0.1, gtk+ 1.2.10 and wxgtk 2.2.7 installed,
as

mentioned in BUILD.unix.txt.

The problem is that wxEvtHandler object from wxGTK really does
not

provide any of these Get/Set methods. Grep’ing through wx/*h i
found

these methods only in wxWindowBase class.

Best regards,

Maxim
mailto:tws5@mail.ru


wxpython-users mailing list

wxpython-users@lists.wxwindows.org

http://lists.wxwindows.org/mailman/listinfo/wxpython-users

-- 
------------------------------------------
Emmanuel OLART, Eng.
THERALYS
Diagnostic & Therapeutic Image Analysis in Clinical Trials
Address : 29 rue Bellecombe, 69006, LYON, FRANCE
Phone : (33).6.63.01.52.36
Fax : (33).4.72.35.72.91
Email : olart@theralys.com
 
ATTENTION :
*********** Confidentialité des Informations contenues dans cet e-mail *************
Les informations de cet e-mail sont confidentielles, soumises au secret 
professionnel et destinées à l'usage exclusif du (des) destinataire (s) nommé (s). 
Toute divulgation, distribution ou reproduction de cette communication est 
strictement interdite. Si vous recevez celui-ci par erreur, veuillez le notifier à son 
émetteur par retour et détruire ce message ainsi que tous les documents qui y 
sont attachés. Merci de nous contacter immédiatement si vous-même ou votre 
employeur n'acceptez pas les communications de cet ordre par e-mail.

mmm i forgot maybe an important thing : this is a SMP machine …

Linux Virage 2.4.7-10smp #1 SMP Thu Sep 6 17:09:31 EDT 2001 i686 unknown

Emmanuel Olart wrote:

hello all,
using wxGTK 2.3.2 and wxPython 2.3.2.1 (both from cvs) with python 2.2

everything builds ok but anytime i try to import wxpython (in demo.py
for exemple) i get messages like this :

Traceback (most recent call last):

  • File “demo.py”, line 3, in ?*
  • import Main*
  • File “Main.py”, line 15, in ?*
    _ from wxPython.wx import
    *_
  • File “/usr/local/lib/python2.2/site-packages/wxPython/init.py”,
    line 20, in ?*
  • import wxc*
    ImportError: /usr/local/lib/python2.2/site-packages/wxPython/wxc.so:
    undefined symbol: StoreObject__8wxObjectR20wxObjectOutputStream

Here s what ldd says about wxc.so :

ldd /usr/local/lib/python2.2/site-packages/wxPython/wxc.so

  • libwx_gtk-2.3.so => /usr/local/lib/libwx_gtk-2.3.so
    (0x40197000)*
  • libc.so.6 => /lib/libc.so.6 (0x4050f000)*
  • libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0
    (0x40644000)*
  • libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0
    (0x40772000)*
  • libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0
    (0x407a9000)*
  • libgthread-1.2.so.0 => /usr/lib/libgthread-1.2.so.0
    (0x407ac000)*
  • libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0
    (0x407af000)*
  • libpthread.so.0 => /lib/libpthread.so.0 (0x407d3000)*
  • libdl.so.2 => /lib/libdl.so.2 (0x407ea000)*
  • libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x407ee000)*
  • libXext.so.6 => /usr/X11R6/lib/libXext.so.6
    (0x407f7000)*
  • libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40805000)*
  • libz.so.1 => /usr/lib/libz.so.1 (0x408e3000)*
  • libm.so.6 => /lib/libm.so.6 (0x408f1000)*
  • libstdc+±libc6.2-2.so.3 => /usr/lib/libstdc+±libc6.2-2.so.3
    (0x40913000)*
  • /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)*

This computer is brand new and i installed linux yesterday, so no previous
versions of wx on it.

Anyone can help me ?

Thx

Emmanuel Olart

Maxim Krikun wrote:

Hello All, again.

Hello All.

I’m so sorry, sorry for bothering you all, people…

I’ve got an old version of wxWindows – need 2.3.2 instead of 2.2.7,

2.3.2 has all the headers OK.

Truing to build wxPython-2.3.2.1 under linux from source tarball
i get

following errors:

src/helpers.cpp: In function `struct PyObject *

wxPyMake_wxObject(wxObject *, bool = 1)’:

src/helpers.cpp:318: no matching function for call to

`wxEvtHandler::GetClientObject ()’

src/helpers.cpp:339: no matching function for call to

`wxEvtHandler::SetClientObject (wxPyClientData *)

I have Python 2.0.1, gtk+ 1.2.10 and wxgtk 2.2.7 installed,
as

mentioned in BUILD.unix.txt.

The problem is that wxEvtHandler object from wxGTK really does
not

provide any of these Get/Set methods. Grep’ing through wx/*h i
found

these methods only in wxWindowBase class.

Best regards,

Maxim
mailto:tws5@mail.ru


wxpython-users mailing list

wxpython-users@lists.wxwindows.org

http://lists.wxwindows.org/mailman/listinfo/wxpython-users

-- 
------------------------------------------
Emmanuel OLART, Eng.
THERALYS
Diagnostic & Therapeutic Image Analysis in Clinical Trials
Address : 29 rue Bellecombe, 69006, LYON, FRANCE
Phone : (33).6.63.01.52.36
Fax : (33).4.72.35.72.91
Email : olart@theralys.com
 
ATTENTION :
*********** Confidentialité des Informations contenues dans cet e-mail *************
Les informations de cet e-mail sont confidentielles, soumises au secret 
professionnel et destinées à l'usage exclusif du (des) destinataire (s) nommé (s). 
Toute divulgation, distribution ou reproduction de cette communication est 
strictement interdite. Si vous recevez celui-ci par erreur, veuillez le notifier à son 
émetteur par retour et détruire ce message ainsi que tous les documents qui y 
sont attachés. Merci de nous contacter immédiatement si vous-même ou votre 
employeur n'acceptez pas les communications de cet ordre par e-mail.

<details class='elided'>
<summary title='Show trimmed content'>&#183;&#183;&#183;</summary>

-- 
------------------------------------------
Emmanuel OLART, Eng.
THERALYS
Diagnostic & Therapeutic Image Analysis in Clinical Trials
Address : 29 rue Bellecombe, 69006, LYON, FRANCE
Phone : (33).6.63.01.52.36
Fax : (33).4.72.35.72.91
Email : olart@theralys.com
 
ATTENTION :
*********** Confidentialité des Informations contenues dans cet e-mail *************
Les informations de cet e-mail sont confidentielles, soumises au secret 
professionnel et destinées à l'usage exclusif du (des) destinataire (s) nommé (s). 
Toute divulgation, distribution ou reproduction de cette communication est 
strictement interdite. Si vous recevez celui-ci par erreur, veuillez le notifier à son 
émetteur par retour et détruire ce message ainsi que tous les documents qui y 
sont attachés. Merci de nous contacter immédiatement si vous-même ou votre 
employeur n'acceptez pas les communications de cet ordre par e-mail.

using wxGTK 2.3.2 and wxPython 2.3.2.1 (both from cvs) with python 2.2
everything builds ok but anytime i try to import wxpython (in demo.py for
exemple) i get messages like this :

...

    import wxc
ImportError: /usr/local/lib/python2.2/site-packages/wxPython/wxc.so:
undefined symbol: StoreObject__8wxObjectR20wxObjectOutputStream

Here s what ldd says about wxc.so :

ldd /usr/local/lib/python2.2/site-packages/wxPython/wxc.so
libwx_gtk-2.3.so => /usr/local/lib/libwx_gtk-2.3.so (0x40197000)

...

This computer is brand new and i installed linux yesterday, so no previous
versions of wx on it.

Are you sure? That method is defined like this in object.h:

#if wxUSE_SERIAL
  virtual void StoreObject( wxObjectOutputStream &stream );
  virtual void LoadObject( wxObjectInputStream &stream );
#endif

so at the very least you are building wxPython with a different setting of
wxUSE_SERIAL than what wxGTK was built with. wxGTK's install should have
copied the configured setup.h (where that and other build flags are set) to
/usr/local/lib/wx/include/gtkd-2.3/wx/setup.h.

Try this in the command line environment you built wxPython from:

    which wx-config
    wx-config --version --cxxflags

to see where the wxPython build is getting it's wx .h files from.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

Thx for help, I did everything for the beginning and this time it worked ...

Sorry for bothering you, but this was really strange

Regards

Emmanuel

Robin Dunn wrote:

···

using wxGTK 2.3.2 and wxPython 2.3.2.1 (both from cvs) with python 2.2
everything builds ok but anytime i try to import wxpython (in demo.py for
exemple) i get messages like this :

...

   import wxc
ImportError: /usr/local/lib/python2.2/site-packages/wxPython/wxc.so:
undefined symbol: StoreObject__8wxObjectR20wxObjectOutputStream

Here s what ldd says about wxc.so :

ldd /usr/local/lib/python2.2/site-packages/wxPython/wxc.so
libwx_gtk-2.3.so => /usr/local/lib/libwx_gtk-2.3.so (0x40197000)

...

This computer is brand new and i installed linux yesterday, so no previous
versions of wx on it.

Are you sure? That method is defined like this in object.h:

#if wxUSE_SERIAL
virtual void StoreObject( wxObjectOutputStream &stream );
virtual void LoadObject( wxObjectInputStream &stream );
#endif

so at the very least you are building wxPython with a different setting of
wxUSE_SERIAL than what wxGTK was built with. wxGTK's install should have
copied the configured setup.h (where that and other build flags are set) to
/usr/local/lib/wx/include/gtkd-2.3/wx/setup.h.

Try this in the command line environment you built wxPython from:

   which wx-config
   wx-config --version --cxxflags

to see where the wxPython build is getting it's wx .h files from.

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users