rewonc / pastalog

Simple, realtime visualization of neural network training performance.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Client assembles URL incorrectly under Windows

nlessmann opened this issue · comments

The client (Log class) does not work under Windows because it assembles the URL using os.path.join(), which is intended for filesystem paths and not URLs:

self.url = os.path.join(url, 'data')

Under Windows, the path fragments are concatenated with a backslash, so that the URL turns out as "http://localhost:8120\data".

Thanks for the tip. I've switched to using urlparse in #2 .

Can you confirm that the following code works as expected in your environment?

from urlparse import urljoin
url = urljoin('localhost:8120', 'data')

Yes, then it works. Thanks!