HTTPConnectionPool for python
See original GitHub issueWhen 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:
- Created 7 years ago
- Comments:12 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry… Forget to start the server…
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 usingscreen
ortmux
)