-
Notifications
You must be signed in to change notification settings - Fork 767
Description
from @mphielipp
Hi, I install this package. But when I run the project I get a runtime error . I have a Anaconda Python 3.5.2 64 bits install. I use the Nuget PAckage 3.5. I have tried to run it with x86, Any CPU, amd x64. Any suggestions?
Now I'm running x86. Crash in this line Py.GIL().
There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "Python.Runtime, Version=2.3.0.0, Culture=neutral, processorArchitecture=x86", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. PythonNet2
Windows 10
I installed it using the "MAnage Nuget Package" option in Visual Studio 2005.
I changed the "Target Platform Option" in project settings to x86. But I still get this runtime error in the same line:
An unhandled exception of type 'System.BadImageFormatException' occurred in Python.Runtime.dll
Additional information: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)