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

Uncaught ImportError in _typing_extra.py line 15 #2693

Open
JWPapi opened this issue Dec 23, 2024 · 0 comments
Open

Uncaught ImportError in _typing_extra.py line 15 #2693

JWPapi opened this issue Dec 23, 2024 · 0 comments

Comments

@JWPapi
Copy link

JWPapi commented Dec 23, 2024

Aider version: 0.69.1
Python version: 3.12.1
Platform: Windows-11-10.0.22631-SP0
Python implementation: CPython
Virtual environment: No
OS: Windows 11 (64bit)
Git version: git version 2.45.1.windows.1

An uncaught exception occurred:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "__main__.py", line 7, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 996, in main
    coder.run()
  File "base_coder.py", line 806, in run
    self.run_one(user_message, preproc)
  File "base_coder.py", line 853, in run_one
    list(self.send_message(message))
  File "base_coder.py", line 1235, in send_message
    litellm_ex = LiteLLMExceptions()
                 ^^^^^^^^^^^^^^^^^^^
  File "exceptions.py", line 55, in __init__
    self._load()
  File "exceptions.py", line 58, in _load
    import litellm
  File "__init__.py", line 9, in <module>
    from litellm.llms.custom_httpx.http_handler import AsyncHTTPHandler, HTTPHandler
  File "http_handler.py", line 10, in <module>
    from litellm.caching import InMemoryCache
  File "__init__.py", line 1, in <module>
    from .caching import Cache, LiteLLMCacheType
  File "caching.py", line 22, in <module>
    from openai.types.audio.transcription_create_params import TranscriptionCreateParams
  File "__init__.py", line 8, in <module>
    from . import types
  File "__init__.py", line 5, in <module>
    from .batch import Batch as Batch
  File "batch.py", line 7, in <module>
    from .._models import BaseModel
  File "_models.py", line 24, in <module>
    from pydantic.fields import FieldInfo
  File "fields.py", line 20, in <module>
    from . import types
  File "types.py", line 39, in <module>
    from ._internal import _core_utils, _fields, _internal_dataclass, _typing_extra, _utils, _validators
  File "_core_utils.py", line 12, in <module>
    from . import _repr
  File "_repr.py", line 11, in <module>
    from . import _typing_extra
  File "_typing_extra.py", line 15, in <module>
    from typing_extensions import TypeIs, deprecated, get_args, get_origin
ImportError: cannot import name 'TypeIs' from 'typing_extensions' (C:\Python312\Lib\site-packages\typing_extensions.py). Did you mean: 'Type'?

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

No branches or pull requests

1 participant