[Ironpython-users] SSH/Telnet connection module to configure Ethernet switches both in IronPython and CPython?

Seungweon Park linuxsw at gmail.com
Thu Mar 14 20:09:20 CET 2013


Hi,

Our Linux team uses CPython 2.6 to run the test scripts which configure
switches by SSH/Telnet (Exscript/Crypto/Paramiko modules). I'd like to have
same environment in Windows team without a lot of changes.

So installed  CPython 2.6.2 on the Windows machine(W2K8 R2) and installed
above modules, then I can run the test scripts same as done in Linux
environment.

However, I'd like to use .Net feature(calling PS script/calling C# methods)
in Windows environment so installed IronPython 2.6.2 with Ironclad to use
CPython library from IronPython. In the meantime, I got following errors.
It looks like having a compatibility issue when importing multiprocessing
module used by Exscript.

Would you tell me how to fix this issue(any multiprocessing module for
IronPython, any alternatives?) or any workaround to use SSH/Telnet
connection from IronPython?

Thank you,
Seungweon.

C:\Users\Administrator>ipy -X:Frames
IronPython 2.6.2 (2.6.10920.0) on .NET 4.0.30319.1
Type "help", "copyright", "credits" or "license" for more information.
>>> import os,sys
>>> print sys.path
['.', 'C:\\Users\\Administrator', 'C:\\Users\\Administrator',
'C:\\IronPython26\\Lib', 'C:\\IronPython26\\DLLs', 'C:\\IronPython26',
C:\\IronPython26\\lib\\site-packages', 'c:\\python26\\lib']
>>> import ironclad
>>> sys.path.append("c:\\python26\\lib")
>>> sys.path.append("c:\\python26\\lib\\site-packages")
>>> sys.path.append("c:\\python26\\dlls")
>>> import Crypto
>>> import paramiko
>>> os.chdir("c:\\temp")
>>> import cisco
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "c:\temp\brocade.py", line 28, in <module>
  File "c:\python26\lib\site-packages\Exscript\__init__.py", line 26, in
<module>
  File "c:\python26\lib\site-packages\Exscript\Queue.py", line 25, in
<module>
  File "c:\python26\lib\multiprocessing\__init__.py", line 63, in <module>
  File "c:\python26\lib\multiprocessing\process.py", line 17, in <module>
ImportError: No module named signal
>>> import Exscript
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "c:\python26\lib\site-packages\Exscript\__init__.py", line 26, in
<module>
  File "c:\python26\lib\site-packages\Exscript\Queue.py", line 25, in
<module>
  File "c:\python26\lib\multiprocessing\__init__.py", line 63, in <module>
  File "c:\python26\lib\multiprocessing\process.py", line 17, in <module>
ImportError: No module named signal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20130314/110bc92e/attachment.html>


More information about the Ironpython-users mailing list