Getting NiceGUI to work

can anyone help me getting the NiceGUI framework to work in replit? I am getting this error.

Traceback (most recent call last):
  File "", line 1, in <module>
    import nicegui
  File "/home/runner/niceguitest/venv/lib/python3.10/site-packages/nicegui/", line 1, in <module>
    from . import elements, globals, ui
  File "/home/runner/niceguitest/venv/lib/python3.10/site-packages/nicegui/", line 4, in <module>
    from .element import Element as element
  File "/home/runner/niceguitest/venv/lib/python3.10/site-packages/nicegui/", line 8, in <module>
    from typing_extensions import Self
ImportError: cannot import name 'Self' from 'typing_extensions' (/home/runner/niceguitest/venv/lib/python3.10/site-packages/

Run in shell: if you’re using the replit package:

poetry add git+


poetry remove replit
pip install -U typing_extensions