Skip to content

Webview doesn't load when I import pystray #486

Description

@alexwohlbruck
  • pywebview version: 3.2
  • platform / version: Windows 10

For some reason when I try to use this library with pystray (a library that creates a system tray icon), I get this strange runtime error. I am pulling my hair out trying to get these two modules to work together, but I don't know what this error message is coming from. Only when I import both of the libraries and try to create a new window.

import webview
import pystray
	
window = webview.create_window('Woah dude!', html='<h1>Woah dude!<h1>')
webview.start()
Unhandled Exception: Python.Runtime.PythonException: ArgumentError : argument 1: <class 'OverflowError'>: int too long to convert
   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()

Anybody else getting this on their machines? How can I even begin to debug this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions