URLError: <urlopen error [Errno 11004] getaddrinfo failed> when running a demo

Hi all,

This is my first time to run pylinac. I am using Spyder (Python 3.7) as the IDE under Windows. I am trying to run the Starshot demo by using the codes:
from pylinac import Starshot
Starshot.run_demo()

But it fails and gets the URLError: <urlopen error [Errno 11004] getaddrinfo failed>.

I would like to ask where can I place my username, password and proxy server address into the pylinac codes? Or is there any other settings I miss?
Btw, I can run pylinac.gui() with no problem.

Thank you very much for the help.

Rgds,
Li

Hi.

I set my HTTP_PROXY and HTTPS_PROXY settings as an environment variable (I do not need user and password).
https://docs.cloudfoundry.org/cf-cli/http-proxy.html#windows

with kind regards

Thomas

Thomas is probably right. This looks like a firewall issue. The file itself is available here. Pylinac just grabs it from there and downloads it.