GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Error using WinPython 3.10 · winpython/winpython · Discussion #1065

Error using WinPython 3.10 #1065

Unanswered
alex-g-axion asked this question in Q&A
Error using WinPython 3.10 #1065
@alex-g-axion alex-g-axion
Apr 4, 2022 · 2 comments · 2 replies
Return to top
Discussion options
  • Uh oh!

    There was an error while loading. Please reload this page.

alex-g-axion
Apr 4, 2022

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
All reactions

Replies: 2 comments · 2 replies

Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

nmarc
Apr 4, 2022

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
All reactions
1 reply
@alex-g-axion
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

alex-g-axion Apr 4, 2022
Author

Which version? I do have VS 2015-2022, VS 2012, VS 2010, and VS2008 installed.

All reactions
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

stonebig
Apr 4, 2022
Maintainer

works for me
image

so
(*) For recent WinPython, Windows 8..10 users may have to install missing system DLL Microsoft Visual C++ Redistributable for Visual Studio 2017..2019 (vc_redist_x86.exe for WinPython 32bit, vc_redist_x64.exe for Winpython 64bit)

You must be logged in to vote
All reactions
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
3 participants
@alex-g-axion @stonebig @nmarc
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.