IPython Qt incorrect string formatting in raised error
まだ誰も着手していません。
評価
調査の方向性
src/debugpy/_vendored/pydevd/pydev_ipython/qt.py の15~17行目から始め、RuntimeError のフォーマット文字列とその引数を調べてください。可能であれば報告された Qt API エラーを再現し、その後、無効な API のパスで TypeError ではなく意図した RuntimeError が発生することを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Issue
I'm getting a Failed to enable GUI event loop integration for 'qt' error when attempting to debug a PyQt application (I've seen the guiEventLoop parameter discussed elsewhere, but I can't find anything about what it actually does. Can anyone explain it?). However, the full traceback for the error seems to point to an additional bug in debugpy concerning these lines:
Abridged traceback:
File "c:\Users\Andrew\.vscode\extensions\ms-python.debugpy-2024.6.0-win32-x64\bundled\libs\debugpy\_vendored\pydevd\pydev_ipython\qt.py", line 16, in <module>
raise RuntimeError("Invalid Qt API %r, valid values are: %r, %r" %
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: not all arguments converted during string formatting
Problematic lines:
https://github.com/microsoft/debugpy/blob/09b5af0bb730e2707ec3bbc14c509523eca116c0/src/debugpy/_vendored/pydevd/pydev_ipython/qt.py#L15-L17
Full traceback
Failed to enable GUI event loop integration for 'qt'
Traceback (most recent call last):
File "c:\Users\Andrew\.vscode\extensions\ms-python.debugpy-2024.6.0-win32-x64\bundled\libs\debugpy\_vendored\pydevd\pydev_ipython\matplotlibtools.py", line 30, in do_enable_gui
enable_gui(guiname)
File "c:\Users\Andrew\.vscode\extensions\ms-python.debugpy-2024.6.0-win32-x64\bundled\libs\debugpy\_vendored\pydevd\pydev_ipython\inputhook.py", line 540, in enable_gui
return gui_hook(app)
^^^^^^^^^^^^^
File "c:\Users\Andrew\.vscode\extensions\ms-python.debugpy-2024.6.0-win32-x64\bundled\libs\debugpy\_vendored\pydevd\pydev_ipython\inputhook.py", line 176, in enable_qt
from pydev_ipython.qt_for_kernel import QT_API, QT_API_PYQT5
File "c:\Users\Andrew\.vscode\extensions\ms-python.debugpy-2024.6.0-win32-x64\bundled\libs\debugpy\_vendored\pydevd\pydev_ipython\qt_for_kernel.py", line 119, in <module>
from pydev_ipython.qt import QtCore, QtGui, QtSvg, QT_API
File "c:\Users\Andrew\.vscode\extensions\ms-python.debugpy-2024.6.0-win32-x64\bundled\libs\debugpy\_vendored\pydevd\pydev_ipython\qt.py", line 16, in <module>
raise RuntimeError("Invalid Qt API %r, valid values are: %r, %r" %
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: not all arguments converted during string formatting
Backend QtAgg is interactive backend. Turning interactive mode on.
Software Versions
- Python: 3.12.2
- VS Code Python extension: v2024.7.11311010 (pre-release)
- VS Code Python Debugger extension: v2024.6.0
- PyQt6: 6.6.1
- 主要言語
- Python
- スター
- 2.5k
- フォーク
- 202
- 平均マージ
- 5日 1時間
- マージ済み PR(30日)
- 1
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/debugpy のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
microsoft/debugpy の issue をすべて見る
似ている issue
-
area: harness bug status: needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Human-Agent-Society/reef#625 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
learningequality/kolibri#15351 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Name consistency オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
eellak/triplestore#65 · コメント 1 件 ·