torrvision / crayon

A language-agnostic interface to TensorBoard
MIT License
779 stars 59 forks source link

EINTR not handled #45

Open motiwari opened 6 years ago

motiwari commented 6 years ago

Often with the function net.summary.add_scalar_value(...), I intermittently get the following error:

requests.exceptions.ConnectionError: HTTPConnectionPool(host=IP, port=8889): Max retries exceeded with url: /data/scalars?xp=VGG&name=Train%20R%5E2 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at MEMORY_ADDRESS>: Failed to establish a new connection: [Errno 4] Interrupted system call',))

My pycrayon server is on my local machine whereas the computation (that is sending this request) is on a remote machine.

This is in the Python 2.7 version of pycrayon. I think that this request should be retried until it succeeds, as per https://stackoverflow.com/questions/14136195/what-is-the-proper-way-to-handle-in-python-ioerror-errno-4-interrupted-syst, which is the default behavior in Python 3.5.

I'm new to pytorch and crayon, so please forgive me if I'm mistaken.