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. 
 
 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".
 
Cheers,

Feihong

Paul Harter <[EMAIL PROTECTED]> wrote: Hi,

We are tring to move to python 2.5. and are having trouble getting
pythonDotNet to import using the pre-built binaries. When we use the
python.exe which is part of the pre-built binaries "import clr" can
execute without a problem. However trying to use an existing
python.exe (e.g. the standard installed one, but we also need to use
it embedded) we always get the following error:

ImportError: dynamic module does not define init function (initclr)

What magic does the included python.exe perform, or what are we doing
wrong in our installation.

We have tried:

 * copying Python.runtime.dll and clr.pyd to the python install path
(where python.exe lives), or both to the DLLs directory, or clr.pyd to
the site-packages directory and Python.runtime.dll to one of the above
locations.
 * We've also tried having them in a separate directory, and running
python.exe from that directory.

(The readme is not very explanatory on how to modify an existing
python installation).

thanks for your help

Paul & Tim
_________________________________________________
Python.NET mailing list - PythonDotNet@python.org
http://mail.python.org/mailman/listinfo/pythondotnet


       
---------------------------------
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 
_________________________________________________
Python.NET mailing list - PythonDotNet@python.org
http://mail.python.org/mailman/listinfo/pythondotnet

Reply via email to