Verwenden von Tshark in kompilierten Python exe
Posted: 20 May 2025, 16:19
Ich habe ein funktionierendes Python -Skript, das Pyshark verwendet und importiert, und damit Tshark. Sobald ich PyInstaller zum Kompilieren verwende, erhalte ich diesen Fehler: < /p>
Ich habe versucht, dieses Fix zu verwenden, das inzwischen ebenfalls in Pyshark zusammengeführt werden sollte, aber es hat nichts geändert: https://github.com/kiminewt/pyshark/issues/245
Code: Select all
Exception in Tkinter callback
Traceback (most recent call last):
File "tkinter\__init__.py", line 1921, in __call__
File "main.py", line 458, in get_pdu_ids
File "pyshark\capture\capture.py", line 232, in _packets_from_tshark_sync
File "asyncio\base_events.py", line 646, in run_until_complete
File "pyshark\capture\capture.py", line 396, in _get_tshark_process
File "pyshark\capture\capture.py", line 373, in _get_tshark_path
File "pyshark\tshark\tshark.py", line 30, in get_process_path
File "configparser.py", line 782, in get
File "configparser.py", line 1153, in _unify_values
configparser.NoSectionError: No section: 'tshark'