Open tomcss opened 2 years ago
cast-control-0.11.8.post0 Python 3.8.10
In my case, the typing
package lacks of TypeAlias
and GenericAlias
, and the typing-extensions
package lacks of _GenericAlias
.
I tried to use the _GenericAlias
from the typing
package, but it threw TypeError: 'type' object is not subscriptable
from the mpris_server/base.py, line 15
.
Downgrading with:
sudo python3 -m pip uninstall cast_control
and
sudo python3 -m pip install cast_control==0.10.11
only works.
Every version between those, breaks with the same output.
Thanks @tomcss for reporting this issue, and thanks @stegrams for providing a solution to it. I'm looking into this, but for the meantime @stegrams's solution might hold you over, as will a more recent version of Python.
solved by
pip install typing-extensions --upgrade
@sbansiheng Thanks very much!
This resolution is impossible. As per https://docs.python.org/3/library/typing.html#typing.TypeAlias:
New in version 3.10.
So to workaround the original exception, one must upgrade Python to at least 3.10
This also occurs using 3.8, the temp solution is not workable
In my case it was incompatible versions of pydantic
and django-ninja
In my case the cast_control was not installed. Thanks @stegrams for the solutions.
In my case, the previous author from IPython import embed
but none of the usage. I comment this import to avoid the issue.
When I try running cast_control, I get the error below. I tried installing through pip (0.11.8 .post0) and from github (0.11.9), but both times I get the same error.