From jdhardy at gmail.com Sun Mar 1 16:42:02 2015 From: jdhardy at gmail.com (Jeff Hardy) Date: Sun, 1 Mar 2015 15:42:02 +0000 Subject: [Ironpython-users] IronPython (ScriptEngine) is not thread safe? In-Reply-To: References: Message-ID: On Thu, Feb 26, 2015 at 9:39 AM, Jeffrey Zhao wrote: > Hi guys, > > I've met an issue when trying to use multiple ScriptEngine instances in > parallel, since there's no information saying that a single ScriptEngine > instance could be used concurrently. Please note "thread-safe" is not enough > for me. What I need is the real parallelized execution in multiple threads, > so I'm trying to use separated ScriptEngine instances in different threads. In theory ScriptEngines should be independent and able to run in parallel without issues. However, there might be interactions with other parts that still have threading issues (this, BTW, is why CPython uses a GIL - writing a free-threaded runtime correctly is *hard*, and it's far to easy to bugs to slip in inadvertantly.) It looks like this is that same as https://github.com/IronLanguages/main/issues/1173 that was opened recently with basically the same problem - there might be a race condition in the weakref module. I'll try and track it down since there's a couple of good small test cases to work from. - Jeff From zsidoz at innodev.hu Mon Mar 2 13:24:51 2015 From: zsidoz at innodev.hu (=?utf-8?Q?Zsid=C3=B3_Zolt=C3=A1n?=) Date: Mon, 2 Mar 2015 13:24:51 +0100 Subject: [Ironpython-users] IronPython (ScriptEngine) is not thread safe? In-Reply-To: References: Message-ID: <9E6D7C37B31B4ABCAC65111C24E28B4D@Dell> Hi, This is about: https://github.com/IronLanguages/main/issues/1173 I have never analysed IronPython source code, I just try to help you. I modified: IronPython-2.7.5\main-ipy-2.7-maint\Languages\IronPython\IronPython\Runtime\WeakRef.cs to this: public void ChainCallback(object callback, object weakRef) { lock (callbacks) { callbacks.Add(new CallbackInfo(callback, weakRef)); } } Now it is better. Now sometimes I get this exceptions: 'module' object has no attribute '__all__' at Microsoft.Scripting.Runtime.LightExceptions.CheckAndThrow(Object value) at os$10._get_exports_list$98(PythonFunction $function, Object module) hely: C:\Program Files (x86)\IronPython 2.7\Lib\os.py, sor: 39 at IronPython.Runtime.FunctionCaller`1.Call1(CallSite site, CodeContext context, Object func, T0 arg0) at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2) at os$10.os(FunctionCode $functionCode) hely: C:\Program Files (x86)\IronPython 2.7\Lib\os.py, sor: 743 at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope) at IronPython.Compiler.RuntimeScriptCode.Run(Scope scope) at IronPython.Runtime.PythonContext.InitializeModule(String fileName, ModuleContext moduleContext, ScriptCode scriptCode, ModuleOptions options) at IronPython.Runtime.PythonContext.CompileModule(String fileName, String moduleName, SourceUnit sourceCode, ModuleOptions options, ScriptCode& scriptCode) at IronPython.Runtime.PythonContext.CompileModule(String fileName, String moduleName, SourceUnit sourceCode, ModuleOptions options) ? I do not know why but I cannot localize the error because putting breakpoint to LightExceptions.CheckAndThrow(Object value) method was not working and this error rarely occurs Best Regards David ----- Eredeti ?zenet ----- From: Jeff Hardy Sent: Sunday, March 1, 2015 4:42 PM To: Jeffrey Zhao Cc: ironpython-users at python.org Subject: Re: [Ironpython-users] IronPython (ScriptEngine) is not thread safe? On Thu, Feb 26, 2015 at 9:39 AM, Jeffrey Zhao wrote: > Hi guys, > > I've met an issue when trying to use multiple ScriptEngine instances in > parallel, since there's no information saying that a single ScriptEngine > instance could be used concurrently. Please note "thread-safe" is not > enough > for me. What I need is the real parallelized execution in multiple > threads, > so I'm trying to use separated ScriptEngine instances in different > threads. In theory ScriptEngines should be independent and able to run in parallel without issues. However, there might be interactions with other parts that still have threading issues (this, BTW, is why CPython uses a GIL - writing a free-threaded runtime correctly is *hard*, and it's far to easy to bugs to slip in inadvertantly.) It looks like this is that same as https://github.com/IronLanguages/main/issues/1173 that was opened recently with basically the same problem - there might be a race condition in the weakref module. I'll try and track it down since there's a couple of good small test cases to work from. - Jeff _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users From m.schaber at codesys.com Wed Mar 4 17:09:13 2015 From: m.schaber at codesys.com (Markus Schaber) Date: Wed, 4 Mar 2015 16:09:13 +0000 Subject: [Ironpython-users] Strange exception in os.walk Message-ID: <727D8E16AE957149B447FE368139F2B53CD2747E@SERVER10> Hi, One of my coworkers struggles with strange exceptions when he calls os.walk from his python script. The script is running in IronPython 2.7.4, hosted by CODESYS. 16:04:05 [Information] # Start building AC_Mechatronics at c:\jenkins\workspace\Build_Libraries\source\Application\ApplicationComposer\AC_Mechatronics\AC_Mechatronics 16:04:05 [Error] Unable to cast object of type 'Microsoft.Scripting.Runtime.Uninitialized' to type 'System.Exception'. 16:04:05 [Error] File "c:\jenkins\workspace\Build_Libraries\scripts\BuildLibraries.py", line 453, in build_library library_state = get_library_state(sharp_client, lib_root, dest_repo, srcpath_parsed) File "c:\jenkins\workspace\Build_Libraries\scripts\BuildLibraries.py", line 415, in get_library_state project_info = load_project_info_object(lib_root) File "c:\jenkins\workspace\Build_Libraries\scripts\tools.py", line 96, in load_project_info_object for root, dirs, files in os.walk(project_root): File "C:\jenkins\workspace\Build_Libraries\cds\Targets\default\ScriptLib\3.5.5.0\os.py", line 294, in walk for x in walk(new_path, topdown, onerror, followlinks): File "C:\jenkins\workspace\Build_Libraries\cds\Targets\default\ScriptLib\3.5.5.0\os.py", line 276, in walk names = listdir(top) The problem is currently reproducible on a single machine, which happens to be a build server, but unfortunately not on our developer machines. Googling the exception code does not help, either. We're currently trying to get more information, including .NET stack traces... In the meantime, does anyone here have any idea for further diagnosis? Best regards and thanks in advance, Markus Schaber CODESYS(r) a trademark of 3S-Smart Software Solutions GmbH Inspiring Automation Solutions 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 | Fax +49-831-54031-50 E-Mail: m.schaber at codesys.com | Web: http://www.codesys.com | CODESYS store: http://store.codesys.com CODESYS forum: http://forum.codesys.com Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From pawel.jasinski at gmail.com Wed Mar 4 17:55:08 2015 From: pawel.jasinski at gmail.com (Pawel Jasinski) Date: Wed, 4 Mar 2015 17:55:08 +0100 Subject: [Ironpython-users] Strange exception in os.walk In-Reply-To: <727D8E16AE957149B447FE368139F2B53CD2747E@SERVER10> References: <727D8E16AE957149B447FE368139F2B53CD2747E@SERVER10> Message-ID: Do you have tracing enabled? https://github.com/IronLanguages/main/issues/208 On Wed, Mar 4, 2015 at 5:09 PM, Markus Schaber wrote: > Hi, > > One of my coworkers struggles with strange exceptions when he calls os.walk from his python script. > > The script is running in IronPython 2.7.4, hosted by CODESYS. > > 16:04:05 [Information] # Start building AC_Mechatronics at c:\jenkins\workspace\Build_Libraries\source\Application\ApplicationComposer\AC_Mechatronics\AC_Mechatronics > 16:04:05 [Error] Unable to cast object of type 'Microsoft.Scripting.Runtime.Uninitialized' to type 'System.Exception'. > 16:04:05 [Error] File "c:\jenkins\workspace\Build_Libraries\scripts\BuildLibraries.py", line 453, in build_library > library_state = get_library_state(sharp_client, lib_root, dest_repo, srcpath_parsed) > File "c:\jenkins\workspace\Build_Libraries\scripts\BuildLibraries.py", line 415, in get_library_state > project_info = load_project_info_object(lib_root) > File "c:\jenkins\workspace\Build_Libraries\scripts\tools.py", line 96, in load_project_info_object > for root, dirs, files in os.walk(project_root): > File "C:\jenkins\workspace\Build_Libraries\cds\Targets\default\ScriptLib\3.5.5.0\os.py", line 294, in walk > for x in walk(new_path, topdown, onerror, followlinks): > File "C:\jenkins\workspace\Build_Libraries\cds\Targets\default\ScriptLib\3.5.5.0\os.py", line 276, in walk > names = listdir(top) > > > The problem is currently reproducible on a single machine, which happens to be a build server, but unfortunately not on our developer machines. > > Googling the exception code does not help, either. > > We're currently trying to get more information, including .NET stack traces... > > In the meantime, does anyone here have any idea for further diagnosis? > > Best regards and thanks in advance, > > Markus Schaber > > CODESYS(r) a trademark of 3S-Smart Software Solutions GmbH > > Inspiring Automation Solutions > > 3S-Smart Software Solutions GmbH > Dipl.-Inf. Markus Schaber | Product Development Core Technology > Memminger Str. 151 | 87439 Kempten | Germany > Tel. +49-831-54031-979 | Fax +49-831-54031-50 > > E-Mail: m.schaber at codesys.com | Web: http://www.codesys.com | CODESYS store: http://store.codesys.com > CODESYS forum: http://forum.codesys.com > > Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 > > This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received > this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure > or distribution of the material in this e-mail is strictly forbidden. > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users From m.schaber at codesys.com Thu Mar 5 15:51:00 2015 From: m.schaber at codesys.com (Markus Schaber) Date: Thu, 5 Mar 2015 14:51:00 +0000 Subject: [Ironpython-users] Strange exception in os.walk In-Reply-To: References: <727D8E16AE957149B447FE368139F2B53CD2747E@SERVER10> Message-ID: <727D8E16AE957149B447FE368139F2B53CD2A942@SERVER10> Hi, Pawel, As far as I can see, we're not passing -X:Tracing, but we're using Frames and some other options, and a tracebackhandler may be added by the host. I'll investigate in that direction. Thanks! Best regards Markus Schaber CODESYS? a trademark of 3S-Smart Software Solutions GmbH Inspiring Automation Solutions 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 | Fax +49-831-54031-50 E-Mail: m.schaber at codesys.com | Web: http://www.codesys.com | CODESYS store: http://store.codesys.com CODESYS forum: http://forum.codesys.com Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. > -----Urspr?ngliche Nachricht----- > Von: Pawel Jasinski [mailto:pawel.jasinski at gmail.com] > Gesendet: Mittwoch, 4. M?rz 2015 17:55 > An: Markus Schaber; Discussion of IronPython > Betreff: Re: [Ironpython-users] Strange exception in os.walk > > Do you have tracing enabled? > https://github.com/IronLanguages/main/issues/208 > > On Wed, Mar 4, 2015 at 5:09 PM, Markus Schaber > wrote: > > Hi, > > > > One of my coworkers struggles with strange exceptions when he calls > os.walk from his python script. > > > > The script is running in IronPython 2.7.4, hosted by CODESYS. > > > > 16:04:05 [Information] # Start building AC_Mechatronics at > > > c:\jenkins\workspace\Build_Libraries\source\Application\ApplicationCo > m > > poser\AC_Mechatronics\AC_Mechatronics > > 16:04:05 [Error] Unable to cast object of type > 'Microsoft.Scripting.Runtime.Uninitialized' to type > 'System.Exception'. > > 16:04:05 [Error] File > "c:\jenkins\workspace\Build_Libraries\scripts\BuildLibraries.py", > line 453, in build_library > > library_state = get_library_state(sharp_client, lib_root, > dest_repo, srcpath_parsed) > > File > "c:\jenkins\workspace\Build_Libraries\scripts\BuildLibraries.py", > line 415, in get_library_state > > project_info = load_project_info_object(lib_root) > > File "c:\jenkins\workspace\Build_Libraries\scripts\tools.py", > line 96, in load_project_info_object > > for root, dirs, files in os.walk(project_root): > > File > "C:\jenkins\workspace\Build_Libraries\cds\Targets\default\ScriptLib\3 > .5.5.0\os.py", line 294, in walk > > for x in walk(new_path, topdown, onerror, followlinks): > > File > "C:\jenkins\workspace\Build_Libraries\cds\Targets\default\ScriptLib\3 > .5.5.0\os.py", line 276, in walk > > names = listdir(top) > > > > > > The problem is currently reproducible on a single machine, which > happens to be a build server, but unfortunately not on our developer > machines. > > > > Googling the exception code does not help, either. > > > > We're currently trying to get more information, including .NET > stack traces... > > > > In the meantime, does anyone here have any idea for further > diagnosis? > > > > Best regards and thanks in advance, > > > > Markus Schaber > > > > CODESYS(r) a trademark of 3S-Smart Software Solutions GmbH > > > > Inspiring Automation Solutions > > > > 3S-Smart Software Solutions GmbH > > Dipl.-Inf. Markus Schaber | Product Development Core Technology > > Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 > | > > Fax +49-831-54031-50 > > > > E-Mail: m.schaber at codesys.com | Web: http://www.codesys.com | > CODESYS > > store: http://store.codesys.com CODESYS forum: > > http://forum.codesys.com > > > > Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner > | > > Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 > > > > This e-mail may contain confidential and/or privileged information. > If > > you are not the intended recipient (or have received this e-mail in > > error) please notify the sender immediately and destroy this e- > mail. Any unauthorised copying, disclosure or distribution of the > material in this e-mail is strictly forbidden. > > > > _______________________________________________ > > Ironpython-users mailing list > > Ironpython-users at python.org > > https://mail.python.org/mailman/listinfo/ironpython-users From hemanth at broadcom.com Mon Mar 9 18:07:07 2015 From: hemanth at broadcom.com (Hemanth M B) Date: Mon, 9 Mar 2015 17:07:07 +0000 Subject: [Ironpython-users] IronPython: Import DLL library Message-ID: <650E8E7A30AA6E4697EAF063DB83FB8801401BC2@SJEXCHMB05.corp.ad.broadcom.com> HI All, I am trying to add reference and import BMAPIa.DLL library using CLR. But it is throwing an error message. My code: Import clr Clr.AddReferenceToFile("BMAPIa.dll") Import BMAPIa Error: C:\Users\Administrator>"C:\Program Files (x86)\IronPython 2.7\ipy.exe" "C:\Users\Administrator\Desktop\AMD64\test.py" Traceback (most recent call last): File "C:\Users\Administrator\Desktop\AMD64\test.py", line 9, in SystemError: The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018) Please let me know where am i going wrong? FYI.... This is library is written in C++ and I am not aware of in which .NET framework it is been built. Thanks and Regards, Hemanth M B @9010054054 -------------- next part -------------- An HTML attachment was scrubbed... URL: From slide.o.mix at gmail.com Thu Mar 12 13:05:08 2015 From: slide.o.mix at gmail.com (Slide) Date: Thu, 12 Mar 2015 12:05:08 +0000 Subject: [Ironpython-users] IronPython: Import DLL library In-Reply-To: <650E8E7A30AA6E4697EAF063DB83FB8801401BC2@SJEXCHMB05.corp.ad.broadcom.com> References: <650E8E7A30AA6E4697EAF063DB83FB8801401BC2@SJEXCHMB05.corp.ad.broadcom.com> Message-ID: Do you mean the library is CLI/C++, or is it native C++? If native C++, it won't work with IronPython currently. On Thu, Mar 12, 2015 at 4:11 AM Hemanth M B wrote: > HI All, > > > > > > I am trying to add reference and import BMAPIa.DLL library using CLR. But > it is throwing an error message. > > > > My code: > > > > Import clr > > Clr.AddReferenceToFile(?BMAPIa.dll?) > > Import BMAPIa > > > > Error: > > > *C:\Users\Administrator>"C:\Program Files (x86)\IronPython 2.7\ipy.exe" > "C:\Users\Administrator\Desktop\AMD64\test.py"* > > *Traceback (most recent call last):* > > * File "C:\Users\Administrator\Desktop\AMD64\test.py", line 9, in > * > > *SystemError: The module was expected to contain an assembly manifest. > (Exception from HRESULT: 0x80131018)* > > > > Please let me know where am i going wrong? > > > > FYI?. This is library is written in C++ and I am not aware of in which > .NET framework it is been built. > > > > > > > > > > Thanks and Regards, > > Hemanth M B > > @9010054054 > > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hemanth at broadcom.com Thu Mar 12 13:14:33 2015 From: hemanth at broadcom.com (Hemanth M B) Date: Thu, 12 Mar 2015 12:14:33 +0000 Subject: [Ironpython-users] IronPython: Import DLL library In-Reply-To: References: <650E8E7A30AA6E4697EAF063DB83FB8801401BC2@SJEXCHMB05.corp.ad.broadcom.com> Message-ID: <650E8E7A30AA6E4697EAF063DB83FB880140230D@SJEXCHMB05.corp.ad.broadcom.com> Hi, Thanks for your reply. How to check the library is native C++ or not? If it is a native C++ then, is there any work around for the same. Thanks and Regards, Hemanth M B @9010054054 From: Slide [mailto:slide.o.mix at gmail.com] Sent: Thursday, March 12, 2015 5:35 PM To: Hemanth M B; ironpython-users at python.org Subject: Re: [Ironpython-users] IronPython: Import DLL library Do you mean the library is CLI/C++, or is it native C++? If native C++, it won't work with IronPython currently. On Thu, Mar 12, 2015 at 4:11 AM Hemanth M B > wrote: HI All, I am trying to add reference and import BMAPIa.DLL library using CLR. But it is throwing an error message. My code: Import clr Clr.AddReferenceToFile(?BMAPIa.dll?) Import BMAPIa Error: C:\Users\Administrator>"C:\Program Files (x86)\IronPython 2.7\ipy.exe" "C:\Users\Administrator\Desktop\AMD64\test.py" Traceback (most recent call last): File "C:\Users\Administrator\Desktop\AMD64\test.py", line 9, in SystemError: The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018) Please let me know where am i going wrong? FYI?. This is library is written in C++ and I am not aware of in which .NET framework it is been built. Thanks and Regards, Hemanth M B @9010054054 _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From slide.o.mix at gmail.com Thu Mar 12 13:37:26 2015 From: slide.o.mix at gmail.com (Slide) Date: Thu, 12 Mar 2015 12:37:26 +0000 Subject: [Ironpython-users] IronPython: Import DLL library In-Reply-To: <650E8E7A30AA6E4697EAF063DB83FB880140230D@SJEXCHMB05.corp.ad.broadcom.com> References: <650E8E7A30AA6E4697EAF063DB83FB8801401BC2@SJEXCHMB05.corp.ad.broadcom.com> <650E8E7A30AA6E4697EAF063DB83FB880140230D@SJEXCHMB05.corp.ad.broadcom.com> Message-ID: Where did you get the library? If it is native, then you would have to write a wrapper library in C# or CLI/C++ that interacted with the library through P/Invoke (for C#) or the native function calls if CLI/C++. On Thu, Mar 12, 2015 at 5:14 AM Hemanth M B wrote: > > > Hi, > > > > Thanks for your reply. > > > > How to check the library is native C++ or not? > > > > If it is a native C++ then, is there any work around for the same. > > > > Thanks and Regards, > > Hemanth M B > > @9010054054 > > > > *From:* Slide [mailto:slide.o.mix at gmail.com] > *Sent:* Thursday, March 12, 2015 5:35 PM > *To:* Hemanth M B; ironpython-users at python.org > *Subject:* Re: [Ironpython-users] IronPython: Import DLL library > > > > Do you mean the library is CLI/C++, or is it native C++? If native C++, it > won't work with IronPython currently. > > > > On Thu, Mar 12, 2015 at 4:11 AM Hemanth M B wrote: > > HI All, > > > > > > I am trying to add reference and import BMAPIa.DLL library using CLR. But > it is throwing an error message. > > > > My code: > > > > Import clr > > Clr.AddReferenceToFile(?BMAPIa.dll?) > > Import BMAPIa > > > > Error: > > > *C:\Users\Administrator>"C:\Program Files (x86)\IronPython 2.7\ipy.exe" > "C:\Users\Administrator\Desktop\AMD64\test.py"* > > *Traceback (most recent call last):* > > * File "C:\Users\Administrator\Desktop\AMD64\test.py", line 9, in > * > > *SystemError: The module was expected to contain an assembly manifest. > (Exception from HRESULT: 0x80131018)* > > > > Please let me know where am i going wrong? > > > > FYI?. This is library is written in C++ and I am not aware of in which > .NET framework it is been built. > > > > > > > > > > Thanks and Regards, > > Hemanth M B > > @9010054054 > > > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hemanth at broadcom.com Fri Mar 13 08:30:15 2015 From: hemanth at broadcom.com (Hemanth M B) Date: Fri, 13 Mar 2015 07:30:15 +0000 Subject: [Ironpython-users] IronPython: Import DLL library In-Reply-To: <727D8E16AE957149B447FE368139F2B53CD46AE1@SERVER10> References: <650E8E7A30AA6E4697EAF063DB83FB8801401BC2@SJEXCHMB05.corp.ad.broadcom.com> <650E8E7A30AA6E4697EAF063DB83FB880140230D@SJEXCHMB05.corp.ad.broadcom.com> <727D8E16AE957149B447FE368139F2B53CD46AE1@SERVER10> Message-ID: <650E8E7A30AA6E4697EAF063DB83FB88014024B0@SJEXCHMB05.corp.ad.broadcom.com> Thanks for info markus, Can you please send me sample code to use ctypes and also COM interface? Thanks and Regards, Hemanth M B @9010054054 From: Markus Schaber [mailto:m.schaber at codesys.com] Sent: Friday, March 13, 2015 12:57 PM To: Hemanth M B; ironpython-users at python.org Subject: AW: [Ironpython-users] IronPython: Import DLL library Hi, I fit is not explicitly stated that it is C++/CLI (or some other keywords like ?mixed mode? or ?managed C++), I?d guess that it is pure native. The library might expose a COM interface, in that case you could interact with it using COM. Another way for a wrapper could be using the ctypes module from the standard library. Best regards Markus Schaber CODESYS? a trademark of 3S-Smart Software Solutions GmbH Inspiring Automation Solutions ________________________________ 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 | Fax +49-831-54031-50 E-Mail: m.schaber at codesys.com | Web: codesys.com | CODESYS store: store.codesys.com CODESYS forum: forum.codesys.com Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 ________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Von: Ironpython-users [mailto:ironpython-users-bounces+m.schaber=codesys.com at python.org] Im Auftrag von Slide Gesendet: Donnerstag, 12. M?rz 2015 13:38 An: Hemanth M B; ironpython-users at python.org Betreff: Re: [Ironpython-users] IronPython: Import DLL library Where did you get the library? If it is native, then you would have to write a wrapper library in C# or CLI/C++ that interacted with the library through P/Invoke (for C#) or the native function calls if CLI/C++. On Thu, Mar 12, 2015 at 5:14 AM Hemanth M B > wrote: Hi, Thanks for your reply. How to check the library is native C++ or not? If it is a native C++ then, is there any work around for the same. Thanks and Regards, Hemanth M B @9010054054 From: Slide [mailto:slide.o.mix at gmail.com] Sent: Thursday, March 12, 2015 5:35 PM To: Hemanth M B; ironpython-users at python.org Subject: Re: [Ironpython-users] IronPython: Import DLL library Do you mean the library is CLI/C++, or is it native C++? If native C++, it won't work with IronPython currently. On Thu, Mar 12, 2015 at 4:11 AM Hemanth M B > wrote: HI All, I am trying to add reference and import BMAPIa.DLL library using CLR. But it is throwing an error message. My code: Import clr Clr.AddReferenceToFile(?BMAPIa.dll?) Import BMAPIa Error: C:\Users\Administrator>"C:\Program Files (x86)\IronPython 2.7\ipy.exe" "C:\Users\Administrator\Desktop\AMD64\test.py" Traceback (most recent call last): File "C:\Users\Administrator\Desktop\AMD64\test.py", line 9, in SystemError: The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018) Please let me know where am i going wrong? FYI?. This is library is written in C++ and I am not aware of in which .NET framework it is been built. Thanks and Regards, Hemanth M B @9010054054 _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.schaber at codesys.com Fri Mar 13 08:27:27 2015 From: m.schaber at codesys.com (Markus Schaber) Date: Fri, 13 Mar 2015 07:27:27 +0000 Subject: [Ironpython-users] IronPython: Import DLL library In-Reply-To: References: <650E8E7A30AA6E4697EAF063DB83FB8801401BC2@SJEXCHMB05.corp.ad.broadcom.com> <650E8E7A30AA6E4697EAF063DB83FB880140230D@SJEXCHMB05.corp.ad.broadcom.com> Message-ID: <727D8E16AE957149B447FE368139F2B53CD46AE1@SERVER10> Hi, I fit is not explicitly stated that it is C++/CLI (or some other keywords like ?mixed mode? or ?managed C++), I?d guess that it is pure native. The library might expose a COM interface, in that case you could interact with it using COM. Another way for a wrapper could be using the ctypes module from the standard library. Best regards Markus Schaber CODESYS? a trademark of 3S-Smart Software Solutions GmbH Inspiring Automation Solutions ________________________________ 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 | Fax +49-831-54031-50 E-Mail: m.schaber at codesys.com | Web: codesys.com | CODESYS store: store.codesys.com CODESYS forum: forum.codesys.com Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 ________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Von: Ironpython-users [mailto:ironpython-users-bounces+m.schaber=codesys.com at python.org] Im Auftrag von Slide Gesendet: Donnerstag, 12. M?rz 2015 13:38 An: Hemanth M B; ironpython-users at python.org Betreff: Re: [Ironpython-users] IronPython: Import DLL library Where did you get the library? If it is native, then you would have to write a wrapper library in C# or CLI/C++ that interacted with the library through P/Invoke (for C#) or the native function calls if CLI/C++. On Thu, Mar 12, 2015 at 5:14 AM Hemanth M B > wrote: Hi, Thanks for your reply. How to check the library is native C++ or not? If it is a native C++ then, is there any work around for the same. Thanks and Regards, Hemanth M B @9010054054 From: Slide [mailto:slide.o.mix at gmail.com] Sent: Thursday, March 12, 2015 5:35 PM To: Hemanth M B; ironpython-users at python.org Subject: Re: [Ironpython-users] IronPython: Import DLL library Do you mean the library is CLI/C++, or is it native C++? If native C++, it won't work with IronPython currently. On Thu, Mar 12, 2015 at 4:11 AM Hemanth M B > wrote: HI All, I am trying to add reference and import BMAPIa.DLL library using CLR. But it is throwing an error message. My code: Import clr Clr.AddReferenceToFile(?BMAPIa.dll?) Import BMAPIa Error: C:\Users\Administrator>"C:\Program Files (x86)\IronPython 2.7\ipy.exe" "C:\Users\Administrator\Desktop\AMD64\test.py" Traceback (most recent call last): File "C:\Users\Administrator\Desktop\AMD64\test.py", line 9, in SystemError: The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018) Please let me know where am i going wrong? FYI?. This is library is written in C++ and I am not aware of in which .NET framework it is been built. Thanks and Regards, Hemanth M B @9010054054 _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.schaber at codesys.com Fri Mar 13 09:13:00 2015 From: m.schaber at codesys.com (Markus Schaber) Date: Fri, 13 Mar 2015 08:13:00 +0000 Subject: [Ironpython-users] IronPython: Import DLL library In-Reply-To: <650E8E7A30AA6E4697EAF063DB83FB88014024B0@SJEXCHMB05.corp.ad.broadcom.com> References: <650E8E7A30AA6E4697EAF063DB83FB8801401BC2@SJEXCHMB05.corp.ad.broadcom.com> <650E8E7A30AA6E4697EAF063DB83FB880140230D@SJEXCHMB05.corp.ad.broadcom.com> <727D8E16AE957149B447FE368139F2B53CD46AE1@SERVER10> <650E8E7A30AA6E4697EAF063DB83FB88014024B0@SJEXCHMB05.corp.ad.broadcom.com> Message-ID: <727D8E16AE957149B447FE368139F2B53CD46BBE@SERVER10> Hi, Herman, Sorry, I did not use any of those two myself yet, just heard some success (and a few failure) stories of others. http://ironpython.net/documentation/dotnet/ contains some explanations and sample code for COM. For ctypes, which _should_ work the same as in cPython, there are lots of examples and tutorials on the net: http://python.net/crew/theller/ctypes/tutorial.html In both cases, I guess you will need basic knowledge of COM or C calling conventions and memory layout to be successful. Best regards Markus Schaber CODESYS? a trademark of 3S-Smart Software Solutions GmbH Inspiring Automation Solutions ________________________________ 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 | Fax +49-831-54031-50 E-Mail: m.schaber at codesys.com | Web: codesys.com | CODESYS store: store.codesys.com CODESYS forum: forum.codesys.com Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 ________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Von: Hemanth M B [mailto:hemanth at broadcom.com] Gesendet: Freitag, 13. M?rz 2015 08:30 An: Markus Schaber; ironpython-users at python.org Betreff: RE: [Ironpython-users] IronPython: Import DLL library Thanks for info markus, Can you please send me sample code to use ctypes and also COM interface? Thanks and Regards, Hemanth M B @9010054054 From: Markus Schaber [mailto:m.schaber at codesys.com] Sent: Friday, March 13, 2015 12:57 PM To: Hemanth M B; ironpython-users at python.org Subject: AW: [Ironpython-users] IronPython: Import DLL library Hi, I fit is not explicitly stated that it is C++/CLI (or some other keywords like ?mixed mode? or ?managed C++), I?d guess that it is pure native. The library might expose a COM interface, in that case you could interact with it using COM. Another way for a wrapper could be using the ctypes module from the standard library. Best regards Markus Schaber CODESYS? a trademark of 3S-Smart Software Solutions GmbH Inspiring Automation Solutions ________________________________ 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 | Fax +49-831-54031-50 E-Mail: m.schaber at codesys.com | Web: codesys.com | CODESYS store: store.codesys.com CODESYS forum: forum.codesys.com Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 ________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Von: Ironpython-users [mailto:ironpython-users-bounces+m.schaber=codesys.com at python.org] Im Auftrag von Slide Gesendet: Donnerstag, 12. M?rz 2015 13:38 An: Hemanth M B; ironpython-users at python.org Betreff: Re: [Ironpython-users] IronPython: Import DLL library Where did you get the library? If it is native, then you would have to write a wrapper library in C# or CLI/C++ that interacted with the library through P/Invoke (for C#) or the native function calls if CLI/C++. On Thu, Mar 12, 2015 at 5:14 AM Hemanth M B > wrote: Hi, Thanks for your reply. How to check the library is native C++ or not? If it is a native C++ then, is there any work around for the same. Thanks and Regards, Hemanth M B @9010054054 From: Slide [mailto:slide.o.mix at gmail.com] Sent: Thursday, March 12, 2015 5:35 PM To: Hemanth M B; ironpython-users at python.org Subject: Re: [Ironpython-users] IronPython: Import DLL library Do you mean the library is CLI/C++, or is it native C++? If native C++, it won't work with IronPython currently. On Thu, Mar 12, 2015 at 4:11 AM Hemanth M B > wrote: HI All, I am trying to add reference and import BMAPIa.DLL library using CLR. But it is throwing an error message. My code: Import clr Clr.AddReferenceToFile(?BMAPIa.dll?) Import BMAPIa Error: C:\Users\Administrator>"C:\Program Files (x86)\IronPython 2.7\ipy.exe" "C:\Users\Administrator\Desktop\AMD64\test.py" Traceback (most recent call last): File "C:\Users\Administrator\Desktop\AMD64\test.py", line 9, in SystemError: The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018) Please let me know where am i going wrong? FYI?. This is library is written in C++ and I am not aware of in which .NET framework it is been built. Thanks and Regards, Hemanth M B @9010054054 _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.schaber at codesys.com Fri Mar 13 09:39:58 2015 From: m.schaber at codesys.com (Markus Schaber) Date: Fri, 13 Mar 2015 08:39:58 +0000 Subject: [Ironpython-users] IronPython: Import DLL library In-Reply-To: <727D8E16AE957149B447FE368139F2B53CD46BBE@SERVER10> References: <650E8E7A30AA6E4697EAF063DB83FB8801401BC2@SJEXCHMB05.corp.ad.broadcom.com> <650E8E7A30AA6E4697EAF063DB83FB880140230D@SJEXCHMB05.corp.ad.broadcom.com> <727D8E16AE957149B447FE368139F2B53CD46AE1@SERVER10> <650E8E7A30AA6E4697EAF063DB83FB88014024B0@SJEXCHMB05.corp.ad.broadcom.com> <727D8E16AE957149B447FE368139F2B53CD46BBE@SERVER10> Message-ID: <727D8E16AE957149B447FE368139F2B53CD46C1F@SERVER10> Hi, Just some additional thoughts / gut feelings: The COM interfacing which is based on the .NET COM support seems to work rock solid / very stable. The ctypes interfacing seems somehow brittle on corner cases, and is not easy to use in case of complex data structures, C++ interfacing may be even impossible. I guess, in those cases, you should create a wrapper DLL using C++/CLI ? you can check the SharpSVN project for a very nice example of how to create a nice, OO .NET interface around a complex C interface. Best regards Markus Schaber CODESYS? a trademark of 3S-Smart Software Solutions GmbH Inspiring Automation Solutions ________________________________ 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 | Fax +49-831-54031-50 E-Mail: m.schaber at codesys.com | Web: codesys.com | CODESYS store: store.codesys.com CODESYS forum: forum.codesys.com Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 ________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Von: Ironpython-users [mailto:ironpython-users-bounces+m.schaber=codesys.com at python.org] Im Auftrag von Markus Schaber Gesendet: Freitag, 13. M?rz 2015 09:30 An: Hemanth M B; ironpython-users at python.org Betreff: Re: [Ironpython-users] IronPython: Import DLL library Hi, Herman, Sorry, I did not use any of those two myself yet, just heard some success (and a few failure) stories of others. http://ironpython.net/documentation/dotnet/ contains some explanations and sample code for COM. For ctypes, which _should_ work the same as in cPython, there are lots of examples and tutorials on the net: http://python.net/crew/theller/ctypes/tutorial.html In both cases, I guess you will need basic knowledge of COM or C calling conventions and memory layout to be successful. Best regards Markus Schaber CODESYS? a trademark of 3S-Smart Software Solutions GmbH Inspiring Automation Solutions ________________________________ 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 | Fax +49-831-54031-50 E-Mail: m.schaber at codesys.com | Web: codesys.com | CODESYS store: store.codesys.com CODESYS forum: forum.codesys.com Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 ________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Von: Hemanth M B [mailto:hemanth at broadcom.com] Gesendet: Freitag, 13. M?rz 2015 08:30 An: Markus Schaber; ironpython-users at python.org Betreff: RE: [Ironpython-users] IronPython: Import DLL library Thanks for info markus, Can you please send me sample code to use ctypes and also COM interface? Thanks and Regards, Hemanth M B @9010054054 From: Markus Schaber [mailto:m.schaber at codesys.com] Sent: Friday, March 13, 2015 12:57 PM To: Hemanth M B; ironpython-users at python.org Subject: AW: [Ironpython-users] IronPython: Import DLL library Hi, I fit is not explicitly stated that it is C++/CLI (or some other keywords like ?mixed mode? or ?managed C++), I?d guess that it is pure native. The library might expose a COM interface, in that case you could interact with it using COM. Another way for a wrapper could be using the ctypes module from the standard library. Best regards Markus Schaber CODESYS? a trademark of 3S-Smart Software Solutions GmbH Inspiring Automation Solutions ________________________________ 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 | Fax +49-831-54031-50 E-Mail: m.schaber at codesys.com | Web: codesys.com | CODESYS store: store.codesys.com CODESYS forum: forum.codesys.com Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 ________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Von: Ironpython-users [mailto:ironpython-users-bounces+m.schaber=codesys.com at python.org] Im Auftrag von Slide Gesendet: Donnerstag, 12. M?rz 2015 13:38 An: Hemanth M B; ironpython-users at python.org Betreff: Re: [Ironpython-users] IronPython: Import DLL library Where did you get the library? If it is native, then you would have to write a wrapper library in C# or CLI/C++ that interacted with the library through P/Invoke (for C#) or the native function calls if CLI/C++. On Thu, Mar 12, 2015 at 5:14 AM Hemanth M B > wrote: Hi, Thanks for your reply. How to check the library is native C++ or not? If it is a native C++ then, is there any work around for the same. Thanks and Regards, Hemanth M B @9010054054 From: Slide [mailto:slide.o.mix at gmail.com] Sent: Thursday, March 12, 2015 5:35 PM To: Hemanth M B; ironpython-users at python.org Subject: Re: [Ironpython-users] IronPython: Import DLL library Do you mean the library is CLI/C++, or is it native C++? If native C++, it won't work with IronPython currently. On Thu, Mar 12, 2015 at 4:11 AM Hemanth M B > wrote: HI All, I am trying to add reference and import BMAPIa.DLL library using CLR. But it is throwing an error message. My code: Import clr Clr.AddReferenceToFile(?BMAPIa.dll?) Import BMAPIa Error: C:\Users\Administrator>"C:\Program Files (x86)\IronPython 2.7\ipy.exe" "C:\Users\Administrator\Desktop\AMD64\test.py" Traceback (most recent call last): File "C:\Users\Administrator\Desktop\AMD64\test.py", line 9, in SystemError: The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018) Please let me know where am i going wrong? FYI?. This is library is written in C++ and I am not aware of in which .NET framework it is been built. Thanks and Regards, Hemanth M B @9010054054 _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From no_reply at codeplex.com Wed Mar 18 02:26:41 2015 From: no_reply at codeplex.com (CodePlex) Date: 17 Mar 2015 18:26:41 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 3/16/2015 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] Index outside bounds of the array ---------------------------------------------- ISSUES 1. [New issue] Index outside bounds of the array http://ironpython.codeplex.com/workitem/35885 User varnonga has proposed the issue: "I keep getting this script runtime error that says: Index Error: Index was outside the bounds of the array. I have had some success at fixing it, but do not understand why the thing I do works. Basically, I take a copy of working code and copy it to the dysfunctional code. I them comment all the functional code out using the "#" symbol. Usually when I do this, it will work. I then delete the commented code out until it becomes dysfunctional. I then add that commented code back in and verify it works. Usually, I only get three or four extra lines of the commented code back into the original dysfunctional code (that is now functional). So what I do is retype the commented area to fit my design. It is like Python need to have that space taken up by something. Usually before I do all this, I check all my tabbing first and get rid of all the extra spacing on each line. Sometimes that helps if I have some weird spacing issue." ---------------------------------------------- ---------------------------------------------- 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: From andy at agraham.demon.co.uk Thu Mar 19 18:53:25 2015 From: andy at agraham.demon.co.uk (Andrew Graham) Date: Thu, 19 Mar 2015 17:53:25 -0000 Subject: [Ironpython-users] Open Source Windows Forms GUI REPL and Debugger Message-ID: <0AC6CEAB81A641A399910BEB6F193F5D@AndyDesktop> Just in case anyone is interested I have posted my Windows Forms based MIT licensed Open Source REPL replacement for ipy.exe and its associated debugger at http://1drv.ms/1I21dvl The zip file is a Visual Studio solution, though the essential REPL and debugger files are pre-built and ready to use. There is a help file in root folder of the zip that attemps an explanation of how to build and use it. With many thanks to the IronPython team for a wonderful product. Andy Graham From m.schaber at codesys.com Thu Mar 19 19:16:17 2015 From: m.schaber at codesys.com (Markus Schaber) Date: Thu, 19 Mar 2015 18:16:17 +0000 Subject: [Ironpython-users] Open Source Windows Forms GUI REPL and Debugger In-Reply-To: <0AC6CEAB81A641A399910BEB6F193F5D@AndyDesktop> References: <0AC6CEAB81A641A399910BEB6F193F5D@AndyDesktop> Message-ID: <727D8E16AE957149B447FE368139F2B5417FDF97@SERVER10> Hi, Andrew, Looks great, thanks! Would you try to contribute it to IronPython under Apache License? Best regards Markus Schaber CODESYS? a trademark of 3S-Smart Software Solutions GmbH Inspiring Automation Solutions 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 | Fax +49-831-54031-50 E-Mail: m.schaber at codesys.com | Web: http://www.codesys.com | CODESYS store: http://store.codesys.com CODESYS forum: http://forum.codesys.com Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. > -----Urspr?ngliche Nachricht----- > Von: Ironpython-users [mailto:ironpython-users- > bounces+m.schaber=codesys.com at python.org] Im Auftrag von Andrew > Graham > Gesendet: Donnerstag, 19. M?rz 2015 19:00 > An: ironpython-users at python.org > Betreff: [Ironpython-users] Open Source Windows Forms GUI REPL and > Debugger > > Just in case anyone is interested I have posted my Windows Forms > based MIT licensed Open Source REPL replacement for ipy.exe and its > associated debugger at > > http://1drv.ms/1I21dvl > > > The zip file is a Visual Studio solution, though the essential REPL > and debugger files are pre-built and ready to use. > > There is a help file in root folder of the zip that attemps an > explanation of how to build and use it. > > With many thanks to the IronPython team for a wonderful product. > > Andy Graham > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users From andy at agraham.demon.co.uk Thu Mar 19 19:35:08 2015 From: andy at agraham.demon.co.uk (Andrew Graham) Date: Thu, 19 Mar 2015 18:35:08 -0000 Subject: [Ironpython-users] Open Source Windows Forms GUI REPL and Debugger In-Reply-To: <727D8E16AE957149B447FE368139F2B5417FDF97@SERVER10> References: <0AC6CEAB81A641A399910BEB6F193F5D@AndyDesktop> <727D8E16AE957149B447FE368139F2B5417FDF97@SERVER10> Message-ID: Hi Markus The actual REPL window is based on, and suitably acknowledged in IronTextBox.cs, an original MIT licensed project from CodePlex although to be honest there is not much left of the original code now I've finished hacking it around and improving! it. :) The debugger is my own code so I can do whatever I want with that but as it is associated with IronPy, although it does work with ipy, I chose the MIT license for that as well. I am no expert in licensing but I assume that I would need the permission of the original author to change the licence terms unless you can authoritatively assure me otherwise. Best regards Andy Graham -----Original Message----- From: Markus Schaber Sent: Thursday, March 19, 2015 6:16 PM To: Andrew Graham ; ironpython-users at python.org Subject: AW: [Ironpython-users] Open Source Windows Forms GUI REPL and Debugger Hi, Andrew, Looks great, thanks! Would you try to contribute it to IronPython under Apache License? Best regards Markus Schaber CODESYS? a trademark of 3S-Smart Software Solutions GmbH Inspiring Automation Solutions 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 | Fax +49-831-54031-50 E-Mail: m.schaber at codesys.com | Web: http://www.codesys.com | CODESYS store: http://store.codesys.com CODESYS forum: http://forum.codesys.com Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. > -----Urspr?ngliche Nachricht----- > Von: Ironpython-users [mailto:ironpython-users- > bounces+m.schaber=codesys.com at python.org] Im Auftrag von Andrew > Graham > Gesendet: Donnerstag, 19. M?rz 2015 19:00 > An: ironpython-users at python.org > Betreff: [Ironpython-users] Open Source Windows Forms GUI REPL and > Debugger > > Just in case anyone is interested I have posted my Windows Forms > based MIT licensed Open Source REPL replacement for ipy.exe and its > associated debugger at > > http://1drv.ms/1I21dvl > > > The zip file is a Visual Studio solution, though the essential REPL > and debugger files are pre-built and ready to use. > > There is a help file in root folder of the zip that attemps an > explanation of how to build and use it. > > With many thanks to the IronPython team for a wonderful product. > > Andy Graham > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users From no_reply at codeplex.com Fri Mar 20 03:53:06 2015 From: no_reply at codeplex.com (CodePlex) Date: 19 Mar 2015 19:53:06 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 3/18/2015 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] ImportError: No module named _multiprocessing ---------------------------------------------- ISSUES 1. [New issue] ImportError: No module named _multiprocessing http://ironpython.codeplex.com/workitem/35890 User sokrates86 has proposed the issue: "With latest IronPython version 2.7.5 it is not possible to create Pool object. Iron pyton reports that module _multiprocessing iz missing. Code example: C:\Program Files (x86)\IronPython 2.7>ipy64.exe IronPython 2.7.5 (2.7.5.0) on .NET 4.0.30319.34014 (64-bit) Type "help", "copyright", "credits" or "license" for more information. from multiprocessing import Pool p = Pool(5) Traceback (most recent call last): File "", line 1, in File "C:\Program Files (x86)\IronPython 2.7\Lib\multiprocessing__init__.py", line 236, in Pool File "C:\Program Files (x86)\IronPython 2.7\Lib\multiprocessing\pool.py", line 115, in init File "C:\Program Files (x86)\IronPython 2.7\Lib\multiprocessing\pool.py", line 207, in _setup_queues File "C:\Program Files (x86)\IronPython 2.7\Lib\multiprocessing\queues.py", li ne 46, in ImportError: No module named _multiprocessing " ---------------------------------------------- ---------------------------------------------- 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: From no_reply at codeplex.com Fri Mar 20 08:25:04 2015 From: no_reply at codeplex.com (CodePlex) Date: 20 Mar 2015 00:25:04 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 3/19/2015 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] datetime.strptime with timezone broken in IronPython 2.7.5 2. [New comment] datetime.strptime with timezone broken in IronPython 2.7.5 ---------------------------------------------- ISSUES 1. [New issue] datetime.strptime with timezone broken in IronPython 2.7.5 http://ironpython.codeplex.com/workitem/35900 User akarppinen has proposed the issue: "In 2.7.4: C:\Users\Administrator>ipy IronPython 2.7.4 (2.7.0.40) on .NET 4.0.30319.17929 (32-bit) Type "help", "copyright", "credits" or "license" for more information. from datetime import datetime data='2015-03-19T16:00:35+02:00' fmt='%Y-%m-%dT%H:%M:%S%z' datetime.strptime(data, fmt) datetime.datetime(2015, 3, 19, 16, 0, 35) Same in 2.7.5: C:\Users\karppan>ipy IronPython 2.7.5 (2.7.5.0) on .NET 4.0.30319.34209 (32-bit) Type "help", "copyright", "credits" or "license" for more information. from datetime import datetime data='2015-03-19T16:00:35+02:00' fmt='%Y-%m-%dT%H:%M:%S%z' datetime.strptime(data, fmt) Traceback (most recent call last): File "", line 1, in ValueError: time data does not match format data=2015-03-19T16:00:35+02:00, fmt=%Y-%m-%dT%H:%M:%S%z, to: yyyy'-'M'-'d'T'H':'m':'ss'' "----------------- 2. [New comment] datetime.strptime with timezone broken in IronPython 2.7.5 http://ironpython.codeplex.com/workitem/35900 User akarppinen has commented on the issue: "

