Skip to content

ui, plugins: fixed loading versionchecker and downloader - #1680

Open
aadrian wants to merge 1 commit into
evilsocket:masterfrom
aadrian:fix-plugins-import
Open

aadrian wants to merge 1 commit into
evilsocket:masterfrom
aadrian:fix-plugins-import

Conversation

@aadrian

@aadrian aadrian commented Oct 5, 2026 •

Copy link
Copy Markdown

Both plugins still import opensnitch.dialogs.stats, which was removed in b87b67d. PluginsManager.load_plugin() doesn't catch import errors, so with either plugin enabled the UI fails to start with ModuleNotFoundError: No module named 'opensnitch.dialogs.stats'.

This imports StatsDialog from opensnitch.dialogs.events, the same way the virustotal plugin does. Both plugins only use it for type(parent) == StatsDialog checks.

It doesn't affect v1.8.0, only master since b87b67d. Without this, the next release 1.9.0 fails to start for users with either plugin enabled.

Found with an import smoke test of every UI module. I can send that test as a follow-up once #1678 is in, since it depends on the test isolation there.

Both plugins imported opensnitch.dialogs.stats, removed in b87b67d.
PluginsManager.load_plugin() does not catch import errors, so with
either plugin enabled the UI failed to start.

Import StatsDialog from opensnitch.dialogs.events, as virustotal does.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant