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

i got this problem can somoene help #17

Open
KiyoshiTheBoss opened this issue Mar 31, 2023 · 5 comments
Open

i got this problem can somoene help #17

KiyoshiTheBoss opened this issue Mar 31, 2023 · 5 comments

Comments

@KiyoshiTheBoss
Copy link

PS C:\Users\60107\Downloads\AI-Vtuber-main> & "C:/Program Files/Python311/python.exe" c:/Users/60107/Downloads/AI-Vtuber-main/AI-Vtuber-main/run.py
C:\Users\60107\AppData\Roaming\Python\Python311\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)
Unable to open JSON file.

@KiyoshiTheBoss
Copy link
Author

and i also got this when streaming
PS C:\Users\60107\Desktop\AI-Vtuber-main> python run.py -id oO0RFzUHvSc
C:\Users\60107\AppData\Roaming\Python\Python311\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)

\Running!

2023-03-31 16:00:08 [Stories maker]- k

Traceback (most recent call last):
File "C:\Users\60107\Desktop\AI-Vtuber-main\run.py", line 149, in
read_chat()
File "C:\Users\60107\Desktop\AI-Vtuber-main\run.py", line 113, in read_chat
response = llm(message)
^^^^^^^^^^^^
File "C:\Users\60107\Desktop\AI-Vtuber-main\run.py", line 130, in llm
response = openai.Completion.create(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\60107\AppData\Roaming\Python\Python311\site-packages\openai\api_resources\completion.py", line 25, in
create
return super().create(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\60107\AppData\Roaming\Python\Python311\site-packages\openai\api_resources\abstract\engine_api_resource.py", line 153, in create
response, _, api_key = requestor.request(
^^^^^^^^^^^^^^^^^^
File "C:\Users\60107\AppData\Roaming\Python\Python311\site-packages\openai\api_requestor.py", line 226, in request
resp, got_stream = self._interpret_response(result, stream)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\60107\AppData\Roaming\Python\Python311\site-packages\openai\api_requestor.py", line 619, in _interpret_response
self._interpret_response_line(
File "C:\Users\60107\AppData\Roaming\Python\Python311\site-packages\openai\api_requestor.py", line 679, in _interpret_response_line
raise self.handle_error_response(
openai.error.AuthenticationError: You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY), or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.

@meet447
Copy link

meet447 commented Apr 15, 2023

u need to install ffmpeg and then add its path in your enviornment variable

image

@meet447
Copy link

meet447 commented Apr 15, 2023

**meet447 ** commented Apr 15, 2023

this should fix the issue

@Sylensar
Copy link

@meet447 I have the same error without the FFMPEG popping up anymore. Im trying to use Twitch instead of Youtube. Could that be it?

@batgirldee
Copy link

Keepgetting this as well

C:\Users\plane\AppData\Local\Programs\Python\Python311\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)

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

4 participants