Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

IPython Qt incorrect string formatting in raised error

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

まだ誰も着手していません。

評価

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

調査の方向性

src/debugpy/_vendored/pydevd/pydev_ipython/qt.py の15~17行目から始め、RuntimeError のフォーマット文字列とその引数を調べてください。可能であれば報告された Qt API エラーを再現し、その後、無効な API のパスで TypeError ではなく意図した RuntimeError が発生することを確認してください。

索引モデルが issue の本文から書いたものです。

説明

bug
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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

microsoft/debugpy のほかの issue

microsoft/debugpy の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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