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

Exeption Occured #43

Closed
Sylensar opened this issue May 28, 2023 · 12 comments
Closed

Exeption Occured #43

Sylensar opened this issue May 28, 2023 · 12 comments

Comments

@Sylensar
Copy link

Initializing... Dependencies
Loading Waifu Vocal Pipeline...
Using model d:\Rainy4\AIwaifu\AIVoifu\voice_conversion/models\base_model.pth
Using cache found in C:\Users\Young/.cache\torch\hub\bshall_hubert_main
Loaded Waifu Vocal Pipeline
Initializing... Vtube Studio
Authenticated with VTube Studio...
Authentication token: 442a9155b175589dceb4db0ce26da5cff658d11f1658a5c2adf39f96e69ead5c
Status: {'apiName': 'VTubeStudioPublicAPI', 'apiVersion': '1.0', 'timestamp': 1685233452526, 'messageType': 'AuthenticationTokenResponse', 'requestID': 'TestInit', 'data': {'authenticationToken': '442a9155b175589dceb4db0ce26da5cff658d11f1658a5c2adf39f96e69ead5c'}}
Initialized
You: Hello there.
--------- Exception Occured ---------
if you have run the server on different device, please specify the ip address of the server with the port
Example: http://192.168.1.112:8267 or leave it blank to use localhost
please specify the ip address of the server with the port at:
*Line 52: HTTPConnectionPool(host='localhost', port=8267): Max retries exceeded with url: /waifuapi?command=chat&data=Hello+there. (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x00000179D0833310>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))

Idk if Im starting the server correctly or not.

@HRNPH
Copy link
Owner

HRNPH commented May 28, 2023

Try Checking The Vtuber Studio API Port if it was opened!

@Sylensar
Copy link
Author

Yes @HRNPH the Start API (allow plugins) is activated. Do I have to change the port from 8001 ?

@HRNPH
Copy link
Owner

HRNPH commented May 28, 2023

port should be the same as the error code below which is 8267
try changing it

@Sylensar
Copy link
Author

@HRNPH I dont even get the popup prompt anymore in VTube Studio

Traceback (most recent call last):
File "d:\Rainy4\AIwaifu\main.py", line 39, in
waifu = Char_control(port=8001, plugin_name='MyBitchIsAI', plugin_developer='HRNPH')
File "d:\Rainy4\AIwaifu\vtube_studio.py", line 89, in init
super().init(plugin_name, plugin_developer, port)
File "d:\Rainy4\AIwaifu\vtube_studio.py", line 23, in init
auth_status = self.auth()
File "d:\Rainy4\AIwaifu\vtube_studio.py", line 34, in auth
result = self.send("AuthenticationTokenRequest", msg)
File "d:\Rainy4\AIwaifu\vtube_studio.py", line 60, in send
raise Exception("Please start VTube Studio and enable the public API in the settings.")
Exception: Please start VTube Studio and enable the public API in the settings.

@Sylensar
Copy link
Author

@HRNPH Do I change it on line 39 too?

@Sylensar
Copy link
Author

Got it to pop up by changing line 39. now im getting this

Traceback (most recent call last):
File "d:\Rainy4\AIwaifu\main.py", line 79, in
answer, japanese_answer = answer[0], answer[1]
IndexError: list index out of range

sheesh

@HRNPH
Copy link
Owner

HRNPH commented May 28, 2023

this one could actually be a bug
I need to fix this by myself today

if you want to try solving it
you can try printing out the list value

at line 78 just log the answer list to see what happened, Last time I tested it it worked just fine tho

maybe it's just some random string format bug, you could try running it again maybe it'll work

@Sylensar
Copy link
Author

Sylensar commented May 28, 2023

@HRNPH

----------- Create Response --------------------------

answer = chat(con) # send message to api
answer = answer.split('<split_token>')
answer, japanese_answer = answer[0], answer[1]
answer.replace('Lilia:', '') # remove name from answer

where it says Asnwer.split? How I log it?

@HRNPH
Copy link
Owner

HRNPH commented May 28, 2023

do print answers after that line

@Sylensar
Copy link
Author

----------- Create Response --------------------------

answer = chat(con) # send message to api
answer = answer.split('<split_token>') print answers
answer, japanese_answer = answer[0], answer[1]
answer.replace('Lilia:', '') # remove name from answer

like so? Or you meant under it?

@HRNPH
Copy link
Owner

HRNPH commented May 28, 2023

answer = chat(con) # send message to api
answer = answer.split('<split_token>')
print(answer) # like this
answer, japanese_answer = answer[0], answer[1]
answer.replace('Lilia:', '') # remove name from answer

@HRNPH
Copy link
Owner

HRNPH commented Jul 10, 2023

try new installations with poetry
should now solve everything!

@HRNPH HRNPH closed this as completed Jul 10, 2023
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

2 participants