469,917 Members | 1,725 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,917 developers. It's quick & easy.

Re: ImportError: DLL load failed

Tony May wrote:
I'm having trouble importing when I run in Python. The hello world program
passes the test during the bjam build but gives an error about loading
the dll
when I import from a python script.

first the test from running bjam.
...found 1915 targets...
...using 1 temp target...
...updating 2 targets...
...using <pbin\msvc-8.0express\debug

capture-output bin\hello.test\msvc-8.0express\debug\threading-multi\hello
1 file(s) copied.
**passed** bin\hello.test\msvc-8.0express\debug\threading-multi\hello.test
...updated 2 targets...

then trying to run the script from python
I copied the pyd file and the rest of the output dir to c:\python25\dlls

C:\Program Files\boost\boost_1_35_0\libs\python\example\tutor ial>python
Traceback (most recent call last):
File "hello.py", line 6, in <module>
import hello_ext
ImportError: DLL load failed: This application has failed to start
because the a
pplication configuration is incorrect. Reinstalling the application may
fix this
The DLL that's actually being imported by your script is not a Python
extension module, as the modules initialisation function can't be found.

Use the -v option on the Python command line to identify which DLL is
actually being imported. You can then decide to move/rename.delete it or
your own module as best fits your circumstances.

Andrew I MacIntyre "These thoughts are mine alone..."
E-mail: an*****@bullseye.apana.org.au (pref) | Snail: PO Box 370
an*****@pcug.org.au (alt) | Belconnen ACT 2616
Web: http://www.andymac.org/ | Australia
Jun 28 '08 #1
0 2418

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Cousin Stanley | last post: by
reply views Thread by Ben McBride | last post: by
reply views Thread by Ajay | last post: by
11 posts views Thread by Fred | last post: by
2 posts views Thread by Adam Blinkinsop | last post: by
1 post views Thread by kyosohma | last post: by
1 post views Thread by Sjoerd | last post: by
2 posts views Thread by Simon Forman | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.