GeezerVison is showing github.com — Error using WinPython 3.10 · winpython/winpython · Discussion #1065
Error using WinPython 3.10
#1065
Apr 4, 2022
·
2 comments
·
2 replies
Discussion options
-
Uh oh!
There was an error while loading. Please reload this page.
|
Hello!
I am getting an error trying to run a simple python program from Spyder IDE.
import clr
print("Hello world")
When I try to run it I get this error:
Traceback (most recent call last):
File "c:\apps\wpy64-31020\python-3.10.2.amd64\lib\site-packages\clr.py", line 6, in
load()
File "C:\apps\WPy64-31020\python-3.10.2.amd64\lib\site-packages\pythonnet_init_.py", line 44, in load
raise RuntimeError("Failed to initialize Python.Runtime.dll")
RuntimeError: Failed to initialize Python.Runtime.dll
Failed to initialize pythonnet: System.InvalidOperationException: This property must be set before runtime is initialized
at Python.Runtime.Runtime.set_PythonDLL(String value)
at Python.Runtime.Loader.Initialize(IntPtr data, Int32 size)
at Python.Runtime.Runtime.set_PythonDLL(String value)
at Python.Runtime.Loader.Initialize(IntPtr data, Int32 size)
I am using winpython 3.10.2 on Windows 11.
What am I doing wrong?
|
You must be logged in to vote
Replies:
2 comments
·
2 replies
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
you have to Install a Visual Studio Redistributable package.
alex-g-axion ***@***.***> schrieb am Mo., 4. Apr. 2022, 20:15:
…
Hello!
I am getting an error trying to run a simple python program from Spyder
IDE.
import clr
print("Hello world")
When I try to run it I get this error:
Traceback (most recent call last):
File "c:\apps\wpy64-31020\python-3.10.2.amd64\lib\site-packages\clr.py",
line 6, in
load()
File "C:\apps\WPy64-31020\python-3.10.2.amd64\lib\site-packages\pythonnet_
*init*_.py", line 44, in load
raise RuntimeError("Failed to initialize Python.Runtime.dll")
RuntimeError: Failed to initialize Python.Runtime.dll
Failed to initialize pythonnet: System.InvalidOperationException: This
property must be set before runtime is initialized
at Python.Runtime.Runtime.set_PythonDLL(String value)
at Python.Runtime.Loader.Initialize(IntPtr data, Int32 size)
at Python.Runtime.Runtime.set_PythonDLL(String value)
at Python.Runtime.Loader.Initialize(IntPtr data, Int32 size)
I am using winpython 3.10.2 on Windows 11.
What am I doing wrong?
—
Reply to this email directly, view it on GitHub
< #1065>, or unsubscribe
< https://github.com/notifications/unsubscribe-auth/AECBUVAOBVUPSP6OBN2U7ELVDMWU5ANCNFSM5SQK63HA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
You must be logged in to vote
1 reply
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
Which version? I do have VS 2015-2022, VS 2012, VS 2010, and VS2008 installed.
|
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
You must be logged in to vote
0 replies