[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Clarification

From: Mike Willis
Subject: [Discuss-gnuradio] Clarification
Date: Thu, 7 Aug 2014 22:10:35 +0100

I still have the problem with the AttributeError: 'module' object has
no attribute problem for my OOT module. Really clutching at straws
now, hair all gone. Can anyone explain in plain English what the
following advice from the WiKi means? I am sure it is 100% clear to
whoever wrote it but it means little to me.


Make sure the methods in include/modname/blockname.h are declared pure
virtual so that blockname can remain an abstract class.

Following that is the advice that If blockname is not abstract, your
code may compile but SWIG will interpret the declaration as the
concrete class instead of your blockname_impl class. At runtime this
will cause an error like ImportError: [...] undefined symbol when the
Python interpreter attempts to load your SWIGged object code.

Well that's more or less what is happening but it might not be the cause.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]