Niranjini / sshpt

Automatically exported from code.google.com/p/sshpt
0 stars 0 forks source link

sshpt on CentOS 5.5 with Python 2.4 - Queue instance has no attribute 'task_done' #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When running the sshpt.py, I keep getting the error below.

I am running this on CentOS 5.5 which has python 2.4 and paramiko 1.7.6 (see 
rpm listing below).

[machine]# ./sshpt.py -t 1 -f hostlist.txt "date"
Password:
Queue instance has no attribute 'task_done'
"10.10.10.1","SUCCESS","2010-11-13 07:48:42.643668","date","Sat Nov 13 07:48:25 
EST 2010"
Exception in thread OutputThread:
Traceback (most recent call last):
  File "/usr/lib64/python2.4/threading.py", line 442, in __bootstrap
    self.run()
  File "./sshpt.py", line 122, in run
    self.output_queue.task_done()
AttributeError: Queue instance has no attribute 'task_done'

caught KeyboardInterrupt, exiting...
[machine]# rpm -aq | grep "python-"
python-sqlite-1.1.7-1.2.1
python-2.4.3-27.el5
python-elementtree-1.2.6-5
audit-libs-python-1.7.17-3.el5
python-crypto-2.0.1-4.el5.2
python-urlgrabber-3.1.0-5.el5
python-paramiko-1.7.6-1.el5

Original issue reported on code.google.com by nileshba...@gmail.com on 13 Nov 2010 at 5:52

GoogleCodeExporter commented 8 years ago
Per the Requirements section on the SSHPT front page 
(http://code.google.com/p/sshpt/):
"The SSH Power Tool requires Python 2.5+ (not 3.0+ yet)...".

Original comment by preston....@gmail.com on 20 Nov 2010 at 8:21

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
get newer source scripts of Queue.py (python>2.5) from python.org

and 

editing Queue.py in library directory would work

Original comment by h.kyu.c...@gmail.com on 12 Apr 2011 at 9:30

GoogleCodeExporter commented 8 years ago
sshpt seems to be working ok on Centos5.6 with python version 2.4.3 i get a 
warning in the begning which i can ignore for now

RandomPool_DeprecationWarning: This application uses RandomPool, which is 
BROKEN in 
older releases.  See http://www.pycrypto.org/randpool-broken
Enter list of hosts (one entry per line). Ctrl-D to end input.

then i get the following error , looking at the previous comments what are the 
changes are i need to do to Queue.py so that sshpt does not spit errors?

Exception in thread OutputThread:
Traceback (most recent call last):
  File "/usr/lib64/python2.4/threading.py", line 442, in __bootstrap
    self.run()
  File "/usr/lib/python2.4/site-packages/sshpt-1.2.0-py2.4.egg/EGG-INFO/scripts/sshpt.py", line 124, in run
    self.output_queue.task_done()
AttributeError: Queue instance has no attribute 'task_done'

caught Exception...
Queue instance has no attribute 'join'

-Satya

Original comment by satyaa...@gmail.com on 29 Aug 2011 at 8:12