opensnitch icon indicating copy to clipboard operation
opensnitch copied to clipboard

[Bug Report] NameError: name 'server' is not defined (package python-typing_extensions not installed)

Open Alphizi opened this issue 3 months ago • 2 comments

Arch fresh install.

Themes not available. Install qt-material if you want to change GUI's appearance: pip3 install qt-material. Loaded network aliases from /usr/lib/python3.13/site-packages/opensnitch/utils/network_aliases/network_aliases.json ~ OpenSnitch GUI - 1.7.2 ~ protobuf: 6.32.1 - grpc: 1.75.0

QT_AUTO_SCREEN_SCALE_FACTOR: True Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. gRPC Max Message Length: None Bytes: 4194304 is new file, or IN MEMORY, setting initial schema version setting schema version to: 3 setting schema version to: 3 Setting journal_mode: OFF Setting DB memory optimizations schema version: 3 db schema is up to date actions.init exception: [Errno 17] Файл существует: '/home/user/.config//opensnitch/actions/' actions.init exception: [Errno 17] Файл существует: '/home/user/.config//opensnitch/actions/' Loading translations: /usr/lib/python3.13/site-packages/opensnitch/utils/../i18n locale: ru_RU exception loading ipasn db: No module named 'pyasn' Install python3-pyasn to display IP's network name. actions.init exception: [Errno 17] Файл существует: '/home/user/.config//opensnitch/actions/' No module named 'typing_extensions' QSqlDatabasePrivate::removeDatabase: connection 'db' is still in use, all queries will cease to work. Traceback (most recent call last): File "/usr/bin/opensnitch-ui", line 282, in service.close() ~~~~~~~~~~~~~^^ File "/usr/lib/python3.13/site-packages/opensnitch/service.py", line 791, in close self._on_close() ~~~~~~~~~~~~~~^^ File "/usr/lib/python3.13/site-packages/opensnitch/service.py", line 319, in _on_close self._on_exit() ~~~~~~~~~~~~~^^ File "/usr/bin/opensnitch-ui", line 73, in on_exit server.stop(0) ^^^^^^ NameError: name 'server' is not defined

Alphizi avatar Oct 02 '25 19:10 Alphizi

Found a bug report here, installing the python-typing_extensions package seems to fix it

nathan882 avatar Oct 03 '25 17:10 nathan882

thank you @nathan882 @Alphizi !

on Debian and Fedora the package is called python3-typing-extensions and on OpenSuSe python313-typing-extensions, which comes preinstalled by default (maybe as dependency of other package).

gustavo-iniguez-goya avatar Nov 25 '25 00:11 gustavo-iniguez-goya