question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Issue with `Visdom.check_connection` method on the first call

See original GitHub issue

Hi,

There is an issue appeared with the version 0.1.8.1 such that in one terminal I run :

# python3 -m visdom.server
Downloading scripts. It might take a while.
It's Alive!
INFO:root:Application Started
You can navigate to http://68a369ae3552:8097

and without exiting the server in the next terminal I run multiple times vis.check_connection() to check the connection:

# python3 -c "import time, visdom; vis=visdom.Visdom(); print([vis.check_connection() for _ in range(5)])"
> [False, True, True, True, True]

# python3 -c "import time, visdom; vis=visdom.Visdom(); print([vis.check_connection() for _ in range(5)])"
> [False, True, True, True, True]

same in the console:

Python 3.5.2 (default, Nov 23 2017, 16:37:01)
>>> import visdom; v = visdom.Visdom(); print(v.check_connection())
False
>>> import visdom; v = visdom.Visdom(); print(v.check_connection())
True
>>> import visdom; v = visdom.Visdom(); print(v.check_connection())
True

Probably, it is not a correct behaviour. Any suggestions to workaround, please ? Thanks

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
vfdev-5commented, May 14, 2018

@JackUrb yes I have the same impression that it is related with the initialization time. I think this could be a workaround:

Python 3.5.2 (default, Nov 23 2017, 16:37:01)
>>> import visdom
>>> import time; vis = visdom.Visdom(); time.sleep(1); print(vis.check_connection())
True
1reaction
JackUrbcommented, May 14, 2018

Thanks for the catch! I’ll see what’s going on here and push a fix asap!

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Bug] Issue with Visdom.check_connection method on the first ...
Hi, There is an issue appeared with the version 0.1.8.1 such that in one terminal I run : # python3 -m visdom.server Downloading...
Read more >
Dynamic Bandwidth Detection (BWCheck) - Wowza Community
Hi! I've played a bit with BWCheck module and found probable bug here: line #128 (ModuleBWCheck2.java):. deltaTime = (double) ((now - start) ...
Read more >
Printer won't stay connected to network, drops constantly! - iFixit
I am able to successfully configure it and it works for an hour or so but the next day it displays an error...
Read more >
A Guide to Microvisor Networking - Twilio
Discover how application code can take advantage of Twilio Microvisor's powerful, flexible, and secure Internet connectivity.
Read more >
Test Builds - Sequel Pro
Commit Status Age Author cbf4cea55b Pending 2 years, 5 months Abhi Beckert 0e28394387 Pending 2 years, 5 months Abhi Beckert 22325d265f Pending 2 years, 5 months...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found