logan-markewich/llama_index_starter_pack

OSError: [WinError 10049] The requested address is not valid in its context.

Lufffya opened this issue · 6 comments

https://github.com/logan-markewich/llama_index_starter_pack

run python ./flask_demo.py & and get error:
OSError: [WinError 10049] The requested address is not valid in its context.

@Luffffffy did you modify any of the other ports?
Do you have something already running on localhost:5601?

You might have to try a different port (defined at the bottom of flask_demo.py). You'll also have to update the port in the api calls in the react front-end if you are using that

In fact, I did not modify any ports and also checked that were no occupied ports and I have tried using other ports.
However, this error occurred an I have given up using the example.
Thank you!!!

@Lufffya sorry to hear about that!

Something running on windows is causing the ports to not be available. You can modify them as I mentioned and then the code should work. Either that or it's a firewall issue 🤔

@Lufffya actually, in the flask_demo.py file, you can change the host from "0.0.0.0" to "localhost", or remove the host argument entirely, and that should help too

@logan-markewich Thank you, I ran it successfully!
The problem is that I missed a place:
BaseManager(('', 5602), b'password') modify to BaseManager(('127.0.0.1', 5602), b'password')
I don't know anything about "BaseManager", I'm so stupid.

@Lufffya Nah not stupid, it's very new to me too! First project where I used it haha

Glad it worked out though 💪