Thanks, Dino, I'm looking at that. (It's a .pyc, btw)<br><br>A bit of background - I've got some Python script running server-side which does screen-scraping based on definitions in a MS SQL Server db, and I'm trying to come up with a maintenance app where an administrator can define the screen-scraping, and view the effect of their definition. The server script uses COM ADO through the win32 extensions, and the admin app is in .Net. I was hoping to be able to use the Python classes as-is, but I can modify the .py file which will live with the webapp slightly so that it uses .Net ADO, or even COM ADO.
<br><br>It's a great product, by the way. Just one thing - I've been reading about how IronPython is pretty fast, but I've come across an area where it's quite slow. It seems that creating a BeautifulSoup object to parse a web page is slow; not sure if that's something you'd like to benchmark.
<br><br>Cheers,<br>Mike<br><br><div><span class="gmail_quote">On 6/28/06, <b class="gmail_sendername">Dino Viehland</b> &lt;<a href="mailto:dinov@exchange.microsoft.com">dinov@exchange.microsoft.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>




<div>
<div><font color="#000000" face="Tahoma" size="2">We don't support compiled Python modules (PYD's or PYC's, I'm not sure which one pywin32 is though I'd bet PYD) and isn't anything we'll support before 1.0.&nbsp; But if it's access to Win32 you want, there's a large
 amount of Win32 exposed through the .NET APIs that you can access directly by importing the appropriate namespaces (and adding references to the appropriate assemblies if it's not mscorlib or System).&nbsp;
</font></div>
<div><font color="#000000" face="Tahoma" size="2"></font>&nbsp;</div>
<div><font color="#000000" face="Tahoma" size="2">That may or may not work for you depending on what your goals are.&nbsp;
</font></div>
<div><font face="tahoma" size="2"></font>&nbsp;</div>
<div><font face="tahoma" size="2"></font><font face="tahoma" size="2"></font>&nbsp;</div>
<div>
<hr>
<font face="Tahoma" size="2"><b>From:</b> <a href="mailto:users-bounces@lists.ironpython.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">users-bounces@lists.ironpython.com</a> On Behalf Of Mike Raath
<br>
<b>Sent:</b> Tuesday, June 27, 2006 10:21 PM<br>
<b>To:</b> <a href="mailto:users@lists.ironpython.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">users@lists.ironpython.com</a><br>
<b>Subject:</b> [IronPython] &quot;no module named win32api&quot; using PyWin32-208<br>
</font><br>
</div></div><div><span class="e" id="q_10c193168cea36c0_1">
<div></div>
<div>I posted this on the <span><b><a href="http://groups.google.co.za/group/comp.lang.python" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">comp.lang.python</a>&nbsp;
</b></span>list yesterday but am not sure if that is the correct list to have posted on, so apologies for the cross-post but I would really appreciate some help on this.<br>
<br>
<p><font face="Courier, Monospaced">I have Python 2.4 installed on my local machine in c:\Python24. I have
<br>
also downloaded the python for windows extensions installer <br>
pywin32-208.win32-py2.4.exe and installed this to <br>
C:\Python24\Lib\site-packages <br>
</font></p>
<p><font face="Courier, Monospaced">Trying to run a python script through a C# console app is causing me
<br>
problems: the last line of code in the following block results in a no <br>
module named win32ap error. I'm not sure if this is because there is no <br>
win32api.py in the win32 folder off site-packages, just a win32api.pyc <br>
file. <br>
</font></p>
<p><font face="Courier, Monospaced">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m_engine = new PythonEngine();
<br>
</font></p>
<p><font face="Courier, Monospaced">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m_engine.AddToPath(&quot;C:\\Python24\\DLLs&quot;);
<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m_engine.AddToPath(&quot;C:\\Python24\\lib&quot;); <br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m_engine.AddToPath(&quot;C:\\Python24\\lib\\plat-win&quot;); <br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m_engine.AddToPath(&quot;C:\\Python24\\lib\\lib-tk&quot;); <br>
</font></p>
<p><font face="Courier, Monospaced">m_engine.AddToPath(&quot;C:\\Python24\\Lib\\site-packages\\pythonwin&quot;);
<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m_engine.AddToPath(&quot;C:\\Python24&quot;); <br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m_engine.AddToPath(&quot;C:\\Python24\\lib\\site-packages&quot;); <br>
</font></p>
<p><font face="Courier, Monospaced">m_engine.AddToPath(&quot;C:\\Python24\\lib\\site-packages\\win32&quot;);
<br>
</font></p>
<p><font face="Courier, Monospaced">m_engine.AddToPath(&quot;C:\\Python24\\lib\\site-packages\\win32\\lib&quot;);
<br>
</font></p>
<p><font face="Courier, Monospaced">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m_engine.Execute(&quot;from win32api import win32api&quot;);
<br>
</font></p>
<p><font face="Courier, Monospaced">I have added all the addtopaths to get the path to match the sys.path I
<br>
see in a normal python console which can successfully import the <br>
module. <br>
</font></p>
<p><font face="Courier, Monospaced">Incidentally, I have tried making the last line
<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;m_engine.Execute(&quot;import win32api&quot;); <br>
with no luck. <br>
</font></p>
<p><font face="Courier, Monospaced">Can the win32 extensions handle compiled python modules? If not how can
<br>
I get it to work? <br>
</font></p>
<font face="Courier, Monospaced">Thanks, <br>
Mike </font><br>
</div>
</span></div><div></div>


</div><br>_______________________________________________<br>users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:users@lists.ironpython.com">users@lists.ironpython.com</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br><br><br></blockquote></div><br>