Windows에서는 거의 vscode를 쓰지 않는데,
다음의 에러가 발생해서 도움을 요청받아 처리함.
우선 Python 파일을 디버그 모드 등으로 수행할 경우 다음의 에러가 발생함.
(base) C:\Users\dsain\test> cmd /C "c:\Users\dsain\miniconda3\python.exe c:\Users\dsain\.vscode\extensions\ms-python.debugpy-2024.0.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy\launcher 59656 -- C:\Users\dsain\test\test.py "
E+00000.078: Error while enumerating installed packages.
Traceback (most recent call last):
File "c:\Users\dsain\.vscode\extensions\ms-python.debugpy-2024.0.0-win32-x64\bundled\libs\debugpy\launcher/../..\debugpy\common\log.py", line 361, in get_environment_description
report(" {0}=={1}\n", pkg.name, pkg.version)
AttributeError: 'PathDistribution' object has no attribute 'name'
debugpy 를 이용한 vscode에서 수행시 나는 문제로 보였고, 해당 장비는 상당기간 conda등을 업그레이드 하지 않았었던 장비였음.
해결책은 importlib-metadata 패키지를 최신 버전으로 설치했더니 사라짐.
참고한 reference는 다음과 같음.
https://github.com/microsoft/debugpy/issues/1379
Error while enumerating installed packages. · Issue #1379 · microsoft/debugpy
Describe the bug Steps to Reproduce Create a Python Application project. Type import debugpy print(debugpy.__version__) debugpy.listen(("localhost", 5678)) debugpy.wait_for_client() print('hello') ...
github.com
AttributeError: 'PathDistribution' object has no attribute 'name'
I am trying to run a simple workflow using celery and using this documentation. I am using chain to sequentially run the tasks, with following workflow Extract a file, tokenize it and load JSON du...
stackoverflow.com
2025.01.17 - [utils] - [summary] vscode
[summary] vscode
vscode 소개 (visual studio 와 비교)https://ds31x.blogspot.com/2023/07/env-visual-studio-code-and-visual-studio.html?view=classic [Env] Visual Studio Code and Visual StudioVisual Studio Code (vscode)는 Visual Studio와 달리, code editor임을 강
ds31x.tistory.com
'Errors' 카테고리의 다른 글
[Error] WSL: 0x8004032d / 0x800000d (0) | 2024.07.04 |
---|---|
[macOS] Unable to find Python library directory. Use a framework build of Python. : PySide6 (0) | 2024.03.03 |
[macOS] TSM AdjustCapsLockLEDForKeyTransitionHandling - _ISSetPhysicalKeyboardCapsLockLED Inhibit (1) | 2023.12.28 |
[code-server] ipad의 웹브라우저에서 integrated terminal에 NerdFont 적용하기 (0) | 2023.09.27 |
[WSL] root계정으로만 로그인 되는 경우. (4) | 2023.09.19 |