-
-
Notifications
You must be signed in to change notification settings - Fork 520
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
UI does not work in Ubuntu 22.04 (fixed on 23.04) / LinuxMint 21 (temp fix available) #647
Comments
hey @ergsolo , thank you for reporting this. What version are you running? gnome, kde? |
@gustavo-iniguez-goya |
Actually I told about ubuntu DE |
ok, reproduced. I'll try to find the problem. |
ok, the problem seems to be the As a workaround install grpcio version from pip as your regular user: Note: if it keeps failing (opensnitch-ui is using 100%CPU), be sure that you install it for your python version. for example:
|
@gustavo-iniguez-goya |
I have the same issue. |
I have the same issue since Pop_OS 22.04 (gnome 42) LTS. I tried the $ pip3 install --ignore-installed grpcio and it still does not work. When I launch the sopensnitch-ui pegs one of the CPUs. |
I'll take a look , thank you @convolutionbbs |
Yes, I've tried that. I was launching from the gui icon via Pop_OS. I just tried from the shell: $ opensnitch-ui and the opensnitch-ui process pegs cpu |
mmh, what version are you using? did you install the GUI from sources or using the deb packages? |
Just for fun, I removed all references to opensnitch and opensnitch-ui via dpkg (even using --purge). I was using the x86_64 debian builds for both. I re-installed using Eddy (right click on the .deb file install) using the latest version 1.5.1-1. python3-opensnitch-ui_1.5.1-1_all.deb Still get no GUI - pegs CPU. Slightly different otuput - likely because I had an older opensnitch-ui installed when I ran the command before. It's likely not relevant, but I did install: pip install pyasn but it still doesn't find it (maybe there's another version I need). $ opensnitch-ui |
ok, the previous error Unfortunately I have no idea why it's not working on your system :/ Regarding the pyasn package: installing it from pip doesn't install the needed DB, no idea why. On Pop_OS the package is available from apt: |
that did it - thanks! |
nah, false alarm. |
Just wanted to say thank you for your support of this great project - the ease of use and capability is outstanding. |
I opened a bug report with Ubuntu detailing the steps to reproduce this problem . Hopefully they'll reproduce the same behaviour. A simple grpcio example fails as well: |
Requirements have always been a major thorn for this project, and seem like they will continue to plague this project, disallowing it from being too successful. Any modern project would be fully compiled or packaged without a single one of these unbundled requirements. These days standalone various packagers exist even for Python, so I don't know what the hangup is. To summarize, here are the extras that I had to run to get the v1.5.1-1 UI running on Ubuntu 22.04:
I think |
Hi @impredicative , nor python3-pyasn, nor qt-material are mandatories. The GUI works just fine without them. Otherwise file a bug specifying what's wrong. The problematic requirements have always been grpcio, unicode_slugify and protobuf, because they were not shipped with many distributions (min18/19, ubuntu <= 18, etc). And now, there's a bug with python3-grpcio. The deb/rpm packages has worked flawlessly until now, just with On the other hand, the workaround to this specific problem was documented here #647 (comment) more than 1 month ago. I also filed a bug for the python3-grpcio problem here https://bugs.launchpad.net/ubuntu/+source/grpc/+bug/1971114 where you can drop a comment to let them know that this problem affects you. This bug also affects warpinator (mint 22.04): linuxmint/warpinator#127 |
I can confirm it works for me in Pop-Os! 22.04. |
Recently the UI stopped working on openSUSE Tumbleweed KDE. Running opensnitch-ui on CLI gives "ModuleNotFoundError: No module named 'grpc'". "zypper search grpc" says the only grpc thing installed is "python38-grpcio". Tried doing "pip3 install --user --ignore-installed grpcio", and now running opensnitch-ui on CLI gives "ModuleNotFoundError: No module named 'google'". |
@BillDietrich that's weird, maybe an upgrade uninstalled the package python3-grpcio? but it'd have also uninstalled the GUI.. so, no idea. You also need protobuf to solve the error "No module named google": But anyway, try to install both python3-grpcio and python3-protobuf from SuSe's repositories. |
Just to inform, since I recently had issues with the UI on openSUSE Tumbleweed as well: it appears the system Python was changed from 3.8 to 3.10. As a result, I had to Now it's working normally. |
Thank you very much @temporarium ! @BillDietrich , it looks like that's also the problem on your case. |
No, thank you @gustavo-iniguez-goya for an excellent application and all the hard work!! |
Solved the issue on Mint 21 thanks. |
why is he using python for the gui, even electron will be better |
Thank you. The workaround resolved my issue running Ubuntu 22.04.1 LTS. |
Carelessly installed a
Note: I had to manually kill the Thanks! |
I lost the interface when upgrading to Ubuntu 22.10 and got it back by doing |
@Ileca , grpcio version should not affect installed opensnitch version. Open a new issue or Discussion question, but be sure your packages versions are correct (dpkg -l | grep opensnitch) . It looks like you upgraded the daemon, but no the GUI. |
Yeah, that's completely on me. Forget what I said, I will crawl into a hole now. |
Daemon runs but attempting to run opensnitch-ui gives the following error on Ubuntu 22.04:
I seem to have all the required packages installed, but version might be causing issues?
|
@vibescartel1 You need 3.20.x or lower, as said in the error message. I got the same error and fixed it like this:
|
runnig on Ubuntu 22.04. Great job!! Thanks |
Do you mean Ubuntu 23.04, the Ubuntu version that was just released? |
Thanks very much! This worked for me on Kubuntu 22.04.2. Thanks so much for all your hard work and efforts in maintaining this all-too-important Linux application! I am totally surprised that such a commonly used type of app (within both Windows and OSX) hasn't long since been 'built in' to most Linux distributions. Another sorely lacking net app is something similar to **NetLimiter", which I rely on a great deal within Windows to manage bandwidth (both globally and per application). |
Thank you @snivlle for the kind words, truly appreciated. Thanks to Peter Reinholdtsen finally opensnitch is in Debian 12, and due to this it'll also be available on Ubuntu 23.04: But besides this, we'll no longer have this issue with grpcio/protobuf on Ubuntu 23.x (we'll have others....), it seems to be fixed with the new packages uploaded. |
@gustavo-iniguez-goya For what it's worth, Nuitka is a well-known Python "compiler". Of course there is more to packaging |
That's interesting @impredicative , thank you! |
Hello, open snitch don't work, even with the workaround here on Linux Mint 21.3 x86_64. |
Fixed "GUI not showing up" -problem in Pop!_OS 22.04. Thanks. |
how it sorted it out on centos 9:
// ISSUES ON FIRST LAUNCH:
2.2 WARNING: system tray not available. On GNOME you need the extension gnome-shell-extension-appindicator.
|
Ubuntu jammy package python3-grpcio, version 1.30.2-3build6, has a bug which causes applications to use 100% of the CPU. If after installing we detect that the buggy version is installed, display a warning to the user with instructions on how to solve the problem and links to the bug reports. More information: - https://bugs.launchpad.net/ubuntu/+source/grpc/+bug/1971114 - #647
Ubuntu jammy package python3-grpcio, version 1.30.2-3build6, has a bug which causes applications to use 100% of the CPU. If after installing we detect that the buggy version is installed, display a warning to the user with instructions on how to solve the problem and links to the bug reports. More information: - https://bugs.launchpad.net/ubuntu/+source/grpc/+bug/1971114 - #647 (cherry picked from commit c89b490)
Protobuffers compiled with protobuf < 3.20.0 are incompatible with protobuf >= 4.0.0: https://github.com/evilsocket/opensnitch/wiki/GUI-known-problems#gui-does-not-show-up This has been a source of problems for some users (#1214, #647), and in some distributions, previous protobuffer does no longer work due to incompatibility with the protobuf package version installed (OpenSuse Tumbleweed). So in order to solve this issue, we provide several protobuffers, for old and new protobuf versions: proto/ui_pb2* for protobuf >= 4.0.0 proto/pre3200/ui_pb2* for protobuf >= 3.6.0 and < 3.20.0 To avoid import errors, each protobuffer must be placed in its own directory, and the name of the protobuffer files must be named with the syntax <prefix>_pb2.py/<prefix>_pb2_grpc.py: ui_pb2.py and ui_pb2_grpc.py The default compiled protobuffer will be opensnitch/proto/ui_*.py instead of opensnitch/ui_*.py
Hi. It's UI bug.
UI app stuck and interface never appear. I see it load my CPU for about 15%.
Tray icon of opensnitch appear as blank area and does not open even menu by click.
I tried to start it from source using
cd ui/bin && mv opensnitch-ui opensnitch-ui.py && python3 opensnitch-ui.py
and there was some errors with theme module.I guess it may be somehow related to new libadwaita and that they dropped ability to use user themes.
I don't know how to get you more info. Please tell me how and I will do it.
The text was updated successfully, but these errors were encountered: