LuteOrg / lute-v3

LUTE = Learning Using Texts: learn languages through reading.
https://luteorg.github.io/lute-manual/
MIT License
491 stars 46 forks source link

Installing Error (Newbie on Python #507

Closed Hakan108 closed 2 weeks ago

Hakan108 commented 3 weeks ago

Hello,

While installing it I got an error message as follow:

_When you're finished reading, stop this process with Ctrl-C or your system equivalent.

Lute v3.5.8 is running. Open a web browser, and go to:

  http://localhost:5001

Error during startup: Type: <class 'OSError'> [WinError 10049] The requested address is not valid in its context

Please check your setup and try again. Ask for help on Discord, or report an issue on GitHub. Additionally, help is available with --help_

jzohrab commented 3 weeks ago

Ah thanks @Hakan108 - that's a new one for me. Google might have something useful to say.

jzohrab commented 3 weeks ago

Hi @Hakan108 -- this is happening due to your computer configuration, so hopefully I can guide you to fix it. Maybe not though, I'm flying blind, so it might be best to chat on discord with me or others!

Some background: Lute starts the server running on IP 0.0.0.0 on your system, so that any other devices like tablets, phones, on your network can also connect to Lute using your computer's IP. It seems like your computer doesn't have that set up, or maybe it has some rules blocking its use.

Maybe you can configure the firewall to allow incoming connections for 0.0.0.0 on the specified port (e.g., 5000 or 5001). In Windows, go to Control Panel > System and Security > Windows Defender Firewall > Advanced settings, and add a new Inbound Rule for the port.

Give that a shot, see if you can sort it out. Check on Discord too, and google too.

(I should add a "--local" flag to the startup or something like it, so that it starts running on a different IP address (still localhost, but only available on that machine), which should also resolve this issue. But see if you can sort out your computer network configuration first)

Cheers!

jzohrab commented 3 weeks ago

ps - if you can't sort it out, I've added a "--local" flag that you use at startup which should resolve this issue. Should!! That will be in the next release.

python -m lute.main --local

jzohrab commented 3 weeks ago

I'm marking this as fixed and done :-) but that's only on the code side for the next release. See if you can sort out the configuration and let me know. Thanks!

jzohrab commented 2 weeks ago

Hi there, I've added a --local flag to the startup in version 3.5.9, so you should be able to use that. Please update and let me know! I'll close this issue for now, we can reopen it if needed.