Python "cannot assign requested address"

My webserver in my gitpod below is “unable to bind to an address”. Has anyone encountered this before?

OSError: [Errno 99] error while attempting to bind on address ('::1', 8080, 0, 0): cannot assign requested address

https://gitpod.io/#https://github.com/DrewLazzeriKitware/trame

I’ve been unable to replicate this — what command are you running to start your server?

Thanks for the prompt response!

From .gitpod.yml:

tasks:
  - init: pip install -r examples/PlainPython/ChartsAltair/requirements.txt
    command: trame examples/PlainPython/ChartsAltair/app.py

So the command is trame examples/PlainPython/ChartsAltair/app.py. Here, trame is a wrapper for python (substituting python in gives the same error for me).

When you say you are unable to replicate this, do you mean you get a different result when clicking the gitpod.io link to this repo? I’d be very curious what output you see instead in that case.

I think it was also trying to bind to the cluster IP(check /etc/hosts for reference) that you don’t have the privilege to, hence fails.

I was able to run it by specifying the localhost IP manually like so:

trame -i 127.0.0.1 examples/PlainPython/ChartsAltair/app.py

Hope this helps!

1 Like

That helps a lot! Thank you both!

1 Like