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

Upgraded from Ubuntu 20 to 22.04.4, Opensnitch UI not opening #1129

Closed
deadbroker opened this issue May 11, 2024 · 2 comments
Closed

Upgraded from Ubuntu 20 to 22.04.4, Opensnitch UI not opening #1129

deadbroker opened this issue May 11, 2024 · 2 comments

Comments

@deadbroker
Copy link

Hi there

I migrated from Ubuntu 20 to Ubuntu 22.04.4 LTS and Opensnitch doesn't work (version 1.6.5).

I tried opening it from the application launcher in Ubuntu but nothing happens when I click the icon.

I ran $ opensnitch-ui and got the following error:

`Traceback (most recent call last):
File "/usr/bin/opensnitch-ui", line 41, in
from opensnitch.service import UIService
File "/usr/lib/python3/dist-packages/opensnitch/service.py", line 15, 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 914, in new
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot 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).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates`

Any clue what's happening here?

@deadbroker
Copy link
Author

I have solved it with the following command:

$ pip install protobuf==3.20.*

I had to downgrade protobuf

https://stackoverflow.com/questions/72899948/how-to-downgrade-protobuf

gustavo-iniguez-goya added a commit that referenced this issue May 14, 2024
@gustavo-iniguez-goya
Copy link
Collaborator

Hi @deadbroker ,

great you were able to fix it, thank you for letting us know!

I've updated the wiki with this info.

https://github.com/evilsocket/opensnitch/wiki/GUI-known-problems

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