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