I'm newbie in stem (Tor framework in python). I have windows 10 64 bit with python27 installed and stem library and Tor browser. When I want to start my first code as below:
import sys
from stem.connection import connect
if __name__ == '__main__':
controller = connect()
if not controller:
sys.exit(1) # unable to get a connection
print 'Tor is running version %s' % controller.get_version()
controller.close()
I get this error:
Unable to connect to tor. Are you sure it's running?
Please help me what must I do.