<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>python27.dll is likely not in your path.  So it can't dynamically link to it.  There are a lot of ways to remedy that.</div><div><br></div><div>Adding your python 2.7 install to your path.</div><div><br></div><div>Or moving the pythonnet binaries into your python 2.7 install.</div><div><br></div><div>You could also edit the .config file for the pythonnet install to give it an absolute path to the python2.7 on your system.</div><div><br></div><div>Adding python2.7 to your system directory probably isn't the best idea.  If python 2.7 were meant to be installed to the "system" it would install there itself.</div><div><br></div><div>A long time ago, I used to make it a point to install my python from "activestate" installers rather than the default python installers, because their installer set up the bin and path variables for me and made sure that python was available system wide.</div><div><br></div><div>-brad</div><br><div><div>On Mar 22, 2013, at 4:44 PM, Seungweon Park <<a href="mailto:swpark71@gmail.com">swpark71@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hello,</div><div><br></div><div>I just downloaded pythonnet-2.0-Beta0-clr4.0_140_py27.zip from <a href="http://sourceforge.net/projects/pythonnet/">http://sourceforge.net/projects/pythonnet/</a>, and extract to c:\temp and ran nPython.exe, got below error.</div>
<div><br></div><div>Current my test machine has </div><div>Windows 2008 R2 SP1 with Python 2.7.3 (32bit).</div><div><br></div><div>When looked the error, and googled it. someone says I need to copy python27.dll into c:\windows\system32. However, I can't find the file. Any idea?</div>
<div><br></div><div>Thank you,</div><div>Spark,</div><div><br></div><div><div>C:\temp\pythonnet20>nPython.exe</div><div><br></div><div>Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'python27': The specified module could not be found</div>
<div>. (Exception from HRESULT: 0x8007007E)</div><div>   at Python.Runtime.Runtime.Py_Initialize()</div><div>   at Python.Runtime.Runtime.Initialize() in D:\Users\Barton\Documents\Visual Studio 2010\Projects\PySharp\trunk\pythonn</div>
<div>et\src\runtime\runtime.cs:line 78</div><div>   at Python.Runtime.PythonConsole.Main(String[] args) in D:\Users\Barton\Documents\Visual Studio 2010\Projects\PySharp\</div><div>trunk\pythonnet\src\console\pythonconsole.cs:line 21</div>
</div><div><br></div>
_________________________________________________<br><a href="http://Python.NET">Python.NET</a> mailing list - <a href="mailto:PythonDotNet@python.org">PythonDotNet@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/pythondotnet">http://mail.python.org/mailman/listinfo/pythondotnet</a></blockquote></div><br></body></html>