[Tutor] Problems using a .dll file under windows
Keule
m_konermann@gmx.de
Fri, 01 Feb 2002 04:22:28 +0100
--------------010006080804040709040704
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Hi @ All !
I generated a simannealfilec.dll with SWIG and also a python shadow
class named simannealfile.py. After running the python shadow class
simannealfile.py the following Error appers :
PythonWin 2.1.1 (#20, Jul 20 2001, 01:19:29) [MSC 32 bit (Intel)] on win32.
Portions Copyright 1994-2001 Mark Hammond ( MarkH@ActiveState.com ) -
see 'Help/About PythonWin' for further copyright information.
>>> Traceback (most recent call last):
File "C:\Python21\Pythonwin\pywin\framework\scriptutils.py" , line
394, in ImportFile
exec codeObj in __main__.__dict__
File "<auto import>", line 1, in ?
File "C:\Arbeit_Diplomarbeit\__Optimierer\AG_TEMdll\simannealfile.py"
, line 2, in ?
import simannealfilec
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.
Traceback (most recent call last):
File "C:\Python21\Pythonwin\pywin\framework\scriptutils.py" , line
301, in RunScript
exec codeObject in __main__.__dict__
File "C:\Arbeit_Diplomarbeit\__Optimierer\AG_TEMdll\simannealfile.py"
, line 2, in ?
import simannealfilec
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.
>>>
The File simannealfile.py looks in the beginning like that :
# This file was created automatically by SWIG.
import simannealfilec
class simanneal_varlist:
def __init__(self,*args):
self.this = apply(simannealfilec.new_simanneal_varlist,args)
self.thisown = 1
def __del__(self,simannealfilec=simannealfilec):
if getattr(self,'thisown',0):
simannealfilec.delete_simanneal_varlist(self)
def cleany(*args):
val = apply(simannealfilec.simanneal_varlist_cleany,args)
return val
I absolutly didīnt know whatīs going wrong.
Have anyone got an idea ?
Thanks for your help
Marcus
--------------010006080804040709040704
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<html>
<head>
</head>
<body>
Hi @ All !<br>
<br>
I generated a simannealfilec.dll with SWIG and also a python shadow class
named simannealfile.py. After running the python shadow class simannealfile.py
the following Error appers :<br>
<br>
<i>PythonWin 2.1.1 (#20, Jul 20 2001, 01:19:29) [MSC 32 bit (Intel)] on win32.<br>
Portions Copyright 1994-2001 Mark Hammond (<a class="moz-txt-link-abbreviated" href="mailto:MarkH@ActiveState.com">
MarkH@ActiveState.com</a>
) - see 'Help/About PythonWin' for further copyright information.<br>
>>> Traceback (most recent call last):<br>
File <a class="moz-txt-link-rfc2396E" href="C:%5CPython21%5CPythonwin%5Cpywin%5Cframework%5Cscriptutils.py">
"C:\Python21\Pythonwin\pywin\framework\scriptutils.py"</a>
, line 394, in ImportFile<br>
exec codeObj in __main__.__dict__<br>
File "<auto import>", line 1, in ?<br>
File <a class="moz-txt-link-rfc2396E" href="C:%5CArbeit_Diplomarbeit%5C__Optimierer%5CAG_TEMdll%5Csimannealfile.py">
"C:\Arbeit_Diplomarbeit\__Optimierer\AG_TEMdll\simannealfile.py"</a>
, line 2, in ?<br>
import simannealfilec<br>
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.<br>
Traceback (most recent call last):<br>
File <a class="moz-txt-link-rfc2396E" href="C:%5CPython21%5CPythonwin%5Cpywin%5Cframework%5Cscriptutils.py">
"C:\Python21\Pythonwin\pywin\framework\scriptutils.py"</a>
, line 301, in RunScript<br>
exec codeObject in __main__.__dict__<br>
File <a class="moz-txt-link-rfc2396E" href="C:%5CArbeit_Diplomarbeit%5C__Optimierer%5CAG_TEMdll%5Csimannealfile.py">
"C:\Arbeit_Diplomarbeit\__Optimierer\AG_TEMdll\simannealfile.py"</a>
, line 2, in ?<br>
import simannealfilec<br>
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.<br>
>>> <br>
<br>
</i>The File simannealfile.py looks in the beginning like that :<br>
<i><br>
# This file was created automatically by SWIG.<br>
import simannealfilec<br>
class simanneal_varlist:<br>
def __init__(self,*args):<br>
self.this = apply(simannealfilec.new_simanneal_varlist,args)<br>
self.thisown = 1<br>
<br>
def __del__(self,simannealfilec=simannealfilec):<br>
if getattr(self,'thisown',0):<br>
simannealfilec.delete_simanneal_varlist(self)<br>
def cleany(*args):<br>
val = apply(simannealfilec.simanneal_varlist_cleany,args)<br>
return val</i><br>
<br>
I absolutly did´nt know what´s going wrong.<br>
Have anyone got an idea ?<br>
<br>
Thanks for your help<br>
Marcus
</body>
</html>
--------------010006080804040709040704--