Example error
therealcyber71 opened this issue · 2 comments
therealcyber71 commented
Specification
- pywebview version: 3.6.3
- operating system: windows 11
- web renderer: none mentioned
Description
II tried the example on the docs site and got this error:
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at System.Windows.Forms.Control.get_CacheTextInternal()
at System.Windows.Forms.Control.get_Text()
at System.Windows.Forms.Control.set_Text(String value)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Python.Runtime.PythonException.ThrowLastAsClrException()
at Python.Runtime.Dispatcher.TrueDispatch(Object[] args)
at Python.Runtime.Dispatcher.Dispatch(Object[] args)
at __System_Threading_ThreadStartDispatcher.Invoke()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Practicalities
-
YES/NO I am willing to work on this issue myself NO
-
YES/NO I am prepared to support this issue financially NO
Fate0x01 commented
I have encountered similar problems, and my solution is
after uninstaller clr-loader and pythonnet
pip install pythonnet==3.0.0a2
pip install clr-loader==0.1.7
therealcyber71 commented
Hey, thanks a lot, this solution worked!!