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 am able to run a python command the first time (after opening a pwsh prompt).
But once, that first command has run, on the second command I am receiving the following Exception, which seems to crash pwsh.
PowerShell 7.4.0
PS [17:22:18] C:\Users>Use-Python { Invoke-Python-Code "print('Hello, from Python!')" }
Hello,from Python!
PS [17:22:22] C:\Users>Use-Python { Invoke-Python-Code "print('Hello, from Python!')" }
SetValueInvocationException: Exception setting "PythonDLL": "This property must be set before runtime is initialized"
Fatal Python error: PyEval_SaveThread: the function must be called with the GIL held, but the GIL is released (the current Python thread state is NULL)
Python runtime state: initialized
Current thread 0x00003e48 (most recent call first):
<no Python frame>
[processexitedwithcode3221226505 (0xc0000409)]
The text was updated successfully, but these errors were encountered:
Hey
I am able to run a python command the first time (after opening a pwsh prompt).
But once, that first command has run, on the second command I am receiving the following Exception, which seems to crash pwsh.
The text was updated successfully, but these errors were encountered: