Was trying to experiment with python for dot net so as to interact from dot net code with python libraries
_TODO_
Just got the code from github. Executed the code adding debugger at Main function.
at Python.Runtime.Runtime.Py_IsInitialized()
at Python.Runtime.Runtime.Initialize() in C:\Users\Milind Kayangude\Desktop\Office_Documents\Python_Research\pythonnet-master\pythonnet-master\src\runtime\runtime.cs:line 214
at Python.Runtime.PythonEngine.Initialize(IEnumerable`1 args, Boolean setSysArgv) in C:\Users\Milind Kayangude\Desktop\Office_Documents\Python_Research\pythonnet-master\pythonnet-master\src\runtime\pythonengine.cs:line 167
at Python.Runtime.PythonEngine.Initialize(Boolean setSysArgv) in C:\Users\Milind Kayangude\Desktop\Office_Documents\Python_Research\pythonnet-master\pythonnet-master\src\runtime\pythonengine.cs:line 145
at Python.Runtime.PythonEngine.Initialize() in C:\Users\Milind Kayangude\Desktop\Office_Documents\Python_Research\pythonnet-master\pythonnet-master\src\runtime\pythonengine.cs:line 140
at Python.Runtime.PythonConsole.Main(String[] args) in C:\Users\Milind Kayangude\Desktop\Office_Documents\Python_Research\pythonnet-master\pythonnet-master\src\console\pythonconsole.cs:line 35
@milindk you installed pythonnet for python 2.7, but you need pythonnet built for python 3.6:
https://github.com/pythonnet/pythonnet/wiki/Installation
https://github.com/pythonnet/pythonnet/wiki/Troubleshooting-on-Windows,-Linux,-and-OSX
Closing, since no feedback is received after posting instructions. Please report back if you get any other issue!
@denfromufa I have run into the same issue, running Windows 10, python3.6, and the current version of pythonnet from github. I confirmed that python3.6 is in my PATH, and is set as my environment on Visual Studio. After building from source, I tried running nPython.exe, and got the same error seen above.
Did you read the troubleshooting wiki?
On Thu, Nov 30, 2017, 2:44 PM Joshua Engelman notifications@github.com
wrote:
@denfromufa https://github.com/denfromufa I have run into the same
issue, running Windows 10, python3.6, and the current version of pythonnet
from github. I confirmed that python3.6 is in my PATH, and is set as my
environment on Visual Studio. After building from source, I tried running
nPython.exe, and got the same error seen above.—
You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub
https://github.com/pythonnet/pythonnet/issues/566#issuecomment-348315340,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHgZ5eScEt5EGEBpJJA-ry6NAjeRIS94ks5s7xPCgaJpZM4QLH_O
.
@denfromufa switching to the ReleaseWinPY3 build config worked, thanks!
@jengelman great, don't forget to star this repo!
Most helpful comment
@denfromufa switching to the ReleaseWinPY3 build config worked, thanks!