Open 534146825 opened 4 weeks ago
import webview
try: webview.create_window('Example', 'http://example.com') webview.start() except Exception as e: print(f"An error occurred: {e}")
eorr: [pywebview] WebView2 initialization failed with exception: (0x80080005): 服务器运行失败 (异常来自 HRESULT:0x80080005 (CO_E_SERVER_EXEC_FAILURE)) 在 System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) 在 Microsoft.Web.WebView2.Core.CoreWebView2Environment.d8.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 Microsoft.Web.WebView2.WinForms.WebView2.d26.MoveNext()
See https://github.com/MicrosoftEdge/WebView2Feedback/issues/4884
Specification
Description
import webview
try: webview.create_window('Example', 'http://example.com') webview.start() except Exception as e: print(f"An error occurred: {e}")
eorr: [pywebview] WebView2 initialization failed with exception: (0x80080005): 服务器运行失败 (异常来自 HRESULT:0x80080005 (CO_E_SERVER_EXEC_FAILURE)) 在 System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) 在 Microsoft.Web.WebView2.Core.CoreWebView2Environment.d8.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在 Microsoft.Web.WebView2.WinForms.WebView2.d 26.MoveNext()