gustavo-iniguez-goya / opensnitch

OpenSnitch is a GNU/Linux application firewall
GNU General Public License v3.0
394 stars 20 forks source link

Crashes after deb install: grpc module missing #25

Closed metal450 closed 4 years ago

metal450 commented 4 years ago

Running a fresh install from the .debs on Kubuntu 20.04 / KDE Plasma 5.18.4 crashes. If I launch opensnitch-ui from terminal, the error is:

Traceback (most recent call last): File "/usr/bin/opensnitch-ui", line 16, in import grpc ModuleNotFoundError: No module named 'grpc'

Seems to be what @aral is referring to in #8

metal450 commented 4 years ago

....Then after using pip to install grpcio:

Traceback (most recent call last):
File "/usr/bin/opensnitch-ui", line 18, in <module>
    from opensnitch.service import UIService
File "/usr/lib/python3/dist-packages/opensnitch/service.py", line 19, in <module>
    import ui_pb2
File "/usr/lib/python3/dist-packages/opensnitch/ui_pb2.py", line 6, in <module>
    from google.protobuf.internal import enum_type_wrapper
ModuleNotFoundError: No module named 'google'
jonau01 commented 4 years ago

You might have to install the following python modules

gustavo-iniguez-goya commented 4 years ago

I've installed v1.0.0rc9 deb pkgs on a live ubuntu20.04 and the UI installed just fine, without extra pip packages:

image

I've only added multiverse to /etc/apt/sources.list, and executed apt update; dpkg -i ... ; apt -f install after that. I can see that python3-wheel is installed as dependency and google and protobuf should be installed by the grpcio-tools package.

Could you post the output of a clean installation from a shell? Just to understand why it's working on my systems but not on yours.

dpkg -i *opensnitch*deb; apt -f install

metal450 commented 4 years ago

Oops, you're right, I guess I didn't follow the instructions closely enough. I installed them by double-clicking the debs, which use KDE's QApt. Doing it explicitly with dpkg did indeed show a follow-up screen that installed the dependencies :)

gustavo-iniguez-goya commented 4 years ago

great! I know that sometimes the order of the dependencies cause grpcio-tools to fail installing.

And I really haven't installed it using a GUI, so I think there's room for improve the pkgs.

gustavo-iniguez-goya commented 4 years ago

Added to the known problems section https://github.com/gustavo-iniguez-goya/opensnitch/wiki/Known-problems#GUI-crash-exception-or-does-not-show-up I'll try to improve the packages installation in the coming weeks.