[Tutor] Binding problems with a new .dll file under windowsXP

Keule m_konermann@gmx.de
Wed, 30 Jan 2002 17:34:53 +0100


--------------020709000701010500090308
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi @ All !

I´ve got an .dll file, produced by Visual C++ named simannealfilec.dll 
and i also produced a shadow class named simannealfile.py.
The article in the `SWIG Users Guide` says, that the only thing i have 
to do for using the new extension module is, that i have to import it in 
my main program by the usual
import routine, but after running it under Pythonwin the following error 
appears:


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 396, 
in ImportFile
    reload(sys.modules[modName])
  File "C:\Arbeit_Diplomarbeit\__Optimierer\AG_TEMdll\mainko.py", line 
2, in ?
    import simannealfile
  File "C:\Arbeit_Diplomarbeit\__Optimierer\AG_TEMdll\simannealfile.py", 
line 2, in ?
    import simannealfilec
ImportError: No module named simannealfilec
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\mainko.py", line 
5, in ?
    instance1=simannealfile.simulated_annealing
AttributeError: 'simannealfile' module has no attribute 
'simulated_annealing'
 >>>

I think there are binding problems with the new simannealfilec.dll .
Have anyone got an idea ?

Thanks a lot
Marcus

--------------020709000701010500090308
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html>
<head>
</head>
<body>
Hi @ All !<br>
<br>
I&acute;ve got an .dll file, produced by Visual C++ named simannealfilec.dll and
i also produced a shadow class named simannealfile.py.<br>
 The article in the `SWIG Users Guide` says, that the only thing i have to 
do for using the new extension module is, that i have to import it in my main
program by the usual<br>
 import routine, but after running it under Pythonwin the following error 
appears:<br>
<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>
&gt;&gt;&gt; Traceback (most recent call last):<br>
&nbsp; File <a class="moz-txt-link-rfc2396E" href="C:\Python21\Pythonwin\pywin\framework\scriptutils.py">"C:\Python21\Pythonwin\pywin\framework\scriptutils.py"</a>, line 396,
in ImportFile<br>
&nbsp;&nbsp;&nbsp; reload(sys.modules[modName])<br>
&nbsp; File <a class="moz-txt-link-rfc2396E" href="C:\Arbeit_Diplomarbeit\__Optimierer\AG_TEMdll\mainko.py">"C:\Arbeit_Diplomarbeit\__Optimierer\AG_TEMdll\mainko.py"</a>, line 2,
in ?<br>
&nbsp;&nbsp;&nbsp; import simannealfile<br>
&nbsp; File <a class="moz-txt-link-rfc2396E" href="C:\Arbeit_Diplomarbeit\__Optimierer\AG_TEMdll\simannealfile.py">"C:\Arbeit_Diplomarbeit\__Optimierer\AG_TEMdll\simannealfile.py"</a>,
line 2, in ?<br>
&nbsp;&nbsp;&nbsp; import simannealfilec<br>
ImportError: No module named simannealfilec<br>
Traceback (most recent call last):<br>
&nbsp; File <a class="moz-txt-link-rfc2396E" href="C:\Python21\Pythonwin\pywin\framework\scriptutils.py">"C:\Python21\Pythonwin\pywin\framework\scriptutils.py"</a>, line 301,
in RunScript<br>
&nbsp;&nbsp;&nbsp; exec codeObject in __main__.__dict__<br>
&nbsp; File <a class="moz-txt-link-rfc2396E" href="C:\Arbeit_Diplomarbeit\__Optimierer\AG_TEMdll\mainko.py">"C:\Arbeit_Diplomarbeit\__Optimierer\AG_TEMdll\mainko.py"</a>, line 5,
in ?<br>
&nbsp;&nbsp;&nbsp; instance1=simannealfile.simulated_annealing<br>
AttributeError: 'simannealfile' module has no attribute 'simulated_annealing'<br>
&gt;&gt;&gt; <br>
<br>
</i>I think there are binding problems with the new simannealfilec.dll .<br>
Have anyone got an idea ?<br>
<br>
Thanks a lot<br>
Marcus<br>
</body>
</html>

--------------020709000701010500090308--