[Bug Report] list_subscriptions plugin prevents the UI from starting with protobuf < 3.20 (Fedora 44)
評価
調査の方向性
plugins/list_subscriptions/ui/controllers/rules_attachment_controller.pyから始め、そのprotobufのインポートを、他のモジュールについて説明されているopensnitch.proto.import_()の使用方法と比較してください。protobuf 3.20より古いバージョンでプラグインが読み込まれ、UIが起動することを確認してください。これにより、互換性の問題が修正されたことを確認できます。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug:
With the list_subscriptions plugin enabled, opensnitch-ui exits at startup on systems with protobuf older than 3.20, such as Fedora 44 (python3-protobuf 3.19.6).
plugins/list_subscriptions/ui/controllers/rules_attachment_controller.py imports the protobuf code directly:
from opensnitch.proto import ui_pb2 as ui_pb2
All other modules use opensnitch.proto.import_(), which picks proto.pre3200 for protobuf < 3.20. The direct import loads the code generated for newer protobuf versions, which fails, and the UI exits.
This affects the next release 1.9.0: every user with protobuf < 3.20 who enables the plugin. It should be fixed before 1.9.0 is released.
Include the following information:
- OpenSnitch version: master (a1353848, 1.9.0)
- OS: Fedora Linux
- OS version: 44 (python 3.14.7, PyQt6 6.11.0, protobuf 3.19.6, grpcio 1.48.4)
- Window Manager: none (reproduced in a container, QT_QPA_PLATFORM=offscreen)
- Kernel version: not relevant (container)
To Reproduce:
- Build the rpm from master (
utils/packaging/ui/rpm/opensnitch-ui.spec) and install it on Fedora 44. - Enable the plugin in
~/.config/opensnitch/settings.conf:[plugins] list=list_subscriptions - Launch
opensnitch-ui.
Without the plugin enabled, the UI starts normally.
Post error logs:
[WARNING][opensnitch-ui:<module>:348] exception: ImportError("cannot import name 'builder' from 'google.protobuf.internal' (/usr/lib/python3.14/site-packages/google/protobuf/internal/__init__.py)")
opensnitch-ui then exits with status 0.
Expected behavior (optional):
The plugin loads with any protobuf version the UI supports, using opensnitch.proto.import_() like the other modules.
- 主要言語
- Python
- スター
- 14.3k
- フォーク
- 689
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
evilsocket/opensnitch のほかの issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
evilsocket/opensnitch#1715 ·
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
evilsocket/opensnitch#1689 · コメント 3 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
evilsocket/opensnitch#1675 ·
-
ui: Addresses tab shows raw column name "what"対応中かも @aadrian が 48 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
evilsocket/opensnitch#1674 · コメント 2 件 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
evilsocket/opensnitch#1668 · リアクション 3 件 ·
evilsocket/opensnitch の issue をすべて見る
似ている issue
-
[Bug]: DoubleMLData.from_arrays checks the treatment d with force_all_x_finite instead of force_all_d_finite対応中かも @leninworld が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
DoubleML/doubleml-for-py#471 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
python-pillow/Pillow#10590 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
BUG: ZarrTrace fails in init_trace for models with datetime coordinates (object dtype coord array)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 2 日以内に返信