Re: [Ironpython-users] ctypes/struct: Why does this not work?

2012-12-18 Thread Jeff Hardy
On Fri, Dec 14, 2012 at 6:35 PM, Michael van der Kolff wrote: > For background, I'm trying to port paramiko to IronPython. With the > IronPyCrypto, we seem to have everything working apart from Pageant support. > > The question is, why does this not work? This is a simplified version of > what P

Re: [Ironpython-users] Using System.Diagnostics.Process results in Errno 22

2012-12-18 Thread Jeff Hardy
On Tue, Dec 18, 2012 at 1:54 PM, Jackie Sproat wrote: > However, using this with IronPython, results in Errno 22: The system cannot > find the file specified... > > file_name = 'java -jar "C:\Program Files\Sikuli X\sikuli-script.jar" ' My guess is the backslashes are causing problems. You ha

Re: [Ironpython-users] Using System.Diagnostics.Process results in Errno 22

2012-12-18 Thread Jackie Sproat
Using python I have no problem starting my process with subprocess.Popen('java -jar "C:\Program Files (x86)\Sikuli X\sikuli-script.jar" ' + finalname, shell=True) But, because the select module is not available, you can't use the subprocess module in IronPython. So, I have to use System.Diagno

Re: [Ironpython-users] Using Autofac with IronPython

2012-12-18 Thread Jeff Hardy
I've never heard of anyone trying to use it before. You might have to try it out and let us know if you run into difficulty. - Jeff On Tue, Dec 18, 2012 at 5:36 AM, Piotr Nestorow wrote: > Hi > > Is it possible to use Autofac in IronPython scripts? > More exactly: Is it possible to use Autofac t

Re: [Ironpython-users] No module named datetime

2012-12-18 Thread Keith Rome
Hello Ian. The easiest thing would probably be to just use the meta_path importer feature. This allows you to package up all of the standard library directly into your compiled host application, and the python runtime will be able to find them. The steps are pretty simple: 1. Find the standard

[Ironpython-users] Using Autofac with IronPython

2012-12-18 Thread Piotr Nestorow
Hi Is it possible to use Autofac in IronPython scripts? More exactly: Is it possible to use Autofac to find and register component types in an assembly and then use the components in the Python script? Example code: import clr clr.AddReference('Autofac') import System import Autofac clr.Im

Re: [Ironpython-users] No module named datetime

2012-12-18 Thread Nicholas Devenish
Hi Ian, The default runtime files for IronPython don't include the python standard library - they are installed when you install IronPython development, which is why it works on your development machine. The solution is to either include the standard library sources, and set up your applicatio

[Ironpython-users] No module named datetime

2012-12-18 Thread Ian Gorse
Hi list, I'm new to mailing lists so apologise if this is done incorrectly - I didn't know how to search the existing archives. I am still fairly new to IronPython but managed to pick it up quite quickly, however I have come to a stumbling block. I have currently developed a C# application that

[Ironpython-users] IronPython, Daily Digest 12/17/2012

2012-12-18 Thread no_reply
Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] Unclosed file handles after execution of ZipFile.extractall method -- ISSUES 1. [New comment] Unclosed file handles after exec