You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In VS Code, I work on a Python script importing colour-science without matplotlib installed:
The script runs without raising errors
Setting a breakpoint and attempting to debug causes the VS Code Python debugger to crash/stop
Error raised:
Exception has occurred: ModuleNotFoundError
No module named 'matplotlib.rcsetup'; 'matplotlib' is not a package
AttributeError: path
During handling of the above exception, another exception occurred:
File "/My/Path/.vscode/extensions/ms-python.debugpy-2024.14.0-darwin-arm64/bundled/libs/debugpy/_vendored/pydevd/pydev_ipython/matplotlibtools.py", line 59, in is_interactive_backend
from matplotlib.rcsetup import interactive_bk, non_interactive_bk # @UnresolvedImport
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/My/Path/.vscode/extensions/ms-python.debugpy-2024.14.0-darwin-arm64/bundled/libs/debugpy/_vendored/pydevd/pydev_ipython/matplotlibtools.py", line 99, in activate_matplotlib
is_interactive = is_interactive_backend(backend)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/My/Path/Documents/python_projects/reproduce_debugpy_error/hello.py", line 9, in
main()
^^^^
ModuleNotFoundError: No module named 'matplotlib.rcsetup'; 'matplotlib' is not a package
Expected behavior
The debugger should stop at breakpoint and allow stepping through the code
Steps to reproduce:
Initialize a new project with uv and add colour-science package
uv init
uv add colour-science
Add import colour in default hello.py
import colour
def main():
print("Hello from reproduce-debugpy-error!")
if __name__ == "__main__":
main()
Add a breakpoint anywhere and run Python Debugger: Debug Python File
The text was updated successfully, but these errors were encountered:
Environment data
Actual behavior
In VS Code, I work on a Python script importing colour-science without matplotlib installed:
Error raised:
Expected behavior
The debugger should stop at breakpoint and allow stepping through the code
Steps to reproduce:
colour-science
packageimport colour
in defaulthello.py
Python Debugger: Debug Python File
The text was updated successfully, but these errors were encountered: