[paramiko] _def_urandom is not defined

Justin Cook jhcook at gmail.com
Tue Feb 12 00:42:28 PST 2008


When using paramiko-1.7.2 I receive the following error when
attempting to connect to hosts:

*** Caught exception: exceptions.NameError: global name '_def_urandom'
is not defined
Traceback (most recent call last):
  File "./demo_simple.py", line 83, in ?
    t.connect(username=username, password=password, hostkey=hostkey)
  File "/usr/lib/python2.3/site-packages/paramiko/transport.py", line
931, in connect
    self.start_client()
  File "/usr/lib/python2.3/site-packages/paramiko/transport.py", line
398, in start_client
    raise e
NameError: global name '_def_urandom' is not defined


Apparently, line 47 in 'site-packages/paramiko/osrandom.py' has a
typographical error and should read 'return _dev_urandom.read(bytes)'
versus 'return _def_urandom.read(bytes)'.

A quick search did not reveal any pointers to this problem, so I
thought I'd pass it along. I am running on RHEL4 Update6 (Nahant).

Cheers,

-- 
Justin Cook

http://www.linkedin.com/in/jhcook



More information about the paramiko mailing list