Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes after deb install: grpc module missing #25

Closed
metal450 opened this issue May 23, 2020 · 6 comments
Closed

Crashes after deb install: grpc module missing #25

metal450 opened this issue May 23, 2020 · 6 comments

Comments

@metal450
Copy link

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
Copy link
Author

....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
Copy link

jonau01 commented May 23, 2020

You might have to install the following python modules

  • python3 -m pip install google
  • python3 -m pip install protobuf
  • python3 -m pip install wheel

@gustavo-iniguez-goya
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Owner

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.

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

No branches or pull requests

3 participants