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 FileNotFoundError in proxy_cli.py line 12 #3069

Closed
THOTH315 opened this issue Jan 30, 2025 · 1 comment
Closed

Uncaught FileNotFoundError in proxy_cli.py line 12 #3069

THOTH315 opened this issue Jan 30, 2025 · 1 comment

Comments

@THOTH315
Copy link

Aider version: 0.72.4.dev43+g24c7d145
Python version: 3.12.2
Platform: macOS-14.7.1-x86_64-i386-64bit
Python implementation: CPython
Virtual environment: No
OS: Darwin 23.6.0 (64bit)
Git version: git version 2.48.1

An uncaught exception occurred:

Traceback (most recent call last):
  File "aider", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 756, in main
    main_model = models.Model(
                 ^^^^^^^^^^^^^
  File "models.py", line 968, in __init__
    res = self.validate_environment()
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "models.py", line 1214, in validate_environment
    res = litellm.validate_environment(model)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "llm.py", line 25, in __getattr__
    self._load_litellm()
  File "llm.py", line 35, in _load_litellm
    self._lazy_module = importlib.import_module("litellm")
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "__init__.py", line 1249, in <module>
    from .proxy.proxy_cli import run_server
  File "proxy_cli.py", line 12, in <module>
    sys.path.append(os.getcwd())
                    ^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory

Copy link

Thanks for trying aider and filing this issue.

This looks like a duplicate of #3029. Please see the comments there for more information, and feel free to continue the discussion within that issue.

I'm going to close this issue for now. But please let me know if you think this is actually a distinct issue and I will reopen this issue.

Note: A bot script made these updates to the issue.

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