Thursday, February 11, 2010

Import errors - I always forget about this

Sometimes, boost can be a pain in the ass. I moved directories of the .pyd file as I was renaming everything and expanding the .pyd into different exposed modules. I thought I had messed something up, because when I tried importing the module in python, I got
ImportError: DLL load failed: The specified module could not be found.
I kept changing things on the C++ side trying to figure it out, and then I remembered, the boost.python dll needs to be in the same directory.

Moving it into the directory fixed the import issue. I'm full of fail this morning.

No comments:

Post a Comment