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
vscode 做debug时报错:
for element in iterable:
File "/usr/local/lib/python3.10/importlib/metadata/init.py", line 565, in
resolver(context) for resolver in cls._discover_resolvers()
File "/home/vscode/.local/lib/python3.10/site-packages/importlib_metadata/init.py", line 417, in find_distributions
found = self._search_paths(context.pattern, context.path)
AttributeError: 'Context' object has no attribute 'pattern'
vscode 做debug时报错:
for element in iterable:
File "/usr/local/lib/python3.10/importlib/metadata/init.py", line 565, in
resolver(context) for resolver in cls._discover_resolvers()
File "/home/vscode/.local/lib/python3.10/site-packages/importlib_metadata/init.py", line 417, in find_distributions
found = self._search_paths(context.pattern, context.path)
AttributeError: 'Context' object has no attribute 'pattern'
pip install --upgrade importlib-metadata 执行一下,把:
importlib-metadata 0.23 --》 importlib_metadata 7.0.2
可以了。
The text was updated successfully, but these errors were encountered: