[C++-sig] Strange problem with boost::python::scope
David Abrahams
dave at boost-consulting.com
Tue Sep 4 19:02:39 CEST 2007
on Sun Sep 02 2007, Lloyd Weehuizen <lloyd-AT-fusion.net.nz> wrote:
> I then try to inherit from DataGrid in python code as follows:
>
> class CustomDataGrid(testmodule.element.DataGrid):
> def __init__(self, tag):
> testmodule.element.DataGrid.__init__(self, tag)
>
> And I get the following error:
> Traceback (most recent call last):
> File "c:\projects\testmodule\datagrid.py", line 6, in __init__
> testmodule.element.DataGrid.__init__(self, tag)
> AttributeError: 'module' object has no attribute 'DataGrid'
>
> Strangely enough the CustomDataGrid class inheritance finds the
> object correctly, but calling the base initializer fails.
>
> Any ideas?
I'm afraid not. Your best bet is to debug python itself in Visual
Studio (I'm assuming you're on VC++) and find out where the exception
is being thrown.
--
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com
The Astoria Seminar ==> http://www.astoriaseminar.com
More information about the Cplusplus-sig
mailing list