Boost C++ Libraries: Ticket #5116: ImportError: dynamic module does not define init function (initscidbclientlibpy) https://svn.boost.org/trac10/ticket/5116 <p> 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. </p> <p> class pyBase: public SciDBRemote { private: </p> <blockquote> <p> public: </p> <blockquote> <p> SciDBRemote py_SciDB; pyBase(int i) { int j = i; j++; py_SciDB = _sciDB; }; SciDB&amp; getPySciDB() { return py_SciDB; } </p> </blockquote> </blockquote> <p> }; </p> <p> BOOST_PYTHON_MODULE(SciDBRemotePy) { </p> <blockquote> <p> class_&lt;pyBase&gt;("pyBase",init&lt;int&gt;()) </p> <blockquote> <p> .add_property( "py_SciDB", make_function(&amp;pyBase::getPySciDB, return_value_policy&lt;reference_existing_object&gt;())) .def("disconnect", &amp;pyBase::disconnect) .def("connect", &amp;pyBase::disconnect) .def("executeQuery", &amp;pyBase::executeQuery) .def_readwrite("_sciDB", &amp;_sciDB) .def("getPySciDB", &amp;pyBase::getPySciDB, return_value_policy&lt;reference_existing_object&gt;()); </p> </blockquote> </blockquote> <p> 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? </p> <p> Thank you </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5116 Trac 1.4.3 Dave Abrahams Tue, 25 Jan 2011 17:19:17 GMT <link>https://svn.boost.org/trac10/ticket/5116#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5116#comment:1</guid> <description> <p> Either it means that the module you're showing was improperly compiled into a shared library called "scidbclientlibpy.&lt;some-extension&gt;" rather than "SciDBRemotePy.&lt;some-extension&gt;," or the error has nothing at all to do with the code above and is related only to some other code that is used to build "scidbclientlibpy". </p> </description> <category>Ticket</category> </item> <item> <author>michael_fabbri@…</author> <pubDate>Tue, 25 Jan 2011 17:35:55 GMT</pubDate> <title>status, version changed; resolution set https://svn.boost.org/trac10/ticket/5116#comment:2 https://svn.boost.org/trac10/ticket/5116#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.45.0</span> → <span class="trac-field-new">Boost 1.40.0</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Thank you for your response. </p> <p> I made this change and I can now load the module. </p> Ticket anonymous Wed, 16 Jul 2014 16:32:33 GMT attachment set https://svn.boost.org/trac10/ticket/5116 https://svn.boost.org/trac10/ticket/5116 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">VTKBlender.py</span> </li> </ul> Ticket