You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I downloaded the latest source code from the "develop" branch.
I then opened pythonnet.sln, and, in the Visual Studio Configuration Manager changed the active solution configuration to "ReleaseWin" and the active solution platform to "x86".
I then rebuilt the solution, and copied Python.Runtime.dll and clr.pyd to my Python 2.7 directory (C:\Python27).
I then opened a command prompt and ran python.exe.
In the interpreter, I then entered "import clr" and got the following error:
Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'Python.Runtime, Version=4.0.0.1, Culture=neutral, PublicKeyToken=5000fea6cba702dd' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at clrModule.initclr()
This is a clean installation of python 2.7.8. I have checked that there are no other copies of Python.Runtime.dll anywhere.
The text was updated successfully, but these errors were encountered:
Build using setup.py if you're not sure what you're doing. You probably have not changed some of the project settings to reflect your version of python correctly. Building via setup.py will also copy the various output dlls into the correct place so you can install and import them, building via the solution will not.
I downloaded the latest source code from the "develop" branch.
I then opened pythonnet.sln, and, in the Visual Studio Configuration Manager changed the active solution configuration to "ReleaseWin" and the active solution platform to "x86".
I then rebuilt the solution, and copied Python.Runtime.dll and clr.pyd to my Python 2.7 directory (C:\Python27).
I then opened a command prompt and ran python.exe.
In the interpreter, I then entered "import clr" and got the following error:
Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'Python.Runtime, Version=4.0.0.1, Culture=neutral, PublicKeyToken=5000fea6cba702dd' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at clrModule.initclr()
This is a clean installation of python 2.7.8. I have checked that there are no other copies of Python.Runtime.dll anywhere.
The text was updated successfully, but these errors were encountered: