[Ironpython-users] IronPython, Daily Digest 8/30/2014
CodePlex
no_reply at codeplex.com
Sun Aug 31 09:28:37 CEST 2014
Hi ironpython,
Here's your Daily Digest of new issues for project "IronPython".
In today's digest:ISSUES
1. [New comment] PYC - Allow the Setting of the Icon if generating EXE
2. [New issue] Paramiko in python script throws exception :TypeError: expected _counter, got _counterStarting ...
----------------------------------------------
ISSUES
1. [New comment] PYC - Allow the Setting of the Icon if generating EXE
http://ironpython.codeplex.com/workitem/22138
User slide_o_mix has commented on the issue:
"<p>Implemented in https://github.com/IronLanguages/main/pull/212</p>"-----------------
2. [New issue] Paramiko in python script throws exception :TypeError: expected _counter, got _counterStarting ...
http://ironpython.codeplex.com/workitem/35515
User jamini has proposed the issue:
"Hi Team,
From our c# application, we are executing python (IronPython Version-2.7, 32-bit) scripts with the help of clrzmq (Version-2.2.5, 32-bit) for inter process communication. From that python scripts we were trying to connect to SSH using paramiko which is of 32-bit (Application runs in Any CPU mode).
We were able to run the python scripts from command prompt and connecting to SSH without any issues, but when we try to run the same from our c# application it is throwing us the following exception.
Traceback (most recent call last):
File "C:......\Sample.py", line 39, in <module>
File "C:.......\ Sample1.py", line 674, in init
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\paramiko\client.py", line 242, in connect
File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\paramiko\transport.py", line 346, in start_client
TypeError: expected _counter, got _counterStarting ...
The python code which we have written is as follows:
Sample.py:
....
sys.path.append ("C:\Program Files (x86)\IronPython 2.7\Lib")
....
sys.path.append ("C:\..\..\SampleLibrary")
import Sample1
d = Sample1.d
.....
print 'Initiating Paramiko interface'
print 'Starting ...'
.........
sshSession = Sample1.SampleSSH ('190.167.22.3', 'abc', 'abc')
theResult = sshSession.SSHCommand('...')
print "The result ..."
print theResult
Sample1.py :
from array import *
sys.path.append("C:\Program Files (x86)\IronPython 2.7\clrzmq.2.2.5")
clr.AddReference("clrzmq.dll")
from System.Text import Encoding
import ZMQ as zmq
from ZMQ import SocketType
sys.path.append("C:\Program Files (x86)\IronPython 2.7\Lib\site-packages")
sys.path.append("C:\Program Files (x86)\IronPython 2.7\DLLs")
clr.AddReference("IronPyCrypto.dll")
import paramiko
......
class SampleSSH:
def __init__(self, IP, user, password):
self.ssh = paramiko.SSHClient()
self.ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
self.ssh.connect(IP, username=user,
password=password)
self.retStr=''
self.sessionBuffer=''
def SSHCommand( self, Command):
self.retStr=''
d.debug( 'SSHCommand: ' + Command )
stdin,stdout,stderr = self.ssh.exec_command(Command)
for line in stdout.readlines():
d.debug( line )
self.retStr = self.retStr + line
self.sessionBuffer = self.sessionBuffer + 'Command: ' + Command + '\r\n'
self.sessionBuffer = self.sessionBuffer + self.retStr + '\r\n'
return self.retStr
Could you please suggest us the better approach to be followed to resolve this issue?
Thanks,
Jamini Mungara."
----------------------------------------------
----------------------------------------------
You are receiving this email because you subscribed to notifications on CodePlex.
To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20140831/1c93fd65/attachment.html>
More information about the Ironpython-users
mailing list