Open kazeki opened 2 months ago
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.
Package Version
contourpy 1.1.1 cycler 0.12.1 fonttools 4.53.1 kiwisolver 1.4.5 matplotlib 3.7.5 numpy 1.24.4 opencv-python 4.10.0.84 packaging 24.1 pillow 10.4.0 pip 24.2 pyparsing 3.1.4 python-dateutil 2.9.0.post0 setuptools 72.1.0 six 1.16.0 wheel 0.43.0 zipp 3.20.1
The env doesn't have the problem.
Package Version
asgiref 3.8.1 Django 5.1 image 1.5.33 numpy 2.1.0 opencv-python 4.10.0.84 pillow 10.4.0 pip 24.2 scipy 1.14.1 setuptools 72.1.0 six 1.16.0 sqlparse 0.5.1 typing_extensions 4.12.2 wheel 0.43.0
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.
python version:
3.8.19
launch.json
error message