IPython Qt incorrect string formatting in raised error
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 58/100
Hướng nghiên cứu
Bắt đầu với các dòng 15-17 trong src/debugpy/_vendored/pydevd/pydev_ipython/qt.py và kiểm tra chuỗi định dạng RuntimeError cùng với các đối số của nó. Nếu có thể, hãy tái hiện lỗi Qt API đã được báo cáo, sau đó xác minh rằng nhánh API không hợp lệ tạo ra RuntimeError dự kiến thay vì TypeError.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Python
- Star
- 2.5k
- Fork
- 202
- Merge trung bình
- 5 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/debugpy
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Document "rules"-option Đang mởdocumentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Adapter bootstrap fails with ConnectionRefusedError on WSL2 VirtioProxy or hostAddressLoopback Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
Tất cả issue của microsoft/debugpy
Issue tương tự
-
[Bug] reef-hermes tells me to resume with hermes --resume, which does not work from my shell Đang mởarea: harness bug status: needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Human-Agent-Society/reef#625 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
learningequality/kolibri#15351 · 2 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Name consistency Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
eellak/triplestore#65 · 1 bình luận ·