System.BadImageFormatException' in Python.Runtime.dll
I'm running this in Visual Studio 2015 compiled in x86 mode. But I'm still getting: 'EmbeddPython.vshost.exe' (CLR v4.0.30319: EmbeddPython.vshost.exe): Loaded 'C:\Users\mjphieli\Documents\Visual Studio 2015\Projects\EmbeddPython\EmbeddPython\bin\x86\Release\Python.Runtime.dll'. Cannot find or open the PDB file. 'EmbeddPython.vshost.exe' (CLR v4.0.30319: EmbeddPython.vshost.exe): Loaded '__CodeGenerator_Assembly'. Exception thrown: 'System.BadImageFormatException' in Python.Runtime.dll 'EmbeddPython.vshost.exe' (CLR v4.0.30319: EmbeddPython.vshost.exe): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Symbols loaded. The program '[56912] EmbeddPython.vshost.exe' has exited with code -1 (0xffffffff). -- Best Regards, Mariano
We need more info such as your Python version (python --version), .NET target framework, Windows version and bitness, minimal reproducible VS solution with all dependencies. It is likely that you are using 64-bit version of pythonnet or CPython. On Wed, May 17, 2017 at 6:50 PM, Mariano Phielipp <mphielipp@gmail.com> wrote:
I'm running this in Visual Studio 2015 compiled in x86 mode. But I'm still getting:
'EmbeddPython.vshost.exe' (CLR v4.0.30319: EmbeddPython.vshost.exe): Loaded 'C:\Users\mjphieli\Documents\Visual Studio 2015\Projects\EmbeddPython\EmbeddPython\bin\x86\Release\Python.Runtime.dll'. Cannot find or open the PDB file. 'EmbeddPython.vshost.exe' (CLR v4.0.30319: EmbeddPython.vshost.exe): Loaded '__CodeGenerator_Assembly'. Exception thrown: 'System.BadImageFormatException' in Python.Runtime.dll 'EmbeddPython.vshost.exe' (CLR v4.0.30319: EmbeddPython.vshost.exe): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System. Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Symbols loaded. The program '[56912] EmbeddPython.vshost.exe' has exited with code -1 (0xffffffff).
-- Best Regards, Mariano
_________________________________________________ Python.NET mailing list - PythonDotNet@python.org https://mail.python.org/mailman/listinfo/pythondotnet
participants (2)
-
Denis Akhiyarov
-
Mariano Phielipp