Subject: [Boost-bugs] [Boost C++ Libraries] #5116: ImportError: dynamic module does not define init function (initscidbclientlibpy)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-01-25 04:01:12
#5116: ImportError: dynamic module does not define init function
(initscidbclientlibpy)
--------------------------------------+-------------------------------------
Reporter: michael_fabbri@⦠| Owner: dave
Type: Bugs | Status: new
Milestone: To Be Determined | Component: Python
Version: Boost 1.45.0 | Severity: Problem
Keywords: |
--------------------------------------+-------------------------------------
bjam compiles and links the following c++ file, but when the module is
imported into python the error message in the summary line of this ticket
is reported.
class pyBase: public SciDBRemote
{ private:
public:
SciDBRemote py_SciDB;
pyBase(int i) { int j = i; j++; py_SciDB = _sciDB; };
SciDB& getPySciDB() { return py_SciDB; }
};
BOOST_PYTHON_MODULE(SciDBRemotePy)
{
class_<pyBase>("pyBase",init<int>())
.add_property( "py_SciDB", make_function(&pyBase::getPySciDB,
return_value_policy<reference_existing_object>()))
.def("disconnect", &pyBase::disconnect)
.def("connect", &pyBase::disconnect)
.def("executeQuery", &pyBase::executeQuery)
.def_readwrite("_sciDB", &_sciDB)
.def("getPySciDB", &pyBase::getPySciDB,
return_value_policy<reference_existing_object>());
What does this python import error means with regards to the boost.python
library, and what boost.python feature must be used to resolve it?
Thank you
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5116> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC