Skip to content

TypeIs used instead of Type #4245

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

Closed
the-one-with-raspberry opened this issue May 12, 2025 · 2 comments
Closed

TypeIs used instead of Type #4245

the-one-with-raspberry opened this issue May 12, 2025 · 2 comments

Comments

@the-one-with-raspberry
Copy link

Description of bug / unexpected behavior

Whenever I run the command manim, no matter if I pass arguments or not, it gives me an error.

Expected behavior

I was expecting either a "no arguments found" error or a help page with all the arguments.

How to reproduce the issue

Type manim in the terminal and hit enter.

Code for reproducing the problem
user @ F:\Sources $ manim
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Python312\Scripts\manim.exe\__main__.py", line 4, in <module>
  File "C:\Python312\Lib\site-packages\manim\__init__.py", line 13, in <module>
    from ._config import *
  File "C:\Python312\Lib\site-packages\manim\_config\__init__.py", line 12, in <module>
    from .utils import ManimConfig, ManimFrame, make_config_parser
  File "C:\Python312\Lib\site-packages\manim\_config\utils.py", line 31, in <module>
    from manim.utils.color import ManimColor
  File "C:\Python312\Lib\site-packages\manim\utils\color\__init__.py", line 55, in <module>
    from . import AS2700, BS381, DVIPSNAMES, SVGNAMES, X11, XKCD
  File "C:\Python312\Lib\site-packages\manim\utils\color\AS2700.py", line 29, in <module>
    from .core import ManimColor
  File "C:\Python312\Lib\site-packages\manim\utils\color\core.py", line 76, in <module>
    from typing_extensions import Self, TypeAlias, TypeIs, override
ImportError: cannot import name 'TypeIs' from 'typing_extensions' (C:\Python312\Lib\site-packages\typing_extensions.py). Did you mean: 'Type'?

Logs

Terminal output ``` Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Python312\Scripts\manim.exe\__main__.py", line 4, in File "C:\Python312\Lib\site-packages\manim\__init__.py", line 13, in from ._config import * File "C:\Python312\Lib\site-packages\manim\_config\__init__.py", line 12, in from .utils import ManimConfig, ManimFrame, make_config_parser File "C:\Python312\Lib\site-packages\manim\_config\utils.py", line 31, in from manim.utils.color import ManimColor File "C:\Python312\Lib\site-packages\manim\utils\color\__init__.py", line 55, in from . import AS2700, BS381, DVIPSNAMES, SVGNAMES, X11, XKCD File "C:\Python312\Lib\site-packages\manim\utils\color\AS2700.py", line 29, in from .core import ManimColor File "C:\Python312\Lib\site-packages\manim\utils\color\core.py", line 76, in from typing_extensions import Self, TypeAlias, TypeIs, override ImportError: cannot import name 'TypeIs' from 'typing_extensions' (C:\Python312\Lib\site-packages\typing_extensions.py). Did you mean: 'Type'? ```

System specifications

System Details
  • OS (with version, e.g., Windows 10 v2004 or macOS 10.15 (Catalina)): Windows 11 Pro 23H2
  • RAM: 8gb DDR4*2
  • Python version (python/py/python3 --version): py 3.12.0
  • Installed modules (provide output from pip list):
altgraph                  0.17.4
annotated-types           0.6.0
anyio                     3.7.1
appdirs                   1.4.4
auto-py-to-exe            2.41.0
autocommand               2.2.2
av                        13.1.0
beautifulsoup4            4.13.4
blinker                   1.7.0
bottle                    0.12.25
bottle-websocket          0.2.9
branca                    0.8.1
certifi                   2024.12.14
cffi                      1.16.0
charset-normalizer        3.4.0
click                     8.1.7
cloup                     3.0.7
colorama                  0.4.6
contourpy                 1.3.1
cryptography              41.0.7
cycler                    0.12.1
DateTime                  5.5
decorator                 5.2.1
easygui                   0.98.3
Eel                       0.16.0
fastapi                   0.104.1
Flask                     3.0.0
Flask-Cors                5.0.0
folium                    0.19.5
fonttools                 4.55.6
frozenlist                1.4.1
fs                        2.4.16
future                    0.18.3
gevent                    23.9.1
gevent-websocket          0.10.1
glcontext                 3.0.0
greenlet                  3.0.1
h11                       0.14.0
idna                      3.6
inflect                   7.0.0
iniconfig                 2.0.0
isosurfaces               0.1.2
itsdangerous              2.1.2
jaraco.context            4.3.0
jaraco.env                1.0.0
jaraco.functools          3.9.0
jaraco.text               3.11.1
Jinja2                    3.1.2
kiwisolver                1.4.8
manim                     0.19.0
ManimPango                0.6.0
mapbox_earcut             1.0.3
markdown-it-py            3.0.0
MarkupSafe                2.1.3
matplotlib                3.10.0
mdurl                     0.1.2
moderngl                  5.12.0
moderngl-window           3.1.1
more-itertools            10.1.0
mslex                     1.3.0
multidict                 6.0.4
mypy                      1.15.0
mypy_extensions           1.1.0
nbtlib                    2.0.4
networkx                  3.4.2
numpy                     2.2.1
oslex                     0.1.3
packaging                 23.2
paho-mqtt                 2.1.0
pandas                    2.2.3
path                      16.7.1
pathlib                   1.0.1
pbkdf2                    1.3
pefile                    2023.2.7
pillow                    11.1.0
pip                       25.1.1
pip-run                   12.4.0
platformdirs              3.11.0
pluggy                    1.5.0
pycairo                   1.28.0
pycparser                 2.21
pycryptodome              3.22.0
pycryptodomex             3.19.0
pydantic                  2.4.2
pydantic_core             2.10.1
pydub                     0.25.1
PyFAT                     0.0.2
pyfatfs                   1.1.0
pyglet                    2.1.6
pyglm                     2.8.2
Pygments                  2.19.1
pyinstaller               6.1.0
pyinstaller-hooks-contrib 2023.10
pyparsing                 3.1.1
pytest                    8.3.4
python-dateutil           2.9.0.post0
python-multipart          0.0.20
pytz                      2024.2
pywin32                   306
pywin32-ctypes            0.2.2
requests                  2.31.0
rich                      14.0.0
scipy                     1.15.3
screeninfo                0.8.1
setuptools                68.2.2
six                       1.17.0
skia-pathops              0.8.0.post2
sniffio                   1.3.1
soupsieve                 2.7
srp                       1.0.22
srt                       3.5.3
starlette                 0.27.0
svgelements               1.9.6
tqdm                      4.67.1
typing_extensions         4.8.0
tzdata                    2025.1
ufbt                      0.2.6
urllib3                   2.1.0
uvicorn                   0.24.0.post1
watchdog                  6.0.0
Werkzeug                  3.0.1
whichcraft                0.6.1
xyzservices               2025.1.0
yt-dlp                    2025.3.31
zope.event                5.0
zope.interface            6.1
LaTeX details
  • LaTeX distribution (e.g. TeX Live 2020): MiKTeX
  • Installed LaTeX packages:
