Skip to content
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

on replit it says that from typing_extensions import Annotated, Literal, Protocol, TypeAlias, TypeAliasType, deprecated ImportError: cannot import name 'TypeAliasType' from 'typing_extensions' #20

Open
zenitogr opened this issue Jun 5, 2024 · 0 comments

Comments

@zenitogr
Copy link

zenitogr commented Jun 5, 2024

from typing_extensions import Annotated, Literal, Protocol, TypeAlias, TypeAliasType, deprecated
ImportError: cannot import name 'TypeAliasType' from 'typing_extensions'

the whole traceback

2024-06-05 20:41:19.685 Uncaught app exception
Traceback (most recent call last):
  File "/home/runner/conversational-chatbot-groq/.pythonlibs/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
    exec(code, module.__dict__)
  File "/home/runner/conversational-chatbot-groq/app.py", line 3, in <module>
    from groq import Groq
  File "/home/runner/conversational-chatbot-groq/.pythonlibs/lib/python3.10/site-packages/groq/__init__.py", line 3, in <module>
    from . import types
  File "/home/runner/conversational-chatbot-groq/.pythonlibs/lib/python3.10/site-packages/groq/types/__init__.py", line 5, in <module>
    from .model import Model as Model
  File "/home/runner/conversational-chatbot-groq/.pythonlibs/lib/python3.10/site-packages/groq/types/model.py", line 5, in <module>
    from .._models import BaseModel
  File "/home/runner/conversational-chatbot-groq/.pythonlibs/lib/python3.10/site-packages/groq/_models.py", line 20, in <module>
    from pydantic.fields import FieldInfo
  File "/home/runner/conversational-chatbot-groq/.pythonlibs/lib/python3.10/site-packages/pydantic/fields.py", line 18, in <module>
    from . import types
  File "/home/runner/conversational-chatbot-groq/.pythonlibs/lib/python3.10/site-packages/pydantic/types.py", line 33, in <module>
    from typing_extensions import Annotated, Literal, Protocol, TypeAlias, TypeAliasType, deprecated
ImportError: cannot import name 'TypeAliasType' from 'typing_extensions' (/nix/store/nv13brd9hw3wbajaxkrgfsngyfjg0xjj-python3.10-typing-extensions-4.5.0/lib/python3.10/site-packages/typing_extensions.py)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant