473,767 Members | 2,226 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\debu g
\threading-multi>hello_ext .pyd...

capture-output bin\hello.test\ msvc-8.0express\debu g\threading-multi\hello
1 file(s) copied.
**passed** bin\hello.test\ msvc-8.0express\debu g\threading-multi\hello.tes t
...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\dll s

C:\Program Files\boost\boo st_1_35_0\libs\ python\example\ tutorial>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*****@bullsey e.apana.org.au (pref) | Snail: PO Box 370
an*****@pcug.or g.au (alt) | Belconnen ACT 2616
Web: http://www.andymac.org/ | Australia
Jun 28 '08 #1
0 2676

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

Similar topics

0
1319
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 for Windows which has since been un-installed .... I've also un-installed/re-installed both the GTK Runtime and PyGTK from the original packages .... GTK Runtime 2.2.4.1 PyGTK 2.0 win32
0
1093
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. The error message is: Traceback (most recent call last): File "apispa.py", line 5, in ? import _apispa ImportError: DLL load failed: The process cannot access the file because it is b
0
1931
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 is in Python/Lib directory. the code is below.
11
25629
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
2182
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}" python test.py -- I get an ImportError:
1
6382
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 create a script/executable. Anyway, today I am putting the program to the test with some volunteer testers and
1
2615
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 "C:\Python25\lib\site-packages\MySQLdb\__init__.py", line 19, in <module> import _mysql
2
5915
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, 08:51:08) on win32 Type "help", "copyright", "credits" or "license" for more information. Traceback (most recent call last):
1
6140
by: manasonnet | last post by:
ava.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.i2.ds.install.server.bootstrap.Setup.startInstall(Unknown Source) at com.i2.ds.install.server.bootstrap.Setup.main(Unknown Source) Caused by:...
0
9404
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10168
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9838
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8835
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6651
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5279
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.