473,386 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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.
...patience...
...found 1915 targets...
...using 1 temp target...
...updating 2 targets...
...using <pbin\msvc-8.0express\debug
\threading-multi>hello_ext.pyd...

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
hello.py
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
problem.
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 2657

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Cousin Stanley | last post by:
I __had__ a __working__ installation of the GTK Runtime and PyGTK using Python23 under Win98, but managed to muck it up, I think but couldn't swear to it, with a separate install of wGlade ...
0
by: Ben McBride | last post by:
I'm trying to wrap a DLL, using SWIG, for an extension module and am having an obscure ImportError. I've been unable to find anything through the SWIG documentation and an extensive google search....
0
by: Ajay | last post by:
hi! I wrote a simple C code to work with OpenSSL and it builds fine. however when i import it, i get an error ImportError: DLL load failed. The specified module could not be found. the file...
11
by: Fred | last post by:
I hope someone can help me with the below problem... Thanks, Fred My enviroment: -------------------------- Slackware Linux 10.2 Python 2.4.2 MySql version 4.1.14
2
by: Adam Blinkinsop | last post by:
I'm writing a set of modules to monitor remote system services, and I'm having a problem running my test scripts. When I pass the scripts into python, like so: -- $ PYTHONPATH="${TARGET_DIR}"...
1
by: kyosohma | last post by:
Hi, Recently I began my journey into creating executables. I am using Andrea Gavana's cool GUI2EXE program which works very well and that is a GUI for py2ece. I am also using Inno Setup to...
1
by: Sjoerd | last post by:
Hello! When I try to import the MySQLdb lib python generates an error: Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import MySQLdb File...
2
by: Simon Forman | last post by:
Hello, I just installed Matplotlib (and NumPy) on a windows XP machine, and I'm getting the following traceback when I try to use the TkAgg backend. Python 2.5.1 (r251:54863, Apr 18 2007,...
1
by: manasonnet | last post by:
ava.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.