ImportError: cannot import name 'Self' from 'typing'
(/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/typing.py)
make[1]: *** [build/assets/hero.c1] Error 1
make: *** [cart] Error 2
cannot import name 'Self' —
The actual reason it's missing: PEP 673 added typing.Self in Python 3.11. It doesn't exist in 3.9 or 3.10. The 3.9 typing.py simply has no Self symbol.
#!/usr/bin/env python3.11
Quick fix would be to point to the minimum version in the shebang to python 3.11.
ngdevkit/tools/tiletool.py
Line 1 in 4453820
cannot import name 'Self' —
The actual reason it's missing: PEP 673 added typing.Self in Python 3.11. It doesn't exist in 3.9 or 3.10. The 3.9 typing.py simply has no Self symbol.
#!/usr/bin/env python3.11Quick fix would be to point to the minimum version in the shebang to python 3.11.