- Notifications
You must be signed in to change notification settings - Fork752
Closed
Description
Environment
- Pythonnet version:2.4
- Python version:2.7.13 32bit
- Operating System: Win7 sp1 64bit
Details
Pythonnet compiled under VS2015. Demo packages work fine (wordpad.py etc) but I get an error trying to call python from .net using the Python.Runtime.dll.
When calling PythonEngine.Initialize(); the following error occurs in runtime.cs Line 188.
"A call to PInvoke function 'Python.Runtime!Python.Runtime.Runtime::PyDict_GetItemString' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature."
I have confirmed that the version being compiled is for windows 32bit and Python 2.7. Any suggestion much appreciated.
Metadata
Metadata
Assignees
Labels
No labels