tkwebview2
tkwebview2 copied to clipboard
使用PyWebview>=4.0初始化错误
在使用tkwebview2==3.5.0&PyWebview>=4.0时, 发生
[pywebview] WebView2 initialization failed with exception:
(0x800700AA): 请求的资源在使用中。 (异常来自 HRESULT:0x800700AA)
在 System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
在 Microsoft.Web.WebView2.Core.CoreWebView2Environment.<CreateCoreWebView2ControllerAsync>d__84.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在 Microsoft.Web.WebView2.WinForms.WebView2.<InitCoreWebView2Async>d__25.MoveNext()
降级到tkwebview2==3.4.0&PyWebview==3.7可正常运行. 此时Python==3.10.11, Edge==115.0.1901.200, 已使用管理员权限运行进程