PyAssert

Hi Dick,

Yeah it is difficult when one gets these Assertions.

This is what I do.. put copious numbers of print statements in the
offending method to see the state of the class instance as it
progresses. If you are upto it and have the knowledge, you could also
take a look at the C source ( you will have to download the wxPython
sources for that) and take a look at the source mentioned in the
Assert.

I have some asserts I still struggle with to understand why they come
up! Good luck and keep us posted if you find something extraordinary.

Thanks,
-Kartic

ยทยทยท

On 10/27/05, Dick Kniep <dick@kniep.nl> wrote:

Hi List,

Sometimes we get this crash, but I have no idea how to debug this. It looks
like an internal problem, but I would not dare to suggest that my programme
does not do something strange that causes this.

If someone can give me a hint where to look, I would be very happy.

Traceback (most recent call last):
  File "/opt/CVix/src/IdleProc.py", line 89, in IdleExec
    if routine(obj):
  File "/opt/CVix/src/WordProcessing.py", line 410, in SaveDocuments
    Getenv.Config.log.debug('lengte van self.mydocuments is
%s',len(self.mydocuments))
  File "/usr/lib/python2.4/logging/__init__.py", line 917, in debug
    if DEBUG >= self.getEffectiveLevel():
  File "/usr/lib/python2.4/logging/__init__.py", line 1100, in
getEffectiveLevel
    while logger:
wxPython.wxc.wxPyAssertionError: C++ assertion "wxAssertFailure" failed
in ../src/gtk/notebook.cpp(92): gtk_not

Cheers,
Dick

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org