Re: [Ironpython-users] ctypes on IronPython - differences with CPython

2012-11-29 Thread Vernon Cole
One argument you can make for merging your changes back into trunk is that they will have to fix the unicode issues for Python 3 anyway, so you have already done that part of the work for them. On Thu, Nov 29, 2012 at 5:46 PM, Michael van der Kolff < [email protected]> wrote: > Yep, that wo

Re: [Ironpython-users] Paramiko/IronPyCrypto on IronPython

2012-11-29 Thread Michael van der Kolff
Please disambiguate "it". For installing paramiko, in the place where I've got the git repo, I just say "ipy setup.py install", and it all works. I have to write something for IronPyCrypto - so far, my method is "copy into site-packages, then copy the .NET assembly to %IRONPYTHONINSTALL%\DLLs", w

[Ironpython-users] Paramiko/IronPyCrypto on IronPython

2012-11-29 Thread Michael van der Kolff
IronPyCrypto (available at https://bitbucket.org/mvdk/ironpycrypto) works well enough to use for paramiko. I have a branch of paramiko at github.com/mvanderkolff/paramiko, where I'm trying to get paramiko talking to Pageant for IronPython. When starting up paramiko, I get a DeprecationWarning say

Re: [Ironpython-users] ctypes on IronPython - differences with CPython

2012-11-29 Thread Michael van der Kolff
Yep, that works! Paramiko's agent handling has all kinds of string==bytestring assumptions, so I'll need to write some patches for that. My repo for that work: https://github.com/mvdk/paramiko. Cheers, Michael On Fri, Nov 30, 2012 at 11:08 AM, Jeff Hardy wrote: > No, that should work. Can y

Re: [Ironpython-users] ctypes on IronPython - differences with CPython

2012-11-29 Thread Jeff Hardy
No, that should work. Can you try it with FindWindowW? Perhaps there's a unicode issue (IronPython strings are unicode). One other thing to try would be FindWindowA(b'Pageant', b'Pageant') to force it to use byte strings. - Jeff On Thu, Nov 29, 2012 at 3:55 PM, Michael van der Kolff wrote: > In

[Ironpython-users] ctypes on IronPython - differences with CPython

2012-11-29 Thread Michael van der Kolff
In paramiko, we try to find a Pageant window using either the win32all module or the ctypes module. win32all is not implemented on IronPython, which is to be expected, but ctypes is. However, FindWindowA doesn't do what we expect: On CPython: >>> import ctypes >>> ctypes.windll.user32.FindWindowA

Re: [Ironpython-users] IronPyCrypto: Builds and passes unit tests on IPy 2.7.2

2012-11-29 Thread Jeff Hardy
Wow, good work. Did you get paramiko working? - Jeff On Thu, Nov 29, 2012 at 12:39 AM, Michael van der Kolff wrote: > I forked djlawler's old effort, mostly in an effort to get paramiko working > (essential for any good set of integration tests written in Python :)). The > present tree is at ht

[Ironpython-users] IronPyCrypto: Builds and passes unit tests on IPy 2.7.2

2012-11-29 Thread Michael van der Kolff
I forked djlawler's old effort, mostly in an effort to get paramiko working (essential for any good set of integration tests written in Python :)). The present tree is at https://bitbucket.org/mvdk/ironpycrypto. It now builds, and passes the unit tests that were present. I don't quite yet unders