Hi Bart,<div><br></div><div>the python26.dll is installed to the c:\windows\system32\ folder regardless of where your main Python installation goes to. I've seen similar problem when I have copied the Python26 folder to a new machine and forgot to take the python26.dll along. Check if you have the python26.dll in place and make sure you use the newly built python.exe interpreter.<br>
<br></div><div>It is indeed recommended to use the python.exe compiled with PythonNET as it does some additional initialization (see the implementation of the Initialize() method in pythonengine.cs code).</div><div><br><div class="gmail_quote">
2011/2/8 Bart Jonkers <span dir="ltr"><<a href="mailto:jonkersbart@gmail.com">jonkersbart@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
I followed the instructions from oleskii to build Python.NET for .NET4.0.<br>
Compilation wend fine but when I try to run python.exe I get the<br>
following error:<br>
<br>
Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'python26':<br>
The specified module could not be found. (Exception from HRESULT: 0x8007007E)<br>
at Python.Runtime.Runtime.Py_Initialize()<br>
at Python.Runtime.Runtime.Initialize()<br>
at Python.Runtime.PythonEngine.Initialize()<br>
at Python.Runtime.PythonConsole.Main(String[] args)<br>
<br>
I have installed Python in C:\Python26.<br>
Does any one an idea?<br>
<br>
Is it necessary to use the python.exe build by the project or is it<br>
also possible to use the original python executable?<br>
When I try to use the original python executable I get the following error:<br>
Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)] on<br>
win32<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
>>> import clr<br>
Traceback (most recent call last):<br>
File "<stdin>", line 1, in <module><br>
SystemError: dynamic module not initialized properly<br>
>>><br>
<br>
Regards,<br>
Bart<br>
_________________________________________________<br>
Python.NET mailing list - <a href="mailto:PythonDotNet@python.org">PythonDotNet@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/pythondotnet" target="_blank">http://mail.python.org/mailman/listinfo/pythondotnet</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>oleksii<br>
</div>