I was trying to understand wxPyGridTable (from the wiki and Zope)
but during exec in Boa the following errors appearwxPyGridTable.py:1: DeprecationWarning: The wxPython compatibility package
is no longer automatically generated or actively maintained. Please switch
to the wx package as soon as possible.
from wxPython.wx import *
In cases like this, if you're stumped, you can always try Googling the
error message...for "DeprecationWarning: The wxPython compatibility"
brings you to this message:
http://bytes.com/forum/thread584430.html
but the long and short of it is instead of:
from wxPython.wx import *
instead, use:
import wx
Traceback (most recent call last):
File "wxPyGridTable.py", line 1, in <module>
from wxPython.wx import *
File
"C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wxPython\__init__.py",
line 15, in <module>
import _wx
File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wxPython\_wx.py",
line 8, in <module>
from _misc import *
File
"C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wxPython\_misc.py", line
456, in <module>
wxDateTime_GetNumberOfDaysinYear =
wx._misc.DateTime_GetNumberOfDaysinYear
AttributeError: 'module' object has no attribute
'DateTime_GetNumberOfDaysinYear'
As it turns out, this too can be Googled:
http://article.gmane.org/gmane.comp.lib.wxwidgets.devel/95258
So yes, it was the I in In was not capitalized. That's a common
mistake, but if you make it a few times you will get used to looking
for it. But shouldn't the form now be:
wx.DateTime.GetNumberOfDaysInYear() ?
what does all this mean?
Boa will show you the errors, which is handy. Try clicking on the
various lines and you'll see it will bring you to the offending line
in the code and you can then make the correction if possible.
By the way, it is recommendable to paste only plain text in your
messages to the group.
···
On Thu, Apr 10, 2008 at 2:13 AM, Erik Vandamme <erik1vandamme@gmail.com> wrote: