Skip to content

Load html triggers error - resolve_url() missing 1 required positional argument: 'should_serve' #562

Description

@abhishekmishra

Specification

  • pywebview version: 3.3.1
  • platform / version: win10/64-bit, python 3.8.3

Description

Trying to load html in a pywebview window triggers an exception. Let me know if you need further info, I can also help with debugging.

Sample run (taken from examples in documentation)

window = webview.create_window('Load HTML Example', html='<h1>This is initial HTML</h1>')

Exception

Unhandled Exception: Python.Runtime.PythonException: TypeError : resolve_url() missing 1 required positional argument: 'should_serve'
   at Python.Runtime.Dispatcher.Dispatch(ArrayList args)
   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 I am willing to work on this issue myself.

  • NO I am prepared to support this issue financially.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions