Frustrated trying to run the UI of Opensnitch #1044
Replies: 1 comment 6 replies
-
Hi @ghostiy , I'm already sorry that you're experiencing so many problems. This seems to be caused by Ubuntu/Mint's python3-grpcio package as explained here: #647 (and https://bugs.launchpad.net/ubuntu/+source/grpc/+bug/1971114) Firstly, don't run the GUI as root. It's not necessary, and it's better to run it with a non-privileged user. In my case as explained here, I only have installed the following grpcio packages:
protobuf 3.12.4. |
Beta Was this translation helpful? Give feedback.
-
I've read and tried everything that was in the issues section related to GUI and bugs. However, it didn't work for me..
the daemon is running in the background, i tried
opensnitchd -check-requirements
and they're all there.i also tried to apply the fixes mentioned here: [https://github.com/evilsocket/opensnitch/wiki/GUI-known-problems]
but nothing worked for me.
i'm trying to install those versions:
opensnitch_1.6.2-1_amd64.deb
python3-opensnitch-ui_1.6.3-1_all.deb
OS: mint 21.1
Kernel: 5.15.0-83-generic
opensnitch was working for me for about 5 months but with this version
opensnitch (1.6.0-rc.4-1)
suddenly it stopped working and nothing boots on startup. i tried several times to reboot and run the UI but nothing worked.
so i decided to remove it and install the latest mentioned version
1.6.2-1
and i followed every step on the main page, but still facing the same problem. i even tried to revert and install the older version and still it didn't work ..this is the most recent error i get when i try to run
sudo opensnitch-ui
Details
Traceback (most recent call last):
File "/usr/bin/opensnitch-ui", line 36, in
import grpc
ModuleNotFoundError: No module named 'grpc'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_bin_opensnitch-ui.0.crash'
Original exception was:
Traceback (most recent call last):
File "/usr/bin/opensnitch-ui", line 36, in
import grpc
ModuleNotFoundError: No module named 'grpc'
i've had different errors before.. But after multiple removing packages and downgrading some of them and reinstalling others (based on the solutions mentioned in the other issues) .. This is what i got in the end.
EDIT:
tried this command
sudo apt install python3-grpcio python3-protobuf python3-slugi
and then
sudo opensnitch-ui
it produced the same error i used to get before that one..
Details
Themes not available. Install qt-material if you want to change GUI's appearance: pip3 install qt-material.
~ OpenSnitch GUI - 1.6.3 ~
protobuf: 3.8.0 - grpc: 1.30.2
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
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
Loading translations: /usr/lib/python3/dist-packages/opensnitch/utils/../i18n locale: en_US
using IPASN DB: /usr/lib/python3/dist-packages/data/ipasn_20140513_v12.dat.gz
and it always freezes at that line..
Beta Was this translation helpful? Give feedback.
All reactions