Koischizo / AI-Vtuber

AI Livestreamer for Youtube
https://www.youtube.com/watch?v=1MrDnLBc-wQ
MIT License
384 stars 91 forks source link

i got this problem can somoene help #17

Open KiyoshiTheBoss opened 1 year ago

KiyoshiTheBoss commented 1 year ago

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 commented 1 year ago

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_apiresource.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 commented 1 year ago

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

image

meet447 commented 1 year ago

meet447 commented Apr 15, 2023

this should fix the issue

Sylensar commented 1 year ago

@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 commented 1 year ago

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)