This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lothar
Recipients lothar
Date 2014-01-26.15:12:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390749180.01.0.603192717521.issue20398@psf.upfronthosting.co.za>
In-reply-to
Content
setup: python 3.2 ; cygwin64 

python crashes with a stackdump, which is attached.

stem is a python controller module for tor.

stem-1.1.1 can be had from here:
https://pypi.python.org/pypi/stem/

the code is in version 2 form, but "python3 setup install" runs 2to3 on it.

this code crashes before the for statement:

#! /usr/bin/env python3

import urllib.request
from stem import Signal
from stem.control import Controller

with Controller.from_port(port=9151) as controller:
  controller.signal(Signal.NEWNYM)

for nn in range(1, 3):
  print("case %02d" % nn)
  proxy_support = urllib.request.ProxyHandler({"socks5" : "127.0.0.1:9150"})
  opener = urllib.request.build_opener(proxy_support)
  urllib.request.install_opener(opener)
  print(urllib.request.urlopen("http://www.ifconfig.me/ip").read())
History
Date User Action Args
2014-01-26 15:13:00lotharsetrecipients: + lothar
2014-01-26 15:13:00lotharsetmessageid: <1390749180.01.0.603192717521.issue20398@psf.upfronthosting.co.za>
2014-01-26 15:12:59lotharlinkissue20398 messages
2014-01-26 15:12:59lotharcreate