true 609 6211653 amsfonts
true 10 263878 amsmath
true 192 3676581 arabi
true 2 24708 atbegshi
true 2 19336 atveryend
true 175 1224330 avantgar
true 963 2490261 babel
true 9 26404 babel-english
true 2 31737805 biber-windows-x64
true 119 2388531 biblatex
false 8 76199 biblatex-true-citepages-omit
true 12 184284 bibtex
true 2 47295 blindtext
true 211 1389763 bookman
true 11 267269 cbcoptic
true 201 889884 cm
true 184 1258125 courier
true 259 427180 csfonts
true 83 696512 csplain
true 5 228036 dehyph
true 5 134603 dvipdfmx
true 77 360113 dvips
true 1233 2573583 ec
true 4 55934 elhyphen
true 41 168694 enctex
true 2 4378 environ
true 3 18279 epstopdf-pkg
true 3 49224 etoolbox
true 3 5428 everyshi
true 34 65485 fontconfig
true 6 319117 fontspec
true 214 1401722 ghostscript
true 4 93367 glyphlist
true 22 110913 graphics
true 4 4638 graphics-cfg
true 7 82742 graphics-def
true 340 2456296 helvetic
true 30 763425 hyperref
true 341 9954809 hyph-utf8
true 7 10283 iftex
true 26 129229 knuth-lib
true 9 194952 l3backend
true 24 1433364 l3kernel
true 10 252023 l3packages
true 4 11040 latex-firstaid
true 55 123937 latex-fonts
true 48 394179 latex-tools
true 8 563768 listings
true 1094 43957918 lm
true 168 2428083 ltxbase
true 38 780197 lualibs
true 95 7658428 luaotfload
true 2 5870 luatex85
true 65 218855 make4ht
true 7 25902 metafont
true 83 246563 metapost
true 2 161997 miktex-arctrl-bin-x64-2.9
true 2 5516265 miktex-asymptote-bin-x64-2.9
true 4 184422 miktex-autosp-bin-x64-2.9
true 2 150974 miktex-axohelp-bin-x64-2.9
true 2 267101 miktex-bibarts-bin-x64-2.9
true 2 325869 miktex-bibtex-bin-x64-2.9
true 3 472890 miktex-bibtex8bit-bin-x64-2.9
true 2 106749 miktex-bzip2-bin-x64-2.9
true 2 1216187 miktex-cairo-bin-x64-2.9
true 2 158969 miktex-chktex-bin-x64-2.9
true 9 486962 miktex-cjkutils-bin-x64-2.9
true 66 53307 miktex-config-2.9
true 3 2243371 miktex-console-bin-x64-2.9
true 2 707197 miktex-curl-bin-x64-2.9
true 6 671684 miktex-cweb-bin-x64-2.9
true 2 118027 miktex-devnag-bin-x64-2.9
true 5 3470604 miktex-dict-british
true 7 583103 miktex-dict-english
true 4 1392137 miktex-dict-french
true 10 4347300 miktex-dict-german
true 113 1229774 miktex-doc
true 2 223480 miktex-dvicopy-bin-x64-2.9
true 9 39776 miktex-dvipdfmx
true 3 1116962 miktex-dvipdfmx-bin-x64-2.9
true 2 175046 miktex-dvipng-bin-x64-2.9
true 4 17891 miktex-dvips
true 3 475413 miktex-dvips-bin-x64-2.9
true 2 8049425 miktex-dvisvgm-bin-x64-2.9
true 2 435962 miktex-epstopdf-bin-x64-2.9
true 2 180166 miktex-expat-bin-x64-2.9
true 2 131317 miktex-findtexmf-bin-x64-2.9
true 2 332044 miktex-fmt-bin-x64-2.9
true 3 10349 miktex-fontconfig
true 11 1145510 miktex-fontconfig-bin-x64-2.9
true 3 432875 miktex-fonts-bin-x64-2.9
true 2 352076 miktex-freeglut-bin-x64-2.9
true 2 844799 miktex-freetype2-bin-x64-2.9
true 2 147210 miktex-fribidixetex-bin-x64-2.9
true 2 461522 miktex-gd-bin-x64-2.9
true 6 18659487 miktex-ghostscript-bin-x64
true 2 236761 miktex-graphite2-bin-x64-2.9
true 2 902098 miktex-gregorio-bin-x64-2.9
true 2 185061 miktex-gsf2pk-bin-x64-2.9
true 2 5433281 miktex-harfbuzz-bin-x64-2.9
true 4 913277 miktex-hitex-bin-x64
true 2 1140702 miktex-hunspell-bin-x64-2.9
true 4 36237909 miktex-icu-bin-x64
true 2 363804 miktex-jpeg-bin-x64-2.9
true 2 97547 miktex-kpathsea-bin-x64-2.9
true 2 141572 miktex-lacheck-bin-x64-2.9
true 2 1348 miktex-latex
true 12 5265658 miktex-lcdf-typetools-bin-x64-2.9
true 2 2044336 miktex-libressl-bin-x64-2.9
true 4 3014553 miktex-log4cxx-bin-x64-2.9
true 4 387437 miktex-lua53-bin-x64-2.9
true 5 137705 miktex-luatex
true 4 19575478 miktex-luatex-bin-x64-2.9
true 2 237795 miktex-lzma-bin-x64-2.9
true 2 196534 miktex-m-tx-bin-x64-2.9
true 2 169757 miktex-makeindex-bin-x64-2.9
true 2 41737 miktex-md5-bin-x64-2.9
true 2 732 miktex-metafont
true 2 866036 miktex-metafont-bin-x64-2.9
true 3 1102061 miktex-metapost-bin-x64-2.9
true 5 739140 miktex-mfware-bin-x64-2.9
true 27 120493 miktex-misc
true 6 1039820 miktex-mktex-bin-x64-2.9
true 4 1543990 miktex-mo-bin-x64-2.9
true 2 510369 miktex-mpfr-bin-x64-2.9
true 2 249627 miktex-mpmcli-bin-x64-2.9
true 2 119104 miktex-mspack-bin-x64-2.9
true 2 187622 miktex-mthelp-bin-x64-2.9
true 2 208109 miktex-mtprint-bin-x64-2.9
true 9 1501148 miktex-omegaware-bin-x64-2.9
true 2 183473 miktex-patgen-bin-x64
true 6 2800 miktex-pdftex
true 4 4397895 miktex-pdftex-bin-x64-2.9
true 2 890286 miktex-pixman-bin-x64-2.9
true 3 780948 miktex-pmx-bin-x64-2.9
true 2 264053 miktex-png-bin-x64-2.9
true 15 9290058 miktex-poppler-bin-x64-2.9
true 2 83358 miktex-popt-bin-x64-2.9
true 3 145250 miktex-posix-bin-x64-2.9
true 3 308958 miktex-ps2pk-bin-x64-2.9
true 9 635326 miktex-psutils-bin-x64-2.9
true 8 2821107 miktex-ptex-bin-x64
true 13 30442176 miktex-qt6-bin-x64
true 25 8783123 miktex-runtime-bin-x64-2.9
true 2 225011 miktex-synctex-bin-x64-2.9
true 2 275718 miktex-tdsutil-bin-x64
true 2 274189 miktex-teckit-bin-x64-2.9
true 3 842 miktex-tex
true 2 643810 miktex-tex-bin-x64-2.9
true 2 95485 miktex-tex2xindy-bin-x64-2.9
true 3 26711 miktex-tex4ht
true 3 302884 miktex-tex4ht-bin-x64-2.9
true 2 292578 miktex-texify-bin-x64-2.9
true 5 737106 miktex-texware-bin-x64-2.9
true 2 7935771 miktex-texworks-bin-x64-2.9
true 3 358225 miktex-ttf2pk2-bin-x64-2.9
true 44 2095801 miktex-ucrt-bin-x64
true 2 242407 miktex-upmendex-bin-x64
true 2 128420 miktex-uriparser-bin-x64-2.9
true 24 13651902 miktex-vc140-bin-x64
true 3 401107 miktex-web-bin-x64-2.9
true 3 3914 miktex-xetex
true 2 1278713 miktex-xetex-bin-x64-2.9
true 3 5119516 miktex-xindy-bin-x64
true 2 218890 miktex-xml2pmx-bin-x64
true 4 2611729 miktex-yap-bin-x64-2.9
true 3 361496 miktex-zip-bin-x64
true 2 132540 miktex-zlib-bin-x64-2.9
true 2 58638 miktex-zzip-bin-x64-2.9
true 2 97995 modes
true 7 154504 mptopdf
true 3 9742 ms
true 155 912870 ncntrsbk
true 43 277295 oberdiek
true 246 1167385 palatino
true 9 232523 pdftex
true 3 29536 pdftexcmds
true 499 4976735 pgf
true 110 3520904 pgfplots
true 11 105166 plain
true 2 10085 ragged2e
true 18 101828 rsfs
true 28 223320 ruhyphen
true 4 64902 standalone
true 14 70529 symbol
true 24 558104 tcolorbox
true 32 117863 tetex
true 16 10522 tex-ini-files
true 9031 18283266 tex4ht
true 240 1508359 times
true 2 1380 trimspaces
true 22 132016 ukrhyph
true 19 3217362 unicode-data
true 3 13058 url
true 6 127611 xcolor
true 8 394169 xetex
true 15 62805 xkeyval
true 32 175798 zapfchan
true 11 70264 zapfding
@uwezi
Copy link
Contributor

uwezi commented May 12, 2025

Since you are the first person to report this problem, but you are using a quite common combination of Python 3.12 and ManimCE 0.19.0 I wonder what would be special about your systems.

How did you install Manim?

One difference I see to my system is that your version of the Python library typing_extensions is 4.8, which appears to be quite old, especially since your Python is quite new. Try to pip install typing-extensions -U in order to update this package. Actually that seems to be the cause of your problem:

Image

@the-one-with-raspberry
Copy link
Author

Since you are the first person to report this problem, but you are using a quite common combination of Python 3.12 and ManimCE 0.19.0 I wonder what would be special about your systems.

How did you install Manim?

One difference I see to my system is that your version of the Python library typing_extensions is 4.8, which appears to be quite old, especially since your Python is quite new. Try to pip install typing-extensions -U in order to update this package. Actually that seems to be the cause of your problem:

Image

Thank you, but I used the uv package manager and it works great. So I'll stick to that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants