Hi, I ran into exactly the same problem as you but I did manage to solve it by recompiling the entire project in visual c# express. Unfortunately, I don't recall exactly what I did and I don't have my laptop handy right now, but I can find out later. <br> <br> In the meantime, you can try the recompile, and, to modify an existing installation, copy the .pyd file to C:\Python25\DLLs\ and the .dll file to C:\Python25\. Then it should "just work".<br> <br>Cheers,<br><br>Feihong<br><br><b><i>Paul Harter <paul@lumidium.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hi,<br><br>We are tring to move to python 2.5. and are having trouble getting<br>pythonDotNet to import using the pre-built binaries. When we use the<br>python.exe which is part of the pre-built binaries "import clr" can<br>execute without a problem. However trying to use an existing<br>python.exe (e.g. the standard installed
one, but we also need to use<br>it embedded) we always get the following error:<br><br>ImportError: dynamic module does not define init function (initclr)<br><br>What magic does the included python.exe perform, or what are we doing<br>wrong in our installation.<br><br>We have tried:<br><br> * copying Python.runtime.dll and clr.pyd to the python install path<br>(where python.exe lives), or both to the DLLs directory, or clr.pyd to<br>the site-packages directory and Python.runtime.dll to one of the above<br>locations.<br> * We've also tried having them in a separate directory, and running<br>python.exe from that directory.<br><br>(The readme is not very explanatory on how to modify an existing<br>python installation).<br><br>thanks for your help<br><br>Paul & Tim<br>_________________________________________________<br>Python.NET mailing list - PythonDotNet@python.org<br>http://mail.python.org/mailman/listinfo/pythondotnet<br></blockquote><br><p> 
<hr size=1>Take the Internet to Go: Yahoo!Go puts the <a href="http://us.rd.yahoo.com/evt=48253/*http://mobile.yahoo.com/go?refer=1GNXIC">Internet in your pocket:</a> mail, news, photos & more.