Ubuntu Pastebin

Paste from _Opj at Sun, 4 Jan 2015 18:23:34 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#this error msg from python 2.7

>>> import stem
>>> from stem.control import Controller
>>> with Controller.from_port ( port = 9051 ) as controller:
	controller.authenticate ( )

	

Traceback (most recent call last):
  File "<pyshell#4>", line 1, in <module>
    with Controller.from_port ( port = 9051 ) as controller:
  File "/usr/lib/python2.7/dist-packages/stem/control.py", line 659, in from_port
    control_port = stem.socket.ControlPort(address, port)
  File "/usr/lib/python2.7/dist-packages/stem/socket.py", line 314, in __init__
    self.connect()
  File "/usr/lib/python2.7/dist-packages/stem/socket.py", line 187, in connect
    self._socket = self._make_socket()
  File "/usr/lib/python2.7/dist-packages/stem/socket.py", line 343, in _make_socket
    raise stem.SocketError(exc)
SocketError: [Errno 111] Connection refused
Download as text