Skip to content

AttributeError: 'Window' object has no attribute 'loaded' #242

@wtcline-intc

Description

@wtcline-intc

Heads up: The latest release of email-oauth2-proxy on the upcoming Ubuntu LTS release (24.04) throws the following error:

2024-04-24 18:28:38: Accepting new connection from 127.0.0.1:38994 to SMTP server at 127.0.0.1:1587 (unsecured) proxying REDACTED (STARTTLS)
2024-04-24 18:28:41: Authorisation request received for REDACTED (interactive mode)
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pystray/_base.py", line 324, in inner
    callback(self)
  File "/usr/lib/python3/dist-packages/pystray/_base.py", line 449, in __call__
    return self._action(icon, self)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/REDACTED/REDACTED/./emailproxy.py", line 2812, in authorise_account
    self.create_authorisation_window(request)
  File "/home/REDACTED/REDACTED/./emailproxy.py", line 2842, in create_authorisation_window
    authorisation_window.loaded += self.authorisation_window_loaded
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Window' object has no attribute 'loaded'

I've looked into the error and it appears to be due to an improperly packaged dependency, python3-webview, reporting its module version as 0.0.0. This does not appear to be a bug in email-oauth2-proxy. I've filed a bug report against the python-pywebview package in Ubuntu.

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