I created a clone in github too if that's the way nowdays:
https://github.com/IronLanguages/main/issues/1186

" ---------------------------------------------- ---------------------------------------------- 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: From jdhardy at gmail.com Sat Mar 21 15:27:15 2015 From: jdhardy at gmail.com (Jeff Hardy) Date: Sat, 21 Mar 2015 14:27:15 +0000 Subject: [Ironpython-users] Open Source Windows Forms GUI REPL and Debugger In-Reply-To: References: <0AC6CEAB81A641A399910BEB6F193F5D@AndyDesktop> <727D8E16AE957149B447FE368139F2B5417FDF97@SERVER10> Message-ID: The license terms wouldn't need to be changed - including MIT licensed code in an Apache 2.0 project is just fine. In this case I think it belongs (for now) as a separate repo but I don't see a reason not to include it under the IronLanguages project on GitHub. - Jeff On Thu, Mar 19, 2015 at 6:35 PM, Andrew Graham wrote: > Hi Markus > > The actual REPL window is based on, and suitably acknowledged in > IronTextBox.cs, an original MIT licensed project from CodePlex although to > be honest there is not much left of the original code now I've finished > hacking it around and improving! it. :) > > The debugger is my own code so I can do whatever I want with that but as it > is associated with IronPy, although it does work with ipy, I chose the MIT > license for that as well. > > I am no expert in licensing but I assume that I would need the permission of > the original author to change the licence terms unless you can > authoritatively assure me otherwise. > > Best regards > > Andy Graham > > > -----Original Message----- From: Markus Schaber > Sent: Thursday, March 19, 2015 6:16 PM > To: Andrew Graham ; ironpython-users at python.org > Subject: AW: [Ironpython-users] Open Source Windows Forms GUI REPL and > Debugger > > > Hi, Andrew, > > Looks great, thanks! > > Would you try to contribute it to IronPython under Apache License? > > Best regards > > Markus Schaber > > CODESYS? a trademark of 3S-Smart Software Solutions GmbH > > Inspiring Automation Solutions > > 3S-Smart Software Solutions GmbH > Dipl.-Inf. Markus Schaber | Product Development Core Technology > Memminger Str. 151 | 87439 Kempten | Germany > Tel. +49-831-54031-979 | Fax +49-831-54031-50 > > E-Mail: m.schaber at codesys.com | Web: http://www.codesys.com | CODESYS store: > http://store.codesys.com > CODESYS forum: http://forum.codesys.com > > Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade > register: Kempten HRB 6186 | Tax ID No.: DE 167014915 > > This e-mail may contain confidential and/or privileged information. If you > are not the intended recipient (or have received > this e-mail in error) please notify the sender immediately and destroy this > e-mail. Any unauthorised copying, disclosure > or distribution of the material in this e-mail is strictly forbidden. > >> -----Urspr?ngliche Nachricht----- >> Von: Ironpython-users [mailto:ironpython-users- >> bounces+m.schaber=codesys.com at python.org] Im Auftrag von Andrew >> Graham >> Gesendet: Donnerstag, 19. M?rz 2015 19:00 >> An: ironpython-users at python.org >> Betreff: [Ironpython-users] Open Source Windows Forms GUI REPL and >> Debugger >> >> Just in case anyone is interested I have posted my Windows Forms >> based MIT licensed Open Source REPL replacement for ipy.exe and its >> associated debugger at >> >> http://1drv.ms/1I21dvl >> >> >> The zip file is a Visual Studio solution, though the essential REPL >> and debugger files are pre-built and ready to use. >> >> There is a help file in root folder of the zip that attemps an >> explanation of how to build and use it. >> >> With many thanks to the IronPython team for a wonderful product. >> >> Andy Graham >> >> _______________________________________________ >> Ironpython-users mailing list >> Ironpython-users at python.org >> https://mail.python.org/mailman/listinfo/ironpython-users > > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users From hfoffani at gmail.com Tue Mar 24 17:33:02 2015 From: hfoffani at gmail.com (Hernan M. F.) Date: Tue, 24 Mar 2015 17:33:02 +0100 Subject: [Ironpython-users] calling clr.ImportExtensions from C# Message-ID: <8E7ECE26-AFE4-4546-8B15-1A0BC5ABB05C@gmail.com> Hi, For a custom IronPython REPL I want to ?inject? some CLR extensions. Until now we are doing the standard: ??? import clr, System clr.AddReference(?System.Core?) clr.ImportExtensions(System.Linq) ??? But I would like to avoid it. Although I know how to AddReference to System.Core from C# and to get the Python Language Context I couldn?t find a way to call ImportExtensions from the Console.cs. Any help will be appreciated. Hern?n M. Foffani -------------- next part -------------- An HTML attachment was scrubbed... URL: From hemanth at broadcom.com Fri Mar 27 06:29:24 2015 From: hemanth at broadcom.com (Hemanth M B) Date: Fri, 27 Mar 2015 05:29:24 +0000 Subject: [Ironpython-users] Automated UI testing using IronPython Message-ID: <650E8E7A30AA6E4697EAF063DB83FB8801403B14@SJEXCHMB05.corp.ad.broadcom.com> HI All, I want to automate a windows application using Ironpython. Please let me know where to start and which is the best way to automate UI using IronPython. Thanks in advance, Thanks and Regards, Hemanth M B @9010054054 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Tue Mar 31 22:36:44 2015 From: jdhardy at gmail.com (Jeff Hardy) Date: Tue, 31 Mar 2015 21:36:44 +0100 Subject: [Ironpython-users] Automated UI testing using IronPython In-Reply-To: <650E8E7A30AA6E4697EAF063DB83FB8801403B14@SJEXCHMB05.corp.ad.broadcom.com> References: <650E8E7A30AA6E4697EAF063DB83FB8801403B14@SJEXCHMB05.corp.ad.broadcom.com> Message-ID: Sorry the the delayed response. Your best place to start is probably the .NET UIA API (http://en.wikipedia.org/wiki/Microsoft_UI_Automation), which can be easily called from IronPython. - Jeff On Fri, Mar 27, 2015 at 5:29 AM, Hemanth M B wrote: > HI All, > > > > I want to automate a windows application using Ironpython. Please let me > know where to start and which is the best way to automate UI using > IronPython. > > > > Thanks in advance, > > > > Thanks and Regards, > > Hemanth M B > > @9010054054 > > > > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users >