[CIG-SHORT] SWIG with PyLith and spatialdata
Brad Aagaard
baagaard at usgs.gov
Tue Apr 17 07:12:58 PDT 2012
Birendra,
I forgot to mention that if you enable SWIG for PyLith you also must
enable SWIG for spatialdata. The installer does this automatically but
since you are configuring PyLith manually to force use of SWIG via
--enable-swig you must also do the same for spatialdata. This insures
that the signatures of the C++ symbols is the same. The error message
you are getting indicates that signature of the spatialdata pointer is
different in PyLith than it is in spatialdata (due to different SWIG or
compilers).
Regards,
Brad
On 4/16/12 10:56 PM, Birendra jha wrote:
> Hi Brad,
>
> I am trying to launch pylith in debugger mode. Usually uncommenting following in pylithapp.cfg
> start_in_debugger = true
> works. But this time I don't get the gdb window, instead I get the following error:
>
> user at ubuntu:~/build/pylith/pylith-1.6.3/examples/3d/hex8$ pylith step01.cfg
> Traceback (most recent call last):
> File "/home/user/pylith/bin/pylith", line 39, in<module>
> start(applicationClass=PyLithApp)
> File "/home/user/pylith/lib/python2.7/site-packages/pythia-0.8.1.14-py2.7.egg/pyre/applications/__init__.py", line 41, in start
> shell.run(**kwds)
> File "/home/user/pylith/lib/python2.7/site-packages/pythia-0.8.1.14-py2.7.egg/pyre/applications/Shell.py", line 125, in run
> app.applyConfiguration(context)
> File "/home/user/pylith/lib/python2.7/site-packages/pythia-0.8.1.14-py2.7.egg/pyre/inventory/Configurable.py", line 76, in applyConfiguration
> context.configureComponent(self)
> File "/home/user/pylith/lib/python2.7/site-packages/pythia-0.8.1.14-py2.7.egg/pyre/inventory/ConfigContext.py", line 68, in configureComponent
> component.configureComponents(self)
> File "/home/user/pylith/lib/python2.7/site-packages/pythia-0.8.1.14-py2.7.egg/pyre/inventory/Configurable.py", line 129, in configureComponents
> self.inventory.configureComponents(context)
> File "/home/user/pylith/lib/python2.7/site-packages/pythia-0.8.1.14-py2.7.egg/pyre/inventory/Inventory.py", line 99, in configureComponents
> component.applyConfiguration(context)
> File "/home/user/pylith/lib/python2.7/site-packages/pythia-0.8.1.14-py2.7.egg/pyre/inventory/Configurable.py", line 76, in applyConfiguration
> context.configureComponent(self)
> File "/home/user/pylith/lib/python2.7/site-packages/pythia-0.8.1.14-py2.7.egg/pyre/inventory/ConfigContext.py", line 68, in configureComponent
> component.configureComponents(self)
> File "/home/user/pylith/lib/python2.7/site-packages/pythia-0.8.1.14-py2.7.egg/pyre/inventory/Configurable.py", line 129, in configureComponents
> self.inventory.configureComponents(context)
> File "/home/user/pylith/lib/python2.7/site-packages/pythia-0.8.1.14-py2.7.egg/pyre/inventory/Inventory.py", line 99, in configureComponents
> component.applyConfiguration(context)
> File "/home/user/pylith/lib/python2.7/site-packages/pythia-0.8.1.14-py2.7.egg/pyre/inventory/Configurable.py", line 76, in applyConfiguration
> context.configureComponent(self)
> File "/home/user/pylith/lib/python2.7/site-packages/pythia-0.8.1.14-py2.7.egg/pyre/inventory/ConfigContext.py", line 68, in configureComponent
> component.configureComponents(self)
> File "/home/user/pylith/lib/python2.7/site-packages/pythia-0.8.1.14-py2.7.egg/pyre/inventory/Configurable.py", line 129, in configureComponents
> self.inventory.configureComponents(context)
> File "/home/user/pylith/lib/python2.7/site-packages/pythia-0.8.1.14-py2.7.egg/pyre/inventory/Inventory.py", line 99, in configureComponents
> component.applyConfiguration(context)
> File "/home/user/pylith/lib/python2.7/site-packages/pythia-0.8.1.14-py2.7.egg/pyre/inventory/Configurable.py", line 79, in applyConfiguration
> self._configure()
> File "/home/user/pylith/lib/python2.7/site-packages/pylith/bc/DirichletBC.py", line 119, in _configure
> TimeDependentPoints._configure(self)
> File "/home/user/pylith/lib/python2.7/site-packages/pylith/bc/TimeDependentPoints.py", line 79, in _configure
> TimeDependent._configure(self)
> File "/home/user/pylith/lib/python2.7/site-packages/pylith/bc/TimeDependent.py", line 111, in _configure
> ModuleTimeDependent.dbInitial(self, self.inventory.dbInitial)
> File "/home/user/pylith/lib/python2.7/site-packages/pylith/bc/bc.py", line 206, in dbInitial
> def dbInitial(self, *args): return _bc.TimeDependent_dbInitial(self, *args)
> TypeError: in method 'TimeDependent_dbInitial', argument 2 of type 'spatialdata::spatialdb::SpatialDB *const'
>
>
> What does this error mean? It seems it is from bc_wrap.cxx but I didn't modify anything in the bc folders of pylith code. make and make install was successful.
>
> Thanks
> Birendra
>
More information about the CIG-SHORT
mailing list