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

No GUI (python3-grpcio 100%, protobuf 3.20) #1000

Closed
DeviousD4n opened this issue Jul 30, 2023 · 3 comments
Closed

No GUI (python3-grpcio 100%, protobuf 3.20) #1000

DeviousD4n opened this issue Jul 30, 2023 · 3 comments

Comments

@DeviousD4n
Copy link

DeviousD4n commented Jul 30, 2023

Running Pop!_OS 22.04 LTS.

Installed the debs for the daemon and GUI. Also installed the Appindicator extension. Still nothing (not even in the tray) but ps shows both the daemon and UI running.

[dan@void:~] $ ps aux | grep snit
root 1050 5.8 0.2 2726444 68992 ? SNsl 20:03 0:01 /usr/bin/opensnitchd -rules-path /etc/opensnitchd/rules
dan 2856 86.8 0.6 1937220 223244 ? RNl 20:03 0:04 /usr/bin/python3 /usr/bin/opensnitch-ui

Then to add insult to injury after running apt remove the UI still tries to run after startup.

Nothing works not even the uninstall.

Willing to try it again if there are any suggestions, also why can it only be run from the systray?

Edit: found the extra remove: sudo apt remove python3-opensnitch-ui

@gustavo-iniguez-goya
Copy link
Collaborator

Hi @DeviousD4n ,

it looks like you're experiencing this bug: #647 (comment)

dan 2856 86.8 0.6 1937220 223244 ? RNl 20:03 0:04 /usr/bin/python3 /usr/bin/opensnitch-ui

Could you verify if the solution of that issue fixes the problem?

@DeviousD4n
Copy link
Author

DeviousD4n commented Jul 30, 2023

That did it! Though i did have another issue at first when running opensnitch-ui:

dan@void:~] $ opensnitch-ui
Traceback (most recent call last):
File "/usr/bin/opensnitch-ui", line 23, in
from opensnitch.service import UIService
File "/usr/lib/python3/dist-packages/opensnitch/service.py", line 13, in
from opensnitch import ui_pb2
File "/usr/lib/python3/dist-packages/opensnitch/ui_pb2.py", line 32, in
_descriptor.EnumValueDescriptor(
File "/usr/local/lib/python3.10/dist-packages/google/protobuf/descriptor.py", line 796, in new
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:

  1. Downgrade the protobuf package to 3.20.x or lower.
  2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

but a pip install protobuf==3.20 seems to have fixed it... though there seem to be other issues now... like no options being remembered once i click allow, which leads to me constantly having to allow

So..... about 5 minutes has passed now and i've had to close it, absolutely no rules are being followed or enforced. They seem to get added to the rules list in the window but upon restarting the app there were zero rules and the allow deny dialog shows up every second. So, while there is a window now (yay!) there are other issues. I can only assume they are related?

Edit: for now i'm putting this in the too hard basket , so don't worry about any suggestions but thankyou for the help.

@gustavo-iniguez-goya
Copy link
Collaborator

It's really bad luck that you've had these 2 errors with python3-grpcio and protobuf at the same time during the first installation :(

Probably you'll have 2 versions of protobuf, the one installed by apt and another one installed from pip.

Anyway, we fixed that problem by uninstalling protobuf from pip: ~ $ pip3 uninstall protobuf (worth checking also uninstalling it as root, just in case you installed it system-wide).

#741 (comment)
#860 (comment)

@gustavo-iniguez-goya gustavo-iniguez-goya changed the title No GUI No GUI (python3-grpcio 100%, protobuf 3.20) Jul 30, 2023
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

2 participants