-
Notifications
You must be signed in to change notification settings - Fork 145
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
'PathDistribution' object has no attribute 'name' #1643
Comments
I seem to have the same problem. But in my case, it seems only to be a "warning" message while not affecting the debug process, still annoying. Oh, I'm just happened to use miniconda too. |
I did some look into this crazy.. My only guess is it might has something related with packages installed. One of my project has those packages installed has this problem, while the others don't.. The env has the problem. contourpy 1.1.1 The env doesn't have the problem. asgiref 3.8.1 And both of the envs are brought up by "conda create --name *** python=3.8" Dunno if these info will mislead, I am only want to help.. |
Ek.. a few struggle😒. After installing a package called "importlib_metadata==8.4.0" to the project which has the problem. The message "'PathDistribution' object has no attribute 'name'" disappears.. Try: pip install "importlib_metadata==8.4.0" I hope this works for your situation.❤ Still don't know where the problem lies. |
I found exactly the same issue with VS Code v1.96.2 on MacOS Big Sur, and Python v3.8.5 managed with For reference:
|
python version:
3.8.19
launch.json
error message
The text was updated successfully, but these errors were encountered: