Looks like this is actually still in issue using the patched package in raring python-paramiko 1.7.7.1-3.1, and the similarly patched package in precise-proposed doesn't fix the issue either.
Results in a exception on both /w both raring and precise-proposed packages:
File "/usr/lib/python2.7/dist-packages/Crypto/Random/_UserFriendlyRNG.py", line 138, in _check_pid
raise AssertionError("PID check failed. RNG must be re-initialized after fork(). Hint: Try Random.atfork()")
AssertionError: PID check failed. RNG must be re-initialized after fork(). Hint: Try Random.atfork()
Exception in thread Thread-1 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
File "/usr/lib/python2.7/dist-packages/paramiko/transport.py", line 1578, in run
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'error'
Using a variation of a test case for the same bug found at http:// redes-privadas- virtuales. blogspot. com/2013/ 02/paramiko- object- with-process- rng-must. html.
Looks like this is actually still in issue using the patched package in raring python-paramiko 1.7.7.1-3.1, and the similarly patched package in precise-proposed doesn't fix the issue either.
Test case:
import paramiko
from multiprocessing import Process
class B():
self._ _process = None SSHClient( )
self._ _ssh.set_ missing_ host_key_ policy( paramiko. AutoAddPolicy( ))
self._ _ssh.connect( 'somelocalsyste m', username='adam', password='xxxxxx')
def __init__(self):
self.__ssh = paramiko.
def start(self):
self._ _process = Process( target= self.__ run_process)
self._ _process. start()
def __run_process( self): ssh.exec_ command( "hostname" )
_, stdout, _ = self.__
b = B()
b.start()
Results in a exception on both /w both raring and precise-proposed packages:
File "/usr/lib/ python2. 7/dist- packages/ Crypto/ Random/ _UserFriendlyRN G.py", line 138, in _check_pid python2. 7/threading. py", line 552, in __bootstrap_inner python2. 7/dist- packages/ paramiko/ transport. py", line 1578, in run AttributeError' >: 'NoneType' object has no attribute 'error'
raise AssertionError("PID check failed. RNG must be re-initialized after fork(). Hint: Try Random.atfork()")
AssertionError: PID check failed. RNG must be re-initialized after fork(). Hint: Try Random.atfork()
Exception in thread Thread-1 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
File "/usr/lib/
File "/usr/lib/
<type 'exceptions.