zeromq/pyzmq — Issue #159: tunnel.py should use range instead of xrange for Python 3
Author: rfehren
Created: 2011-11-30 09:50:00+00:00
State: open

ssh.tunnel_connection(socket, "tcp://127.0.0.1:5555", "localhost")
File "/usr/local/lib/python3.2/dist-packages/zmq/ssh/tunnel.py", line 133, in tunnel_connection
new_url, tunnel = open_tunnel(addr, server, keyfile=keyfile, password=password, paramiko=paramiko, timeout=timeout)
File "/usr/local/lib/python3.2/dist-packages/zmq/ssh/tunnel.py", line 149, in open_tunnel
lport = select_random_ports(1)[0]
File "/usr/local/lib/python3.2/dist-packages/zmq/ssh/tunnel.py", line 47, in select_random_ports
for i in xrange(n):
NameError: global name 'xrange' is not defined

With range, everything works fine. Something else: Why don't you bundle pexpect with pyzmq as well, especially since the released version doesn't support Python 3. The version bundled with ipython does.

Cheers,

Roland