Hello again,
After receiving Robin’s reply to my
recent query, I examined the ‘inline’ statements for wxIsNullDouble(x)
and wxIsSameDouble(x,y) and replaced the occurrences of these in dcclient.cpp
and scrolwin.cpp with ‘x == 0.’ And ‘x == y’,
respectively. It seems to me that these should do exactly what the inline
statements do.
After rebuilding and running ‘pyhton
demo.py’, I was all excited to see the wxPython logo come up. It no
longer complains about the unresolved symbols, but what it does do is:
% python demo.py
(python:6841): Gdk-CRITICAL **: file gdkwindow.c:
line 2466: assertion `window != NULL’ failed
(python:6841): Gdk-CRITICAL **: file gdkwindow.c:
line 2466: assertion `window != NULL’ failed
(python:6841): Gdk-CRITICAL **: file gdkwindow.c:
line 2466: assertion `window != NULL’ failed
Traceback (most recent call last):
File
“/scratch/wxPython-src-2.6.3.3/wxPython/wx/_misc.py”, line 1286, in
Notify
self.notify()
File
“/scratch/wxPython-src-2.6.3.3/wxPython/wx/_core.py”, line 13637, in
Notify
self.result = self.callable(*self.args,
**self.kwargs)
File
“/scratch/wxPython-src-2.6.3.3/wxPython/demo/Main.py”, line 1711, in ShowMain
frame = wxPythonDemo(None,
“wxPython: (A Demonstration)”)
File
“/scratch/wxPython-src-2.6.3.3/wxPython/demo/Main.py”, line 1125, in
init
self.tbicon = DemoTaskBarIcon(self)
File
“/scratch/wxPython-src-2.6.3.3/wxPython/demo/Main.py”, line 1033, in
init
self.SetIcon(icon,
“wxPython Demo”)
File
“/scratch/wxPython-src-2.6.3.3/wxPython/wx/_windows.py”, line 2234,
in SetIcon
return _windows_.TaskBarIcon_SetIcon(*args,
**kwargs)
wx._core.PyAssertionError: C++ assertion
“wxAssertFailure” failed in …/src/gtk/bitmap.cpp(1239): invalid
bitmap
It leaves a time window with a
snake-looking thing open, but it isn’t apparent what I’m supposed
to do with this, and I gather something important is missing. Does anyone have
any suggestions? I would like to try wxPython 2.8, but as you may have seen in
my other posting I cannot get the configure program for that to complete.
Best regards,
- Phil
-----Original
Message-----
Sent: Thursday,
4 January 2007 6:35
PM
To:
‘wxpython-users@lists.wxwidgets.org’
run-time problem
Hi again,
As described in my previous message,
I am trying to install wxPython version 2.6.3.3 on a Solaris machine. OS and
gcc version are given below:
% uname –a
SunOS koala 5.10 Generic_118833-24
sun4u sparc SUNW,A70
% gcc --version
gcc (GCC) 3.4.1
I am using Python2.3. After putting
#include <wchar.h> at the top of Python.h to get around the compilation
problems described in my previous message, I managed to build wxPython. But when
I set my PYTHONPATH and LD_LIBRARY path as described in the build instructions,
the following happens:
% python demo.py
Traceback (most recent call last):
File “demo.py”,
line 3, in ?
import Main
File
“/scratch/wxPython-src-2.6.3.3/wxPython/demo/Main.py”, line 32, in ?
import
wx
This module uses the new wx namespace
File
“/scratch/wxPython-src-2.6.3.3/wxPython/wx/init.py”, line 42, in
?
from wx._core
import *
File
“/scratch/wxPython-src-2.6.3.3/wxPython/wx/_core.py”, line 4, in ?
import _core_
ImportError: ld.so.1: python: fatal:
relocation error: file /d/ehn/3/ehn/Software/lib/libwx_gtk2d_core-2.6.so.0.3.1:
symbol _Z14wxIsNullDoubled: referenced symbol not found
I re-built wxPython after
uncommenting the SunOs lines in config.py, but the same thing happens. (I only
rebuilt wxPython using ‘python setup.py build_ext --inplace --debug
UNICODE=0’, I did not rebuild wxWidgets – do I need to do that)?
- Phil
···
From: Cummins Phil
Subject: Solaris 10 - gcc3