[Bug Report] list_subscriptions plugin prevents the UI from starting with protobuf < 3.20 (Fedora 44)

オープン 初心者向け
#1,683 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@aadrian がすでに取り組んでいます。

2026年10月5日 から。

  • #1684 @aadrian による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
desktop

調査の方向性

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:
  1. Build the rpm from master (utils/packaging/ui/rpm/opensnitch-ui.spec) and install it on Fedora 44.
  2. Enable the plugin in ~/.config/opensnitch/settings.conf:
    [plugins]
    list=list_subscriptions
    
  3. 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

evilsocket/opensnitch のほかの issue

evilsocket/opensnitch の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。