<div dir="ltr">I get the following error when trying to import a pyd file in python.<br>I'm trying to use this with the Delta3D game engine to access VRPN data.<br><br>------<br>Traceback (most recent call last):<br> File "hello.py", line 2, in <module><br> import PyVrpnData<br>ImportError: dynamic module does not define init function (initPyVrpnData)<br><br>------<br><br>Here's the python file.<br><br>------<br>import PyVrpnData<br><br>print "hello"<br><br> print PyVrpnData.getPos(1)<br><br>print "done"<br>------<br><br>I'm trying to use boost but not use bjam as it appears Delta3D has done.<br>Here is the source.<br><br>--------<br><br>float getPos(int i);<br> float getQuat(int i);<br><br>void initPyVrpnData()<br>{<br> using namespace boost::python;<br> def("getPos",getPos);<br> def("getQuat",getQuat);<br>}<br>-------<br><br>#include <boost/python.hpp><br> <br>extern "C" __declspec(dllexport) void initPyVrpnData();<br><br>BOOST_PYTHON_MODULE(PyVrpnData)<br>{<br> initPyVrpnData();<br>}<br>--------<br><br></div>