
Hello, I fairly new to the Boost tool. I have just build the Boost.Python 1.30.2. To get started I used the examples "getting_started1.cpp and getting_started2.cpp." and build the required DLLs using the bjam tool. I get following error when I try to import the module "getting_started1" into python : "ImportError: DLL load failed: The specified module could not be found." Can someone help me resolve this error? I am using PythonWin 2.2.1. Nitin

Sounds like you are on a windows system. I've just done (successfully) what you tried on my linux machine. I suggest: o search for the directory in which your getting_started2 DLL was build and move to it. o copy the boostpython.dll to this directory. o copy test_getting_started2.py to this directory. o try running the script. To "install" this test so you don't need to run from this particular directory, move the getting_started.dll to the "site-packages" directory under your python distribution and move the boostpython.dll to some directory that is exposed to your PATH environment variable. Note that since this is just a test, the install isn't necessary or really suggested. Shukla, Nitin (Export) wrote:
Hello,
I fairly new to the Boost tool. I have just build the Boost.Python 1.30.2. To get started I used the examples "getting_started1.cpp and getting_started2.cpp." and build the required DLLs using the bjam tool. I get following error when I try to import the module "getting_started1" into python :
"ImportError: DLL load failed: The specified module could not be found."
Can someone help me resolve this error? I am using PythonWin 2.2.1.
Nitin
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

"Shukla, Nitin (Export)"
Hello,
I fairly new to the Boost tool. I have just build the Boost.Python 1.30.2. To get started I used the examples "getting_started1.cpp and getting_started2.cpp." and build the required DLLs using the bjam tool. I get following error when I try to import the module "getting_started1" into python :
"ImportError: DLL load failed: The specified module could not be found."
I think it's having trouble finding your Boost.Python DLL. If you use bjam -d+2 to build the "test" target you can see where the tool puts the directory of that DLL into the PATH.
Can someone help me resolve this error? I am using PythonWin 2.2.1.
BTW, the best place for Boost.Python questions is the C++-sig: http://www.boost.org/more/mailing_lists.htm#cplussig -- Dave Abrahams Boost Consulting www.boost-consulting.com
participants (3)
-
David Abrahams
-
Jeff Holle
-
Shukla, Nitin (Export)