-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while enumerating installed packages. #1379
Comments
Could you also install the |
If |
@ttSpace Can you please try the following. Locate debugpy/common/log.py under site-packages (following the path you see in the output). Find the line in that file that says: swallow_exception("Error while enumerating installed packages.") replace it with: swallow_exception("Error while enumerating installed packages.", level="info") Does that help? |
No errors after installing
No errors after replacement. |
I am encountering the same issue. For whatever it's worth, I tried upgrading My installed versions are as follows:
Because I'm encountering this issue in a work codebase, whose dependencies are managed using Bazel, it's not easy for me to swap out a locally-vendored version to test that. |
I downgraded the version of
This at least avoids this particular issue. Putting this here in case it might help anyone else. But, it's unclear to me yet if it's working end-to-end, because I have not yet been able to connect VS Code, and it's unclear to me yet if that's an error on my part. |
It should not affect operation other than the message being printed.
|
I was able to get the VS Code debugger working end-to-end on |
When logging environment info, report all errors at "info" level.
This worked for me, Thanks |
Thank you so much, yes this worked for me too |
2 hours of wasted life. typical microsoft - above fixed error |
The workaround should not be necessary on current debugpy versions. Please let me know if you're running into some issue. |
Is this fixed with the extension? |
Describe the bug
Steps to Reproduce
print('hello')
. (Note: Install debugpy in the current environment.)Expected behavior
No error.
Additional context and screenshots
Error while enumerating installed packages.
Logs
The text was updated successfully, but these errors were encountered: