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.

HTTPConnectionPool for python

See original GitHub issue

When I try

import visdom
import numpy as np
vis = visdom.Visdom()
vis.text('Hello, world!')
vis.image(np.ones((10, 10, 3)))

I got this:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/visdom/__init__.py", line 170, in _send
    data=msg
  File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 110, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 56, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 488, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 609, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 487, in send
    raise ConnectionError(e, request=request)
ConnectionError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /events (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fa5b40f3690>: Failed to establish a new connection: [Errno 111] Connection refused',))

Actually the first time I launched the web successfully. But after that it cannot work anymore even I restart the computer.

Issue Analytics

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

github_iconTop GitHub Comments

12reactions
onlytaileicommented, Mar 17, 2017

Sorry… Forget to start the server…

6reactions
lvdmaatencommented, Aug 16, 2017

You should run the python -m visdom.server command from your terminal, not in the python REPL. Make sure the server is running, so start in it a separate terminal window (potentially using screen or tmux)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Requests HTTPConnectionPool and Max retries ...
On a Linux cluster, I get this error with Requests: ConnectionError: HTTPConnectionPool(host='andes- ...
Read more >
Connection Pools - urllib3 1.26.13 documentation
HTTPConnectionPool (host, port=None, strict=False, timeout=<object object>, maxsize=1, block=False, headers=None, ... This parameter is ignored in Python 3.
Read more >
Python - Connection Re-use - Tutorialspoint
Python - Connection Re-use, When a client makes a valid request to a server, ... import HTTPConnectionPool pool = HTTPConnectionPool('ajax.googleapis.com', ...
Read more >
http.client — HTTP protocol client — Python 3.11.1 ...
An HTTPConnection instance represents one transaction with an HTTP server. It should be instantiated by passing it a host and optional port number....
Read more >
ConnectionError: HTTPConnectionPool(host='localhost', port ...
ConnectionError: HTTPConnectionPool(host='localhost', port=8080) #13 ... I am currently using Spark 3.0.2 and Python 3.8.8.
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