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

bug 1: Couldn't find FFMPEG and Bug 2: OpenAI API key error #42

Open
jazir555 opened this issue Mar 11, 2025 · 1 comment
Open

bug 1: Couldn't find FFMPEG and Bug 2: OpenAI API key error #42

jazir555 opened this issue Mar 11, 2025 · 1 comment

Comments

@jazir555
Copy link

xx@DESKTOP-651G35L MINGW64 /c/Windows/system32/AutoAgent
$ auto agent editor
C:\Users\xx\AppData\Local\Programs\Python\Python312\Lib\site-packages\pydub\utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'.

Traceback (most recent call last):
File "C:\Users\xx\AppData\Local\Programs\Python\Python312\Lib\site-packages\litellm\llms\openai\openai.py", line 602, in completion
raise e
File "C:\Users\xx\AppData\Local\Programs\Python\Python312\Lib\site-packages\litellm\llms\openai\openai.py", line 515, in completion
openai_client: OpenAI = self._get_openai_client( # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xx\AppData\Local\Programs\Python\Python312\Lib\site-packages\litellm\llms\openai\openai.py", line 326, in _get_openai_client
_new_client = OpenAI(
^^^^^^^
File "C:\Users\xx\AppData\Local\Programs\Python\Python312\Lib\site-packages\openai_client.py", line 110, in init
raise OpenAIError(
openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\xx\AppData\Local\Programs\Python\Python312\Lib\site-packages\litellm\main.py", line 1595, in completion
raise e
File "C:\Users\xx\AppData\Local\Programs\Python\Python312\Lib\site-packages\litellm\main.py", line 1568, in completion
response = openai_chat_completions.completion(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xx\AppData\Local\Programs\Python\Python312\Lib\site-packages\litellm\llms\openai\openai.py", line 612, in completion
raise OpenAIError(
litellm.llms.openai.common_utils.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\xx\AppData\Local\Programs\Python\Python312\Scripts\auto.exe_main
.py", line 7, in
File "C:\Users\xx\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1161, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xx\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1082, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\xx\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xx\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xx\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 788, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Windows\System32\AutoAgent\autoagent\cli.py", line 82, in agent
response = mc.run(agent, messages, context_storage, debug=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Windows\System32\AutoAgent\autoagent\core.py", line 428, in run
completion = self.get_chat_completion(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Windows\System32\AutoAgent\autoagent\core.py", line 173, in get_chat_completion
completion_response = completion(**create_params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xx\AppData\Local\Programs\Python\Python312\Lib\site-packages\litellm\utils.py", line 980, in wrapper
raise e
File "C:\Users\xx\AppData\Local\Programs\Python\Python312\Lib\site-packages\litellm\utils.py", line 861, in wrapper
result = original_function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xx\AppData\Local\Programs\Python\Python312\Lib\site-packages\litellm\main.py", line 2951, in completion
raise exception_type(
^^^^^^^^^^^^^^^
File "C:\Users\xx\AppData\Local\Programs\Python\Python312\Lib\site-packages\litellm\litellm_core_utils\exception_mapping_utils.py", line 2141, in exception_type
raise e
File "C:\Users\xx\AppData\Local\Programs\Python\Python312\Lib\site-packages\litellm\litellm_core_utils\exception_mapping_utils.py", line 314, in exception_type
raise AuthenticationError(
litellm.exceptions.AuthenticationError: litellm.AuthenticationError: AuthenticationError: OpenAIException - The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable

@jazir555
Copy link
Author

FFMPEG is definitely already installed via k-lite codec pack btw

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