[IronPython] 2.0 deployment

Howland-Rose, Kyle Kyle.Howland-Rose at aar.com.au
Tue Mar 10 08:08:50 CET 2009


Thanks Dody.  The error was because I did not deploy Lib and the types module is in Lib.

I can see that I can successfully deploy by copying the whole of IronPython.
It would be neater to turn the script(s) into an exe and deploy that.  
I have only found IPy 1.0 doco on this and the 1.0 doco did not work on 2.0.

Does anyone know of good IPy 2.0 doco on how to turn IPy scripts into an exe?

Thanks Dody, thanks all.

Kyle

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Dody Gunawinata
Sent: Tuesday, 10 March 2009 5:29 PM
To: Discussion of IronPython
Subject: Re: [IronPython] 2.0 deployment

1. You will need to deploy all the lib

* ipy.exe
* IronPython.dll
* IronPython.Modules.dll
* Microsoft.Scripting.Core.dll
* Microsoft.Scripting.dll
* Microsoft.Scripting.ExtensionAttribute.dll

The last three dlls are DLR which IP 2.0 relies on.

I never use ipy to deploy application so I'm not sure about the error
you get. It looks like a search path problem. Run ipy.exe in
interactive mode and - I think  - type in dir(type) to check whether
ipy has access to the types you need.

Dody G.

On Tue, Mar 10, 2009 at 7:57 AM, Howland-Rose, Kyle
<Kyle.Howland-Rose at aar.com.au> wrote:
>
> Hi Dody,
>
> Fair question :)
>
> Just a script run from the Windows scheduler that reads a database and writes some files.
>
> Kyle
> -----Original Message-----
> From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Dody Gunawinata
> Sent: Tuesday, 10 March 2009 4:38 PM
> To: Discussion of IronPython
> Subject: Re: [IronPython] 2.0 deployment
>
> What kind of application are you trying to deploy?  ASP.Net with IP
> support? Application with hosted IP? IP scripts?
>
> Dody G.
>
> On Tue, Mar 10, 2009 at 5:27 AM, Howland-Rose, Kyle
> <Kyle.Howland-Rose at aar.com.au> wrote:
>> Hi all,
>>
>> My understanding of http://www.ironpython.info/index.php/Deployment is that
>> when deploying to Windows the following need to be deployed:
>> * .NET 2.0 or 3.0 installed
>> * ipy.exe
>> * IronPython.dll
>> * IronMath.dll
>>
>> I thought the IPy 2.0 equiv might be to copy:
>> * ipy.exe
>> * IronPython.dll
>> * IronPython.Modules.dll
>> * Microsoft.Scripting.Core.dll
>> * Microsoft.Scripting.dll
>> * Microsoft.Scripting.ExtensionAttribute.dll
>>
>> but if I then run test.py which imports types I get
>> C:\test>ipy.exe test.py
>> Traceback (most recent call last):
>>   File "test.py", line 1, in test.py
>> ImportError: No module named types
>> C:\test>
>>
>> Questions:
>>
>> 1. Do I need to deploy all of Lib?
>>
>> 2. Where should I have been reading about this (sorry).
>>
>> Thanks all.
>>
>> Regards,
>> Kyle
>>
>>
>>
>> ************************************************************************
>>
>> Allens Arthur Robinson online: http://www.aar.com.au
>>
>> This email is confidential and may be subject to legal or other professional
>> privilege. It is also subject to copyright. If you have received it in
>> error, confidentiality and privilege are not waived and you must not
>> disclose or use the information in it. Please notify the sender by return
>> email and delete it from your system. Any personal information in this email
>> must be handled in accordance with the Privacy Act 1988 (Cth).
>>
>> *************************************************************************
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.ironpython.com
>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>
>>
>
>
>
> --
> nomadlife.org
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> ************************************************************************
>
> Allens Arthur Robinson online: http://www.aar.com.au
>
> This email is confidential and may be subject to legal or other professional privilege. It is also subject to copyright. If you have received it in error, confidentiality and privilege are not waived and you must not disclose or use the information in it. Please notify the sender by return email and delete it from your system. Any personal information in this email must be handled in accordance with the Privacy Act 1988 (Cth).
>
> *************************************************************************
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>



-- 
nomadlife.org
_______________________________________________
Users mailing list
Users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
************************************************************************
 
Allens Arthur Robinson online: http://www.aar.com.au
 
This email is confidential and may be subject to legal or other professional privilege. It is also subject to copyright. If you have received it in error, confidentiality and privilege are not waived and you must not disclose or use the information in it. Please notify the sender by return email and delete it from your system. Any personal information in this email must be handled in accordance with the Privacy Act 1988 (Cth).
 
*************************************************************************



More information about the Ironpython-users mailing list