Python Forum

Full Version: my python intrepeter completely broke
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
anything i try to run (even if its empty)
i get the error:
Error:
Traceback (most recent call last): line 1, in <module> from _typeshed import SupportsLenAndGetItem ModuleNotFoundError: No module named '_typeshed'
**sad** **confused**
Are you using visual studio, or does that happen even from a command line?

https://github.com/python/typeshed/issues/5201
(Oct-12-2021, 03:39 AM)bowlofred Wrote: [ -> ]Are you using visual studio, or does that happen even from a command line?

https://github.com/python/typeshed/issues/5201
vs code
Answer the entire question. Does this problem happen when you run from the command line? If so, your Python is broke. If not, you have a configuration problem with VS Code.
Does the information in the link make sense? It details a problem that can occur with vs code and how to resolve it. Did it work for you?
(Oct-12-2021, 04:08 PM)deanhystad Wrote: [ -> ]Answer the entire question. Does this problem happen when you run from the command line? If so, your Python is broke. If not, you have a configuration problem with VS Code.
it only happens on vs code
Post a program that causes this problem to occur.
(Oct-12-2021, 05:28 PM)deanhystad Wrote: [ -> ]Post a program that causes this problem to occur.

anything
(Oct-12-2021, 05:28 PM)deanhystad Wrote: [ -> ]Post a program that causes this problem to occur.
now it magically works
I tried running this.
anything
and got this error.
Error:
NameError: name 'anything' is not defined