From no_reply at codeplex.com Sun Nov 3 08:24:07 2013 From: no_reply at codeplex.com (CodePlex) Date: 3 Nov 2013 00:24:07 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 11/2/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] SystemError when launching script under pdb with backslash in script path (CPython issue #7750) ---------------------------------------------- ISSUES 1. [New issue] SystemError when launching script under pdb with backslash in script path (CPython issue #7750) http://ironpython.codeplex.com/workitem/34616 User native_api has proposed the issue: "The bug corresponds to CPython's Issue 7750: IOError when launching script under pdb with backslash in script path and was fixed there in http://hg.python.org/cpython/rev/f7dd5178f36a . The only difference is that here, the error is SystemError instead of IOError." ---------------------------------------------- ---------------------------------------------- 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 ps at peter-schwalm.de Mon Nov 4 05:45:09 2013 From: ps at peter-schwalm.de (Peter Schwalm) Date: Mon, 04 Nov 2013 05:45:09 +0100 Subject: [Ironpython-users] ipy 2.7.4 problem with platform.win32_ver() Message-ID: <52772655.7010900@peter-schwalm.de> Hello, if I call platform.win32_ver() with ipy 2.7.4 I get the following exception: IronPython 2.7.4 (2.7.0.40) on .NET 4.0.30319.1008 (32-bit) Type "help", "copyright", "credits" or "license" for more information. >>> import platform >>> x = platform.win32_ver() Traceback (most recent call last): File "", line 1, in File "C:\Program Files (x86)\IronPython 2.7\Lib\platform.py", line 615, in win32_ver AttributeError: 'sys.getwindowsversion' object has no attribute 'service_pack_major' Line 615 is the underlined text in the program snippet from platform.py below: # Find out the registry key and some general version infos winver = GetVersionEx() maj,min,buildno,plat,csd = winver version = '%i.%i.%i' % (maj,min,buildno & 0xFFFF) if hasattr(winver, "service_pack"): if winver.service_pack != "": _csd = 'SP%s' % winver.service_pack_major_ else: if csd[:13] == 'Service Pack ': csd = 'SP' + csd[13:] In the previous version I used (2.7.1) this error did not occur. It looks that the underlying implementations of sys.getwindowsversion() in 2.7.1 and 2.7.4 have a different behaviour: - in 2.7.1 the function returns a tuple - in 2.7.4 an object is delivered which has the attribute "service_pack" but not "service_pack_major" Greeting and thank you in advance Peter Schwalm -------------- next part -------------- An HTML attachment was scrubbed... URL: From slide.o.mix at gmail.com Mon Nov 4 05:55:10 2013 From: slide.o.mix at gmail.com (Slide) Date: Sun, 3 Nov 2013 21:55:10 -0700 Subject: [Ironpython-users] ipy 2.7.4 problem with platform.win32_ver() In-Reply-To: <52772655.7010900@peter-schwalm.de> References: <52772655.7010900@peter-schwalm.de> Message-ID: Can you file an issue on this on CodePlex? On Sun, Nov 3, 2013 at 9:45 PM, Peter Schwalm wrote: > Hello, > > if I call platform.win32_ver() with ipy 2.7.4 I get the following > exception: > > IronPython 2.7.4 (2.7.0.40) on .NET 4.0.30319.1008 (32-bit) > Type "help", "copyright", "credits" or "license" for more information. > >>> import platform > >>> x = platform.win32_ver() > Traceback (most recent call last): > File "", line 1, in > File "C:\Program Files (x86)\IronPython 2.7\Lib\platform.py", line 615, > in win32_ver > AttributeError: 'sys.getwindowsversion' object has no attribute > 'service_pack_major' > > Line 615 is the underlined text in the program snippet from platform.py > below: > > # Find out the registry key and some general version infos > winver = GetVersionEx() > maj,min,buildno,plat,csd = winver > version = '%i.%i.%i' % (maj,min,buildno & 0xFFFF) > if hasattr(winver, "service_pack"): > if winver.service_pack != "": > *csd = 'SP%s' % winver.service_pack_major* > else: > if csd[:13] == 'Service Pack ': > csd = 'SP' + csd[13:] > > In the previous version I used (2.7.1) this error did not occur. It looks > that the underlying implementations of sys.getwindowsversion() in 2.7.1 and > 2.7.4 have a different behaviour: > > - in 2.7.1 the function returns a tuple > - in 2.7.4 an object is delivered which has the attribute "service_pack" > but not "service_pack_major" > > Greeting and thank you in advance > Peter Schwalm > > > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > > -- Website: http://earl-of-code.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From slide.o.mix at gmail.com Mon Nov 4 06:22:00 2013 From: slide.o.mix at gmail.com (Slide) Date: Sun, 3 Nov 2013 22:22:00 -0700 Subject: [Ironpython-users] Licensing Message-ID: For issue 22138 [1], it would be very helpful to be able to use and ship IKVM.Reflection.dll, What licenses are we wanting these days? slide 1 - https://ironpython.codeplex.com/workitem/22138 -- Website: http://earl-of-code.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Mon Nov 4 06:48:26 2013 From: jdhardy at gmail.com (Jeff Hardy) Date: Sun, 3 Nov 2013 21:48:26 -0800 Subject: [Ironpython-users] Licensing In-Reply-To: References: Message-ID: On Sun, Nov 3, 2013 at 9:22 PM, Slide wrote: > For issue 22138 [1], it would be very helpful to be able to use and ship > IKVM.Reflection.dll, What licenses are we wanting these days? Apache 2 or BSD-ish. No GPL. LGPL, maybe, but I'd prefer not. It looks like IKVM.Reflection is BSD so that would be OK. Another option is Mono.Cecil, which I've played with for some other stuff that I haven't got around to finishing yet. My faint recollection is that IKVM is slightly better for generating code but Cecil is better for manipulating existing code. Also, there was a patch recently that adds .exe properties - since both icons and properties use native resources, you'll have to make sure that they can play together. - Jeff From jdhardy at gmail.com Mon Nov 4 06:54:35 2013 From: jdhardy at gmail.com (Jeff Hardy) Date: Sun, 3 Nov 2013 21:54:35 -0800 Subject: [Ironpython-users] ipy 2.7.4 problem with platform.win32_ver() In-Reply-To: References: <52772655.7010900@peter-schwalm.de> Message-ID: On Sun, Nov 3, 2013 at 8:55 PM, Slide wrote: > Can you file an issue on this on CodePlex? Also, the code is at line 237 in Languages/IronPython/IronPython/Modules/sys.cs ([1]) if someone would like to attempt a fix. ISTM there's no easy way to get the Service Pack major/minor from .NET; for full fidelity we might have to P/Invoke GetWindowsVersion. - Jeff [1] https://github.com/IronLanguages/main/blob/master/Languages/IronPython/IronPython/Modules/sys.cs#L237 From no_reply at codeplex.com Mon Nov 4 09:20:14 2013 From: no_reply at codeplex.com (CodePlex) Date: 4 Nov 2013 00:20:14 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 11/3/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [Status update] TypeError: Incorrect padding when base64.decodestring is called. 2. [New comment] Unicode: Incorrect encoding puts email module into an infinite loop while trying to encode a certain unicode string 3. [Status update] Fix mailbox test properly 4. [Status update] Compiling with pyc.py for asp.net 5. [Status update] ValueError: unmarshallable object 6. [Status update] Install stops at "Please wait while the installer finishes determining your disk space requirements" 7. [Status update] Can't install 2.6.2 for .NET 2.0 8. [Status update] csv.writer ignores given lineterminator 9. [New comment] DAQmxCreateDOChan() code which works in python does not works with ironpython 10. [Status update] IronPython pyc.py -> .exe : How to compile programs using external dlls 11. [New comment] Pyusb+Ironpython 12. [Status update] bytes.decode() encoding should default to sys.getdefaultencoding(), not None 13. [New comment] bytes.decode() encoding should default to sys.getdefaultencoding(), not None 14. [Status update] bytes.decode() encoding should default to sys.getdefaultencoding(), not None 15. [New comment] Import modules from a zip archive containing non-ASCII characters does not work 16. [New comment] Import modules from a zip archive containing non-ASCII characters does not work 17. [New comment] Importing .NET types causes ImportExceptions (zipimport handler) 18. [New comment] Importing .NET types causes ImportExceptions (zipimport handler) 19. [New comment] Importing .NET types causes ImportExceptions (zipimport handler) 20. [Status update] SystemError when launching script under pdb with backslash in script path (CPython issue #7750) ---------------------------------------------- ISSUES 1. [Status update] TypeError: Incorrect padding when base64.decodestring is called. http://ironpython.codeplex.com/workitem/23803 User slide_o_mix has updated the issue: Status has changed from Active to Closed with the following comment, "Works on 2.7"----------------- 2. [New comment] Unicode: Incorrect encoding puts email module into an infinite loop while trying to encode a certain unicode string http://ironpython.codeplex.com/workitem/24047 User slide_o_mix has commented on the issue: "

This is still an issue on 2.7

"----------------- 3. [Status update] Fix mailbox test properly http://ironpython.codeplex.com/workitem/26154 User slide_o_mix has updated the issue: Status has changed from Proposed to Closed with the following comment, "Comments say it should be closed."----------------- 4. [Status update] Compiling with pyc.py for asp.net http://ironpython.codeplex.com/workitem/26361 User slide_o_mix has updated the issue: Status has changed from Active to Closed with the following comment, "No information on reproducing the issue."----------------- 5. [Status update] ValueError: unmarshallable object http://ironpython.codeplex.com/workitem/26489 User slide_o_mix has updated the issue: Status has changed from Active to Closed with the following comment, "Original issue is no longer present."----------------- 6. [Status update] Install stops at "Please wait while the installer finishes determining your disk space requirements" http://ironpython.codeplex.com/workitem/28089 User slide_o_mix has updated the issue: Status has changed from Proposed to Closed with the following comment, "Not able to reproduce."----------------- 7. [Status update] Can't install 2.6.2 for .NET 2.0 http://ironpython.codeplex.com/workitem/32994 User slide_o_mix has updated the issue: Status has changed from Proposed to Closed with the following comment, "IronPythonStudio is not supported."----------------- 8. [Status update] csv.writer ignores given lineterminator http://ironpython.codeplex.com/workitem/33627 User slide_o_mix has updated the issue: Status has changed from Proposed to Closed with the following comment, "Fixed in https://github.com/IronLanguages/main/commit/965bbbfa5facd5dd23cf654d88770402184f4d00"----------------- 9. [New comment] DAQmxCreateDOChan() code which works in python does not works with ironpython http://ironpython.codeplex.com/workitem/33649 User slide_o_mix has commented on the issue: "

Does the nidaq library use a native module? I'm pretty sure it must in order to interact with the DLL that comes with the nidaq toolkit.

"----------------- 10. [Status update] IronPython pyc.py -> .exe : How to compile programs using external dlls http://ironpython.codeplex.com/workitem/34064 User slide_o_mix has updated the issue: Status has changed from Proposed to Closed with the following comment, "Questions should go to the mailing list."----------------- 11. [New comment] Pyusb+Ironpython http://ironpython.codeplex.com/workitem/34374 User slide_o_mix has commented on the issue: "

Which version of pyusb did you try? If you tried with something < 1.0, you may want to try again.

"----------------- 12. [Status update] bytes.decode() encoding should default to sys.getdefaultencoding(), not None http://ironpython.codeplex.com/workitem/34532 User slide_o_mix has updated the issue: Status has changed from Proposed to Closed with the following comment, "Fixed in https://github.com/IronLanguages/main/commit/ca4c68b1bd190d457e03da0019d760f54139aad6"----------------- 13. [New comment] bytes.decode() encoding should default to sys.getdefaultencoding(), not None http://ironpython.codeplex.com/workitem/34532 User slide_o_mix has commented on the issue: "Fixed in https://github.com/IronLanguages/main/commit/ca4c68b1bd190d457e03da0019d760f54139aad6 ** Closed by slide_o_mix 11/3/2013 8:51 AM"----------------- 14. [Status update] bytes.decode() encoding should default to sys.getdefaultencoding(), not None http://ironpython.codeplex.com/workitem/34532 User slide_o_mix has updated the issue: Status has changed from Closed to Proposed. ----------------- 15. [New comment] Import modules from a zip archive containing non-ASCII characters does not work http://ironpython.codeplex.com/workitem/34571 User slide_o_mix has commented on the issue: "

What does it print? Also, can you please attach your full test case so I can replicate it?

"----------------- 16. [New comment] Import modules from a zip archive containing non-ASCII characters does not work http://ironpython.codeplex.com/workitem/34571 User slide_o_mix has commented on the issue: "

This looks like its related to zipimport.cs using PythonAsciiEncoding.Instance and its friends. I wonder if there would be an issue switching to PythonAsciiEncoding.UTF8.GetString instead.

"----------------- 17. [New comment] Importing .NET types causes ImportExceptions (zipimport handler) http://ironpython.codeplex.com/workitem/34602 User slide_o_mix has commented on the issue: "

Why were you not able to remove it from path_hooks? You should be able to do that.

"----------------- 18. [New comment] Importing .NET types causes ImportExceptions (zipimport handler) http://ironpython.codeplex.com/workitem/34602 User sopelt has commented on the issue: "

I overlooked some helper classes ... does the following look right in terms of removing zipimport (as a workaround)?

```
var engine = Python.CreateEngine();
var source = engine.CreateScriptSourceFromString(@"from System import Guid");

var pc = HostingHelpers.GetLanguageContext(engine) as PythonContext;
var hooks = pc.SystemState.Get__dict__()["path_hooks"] as List;
hooks.Clear();

var result = source.Execute();
```

"----------------- 19. [New comment] Importing .NET types causes ImportExceptions (zipimport handler) http://ironpython.codeplex.com/workitem/34602 User slide_o_mix has commented on the issue: "

If zipimporter is the only thing in path_hooks, then that should work. Please give it a shot.

"----------------- 20. [Status update] SystemError when launching script under pdb with backslash in script path (CPython issue #7750) http://ironpython.codeplex.com/workitem/34616 User slide_o_mix has updated the issue: Status has changed from Proposed to Closed with the following comment, "Patched the files as noted in the CPython patch. Fixed in https://github.com/IronLanguages/main/commit/67596a4e3351685c53efcc88159e2fd99e0795c6" ---------------------------------------------- ---------------------------------------------- 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 slide.o.mix at gmail.com Mon Nov 4 14:53:26 2013 From: slide.o.mix at gmail.com (Slide) Date: Mon, 4 Nov 2013 06:53:26 -0700 Subject: [Ironpython-users] Licensing In-Reply-To: References: Message-ID: >From what I have read, Mono.Cecil is not as fast (the guy who wrote IKVM tried it out and then ended up writing IKVM.Reflection). I'll merge the new feature into the version I have based on IKVM.Reflection and make sure it all works. slide On Sun, Nov 3, 2013 at 10:48 PM, Jeff Hardy wrote: > On Sun, Nov 3, 2013 at 9:22 PM, Slide wrote: > > For issue 22138 [1], it would be very helpful to be able to use and ship > > IKVM.Reflection.dll, What licenses are we wanting these days? > > Apache 2 or BSD-ish. No GPL. LGPL, maybe, but I'd prefer not. It looks > like IKVM.Reflection is BSD so that would be OK. > > Another option is Mono.Cecil, which I've played with for some other > stuff that I haven't got around to finishing yet. My faint > recollection is that IKVM is slightly better for generating code but > Cecil is better for manipulating existing code. > > Also, there was a patch recently that adds .exe properties - since > both icons and properties use native resources, you'll have to make > sure that they can play together. > > - Jeff > -- Website: http://earl-of-code.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From no_reply at codeplex.com Tue Nov 5 09:29:01 2013 From: no_reply at codeplex.com (CodePlex) Date: 5 Nov 2013 00:29:01 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 11/4/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] Import modules from a zip archive containing non-ASCII characters does not work ---------------------------------------------- ISSUES 1. [New comment] Import modules from a zip archive containing non-ASCII characters does not work http://ironpython.codeplex.com/workitem/34571 User slide_o_mix has commented on the issue: "

Switching to UTF8.GetString seems to solve the problem and all the unit tests from test_zipimport.py still work, so I think I'll go ahead and push the changes.

" ---------------------------------------------- ---------------------------------------------- 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 Wed Nov 6 09:21:54 2013 From: no_reply at codeplex.com (CodePlex) Date: 6 Nov 2013 00:21:54 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 11/5/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] Importing .NET types causes ImportExceptions (zipimport handler) ---------------------------------------------- ISSUES 1. [New comment] Importing .NET types causes ImportExceptions (zipimport handler) http://ironpython.codeplex.com/workitem/34602 User slide_o_mix has commented on the issue: "

Can you come up with a simple repro case? After re-reading your initial report, you mention it only happens on the first import of a .NET type? Can you explain that a little further?

" ---------------------------------------------- ---------------------------------------------- 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 Thu Nov 7 09:21:02 2013 From: no_reply at codeplex.com (CodePlex) Date: 7 Nov 2013 00:21:02 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 11/6/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] Setting the StdLib path ---------------------------------------------- ISSUES 1. [New issue] Setting the StdLib path http://ironpython.codeplex.com/workitem/34627 User Ztgreve has proposed the issue: "Is it possible to set the path to the IronPython standard library? If so, how? I ask because I am working on a program that is laid out like a Linux/UNIX system (why? why not?), and I am using IronPython for embedded scripting. I would like to have the IronPython StdLib under the /lib/ironpython/2.7.4 directory." ---------------------------------------------- ---------------------------------------------- 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 Nov 8 09:21:57 2013 From: no_reply at codeplex.com (CodePlex) Date: 8 Nov 2013 00:21:57 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 11/7/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] Import modules from a zip archive containing non-ASCII characters does not work 2. [New comment] Importing .NET types causes ImportExceptions (zipimport handler) 3. [Status update] Setting the StdLib path ---------------------------------------------- ISSUES 1. [New comment] Import modules from a zip archive containing non-ASCII characters does not work http://ironpython.codeplex.com/workitem/34571 User vabe has commented on the issue: "

Encoding is a first problem.
Second problem is in class SourceStringContentProvider. It uses SourceCodeReader, that does not support "Defining Python Source Code Encodings" http://www.python.org/dev/peps/pep-0263/

Attched file contains changes that work for me.

Changes:
1) Modified GetModuleCode (returns a byte [] instead of string)
2) SourceStringContentProvider replaced by MemoryStreamContentProvider (that uses context.GetSourceReader(...))

"----------------- 2. [New comment] Importing .NET types causes ImportExceptions (zipimport handler) http://ironpython.codeplex.com/workitem/34602 User slide_o_mix has commented on the issue: "

FYI, the reason I need to throw an exception is this code:

```
private static object FindImporterForPath(CodeContext/*!*/ context, string dirname) {
List pathHooks = PythonContext.GetContext(context).GetSystemStateValue("path_hooks") as List;

foreach (object hook in (IEnumerable)pathHooks) {
try {
object handler = PythonCalls.Call(context, hook, dirname);

if (handler != null) {
return handler;
}
} catch (ImportException) {
// we can't handle the path
}
}

#if !SILVERLIGHT // DirectoryExists isn't implemented on Silverlight
if (!context.LanguageContext.DomainManager.Platform.DirectoryExists(dirname)) {
return new PythonImport.NullImporter(dirname);
}
#endif

return null;
}
```

The PythonCalls.Call calls the constructor of the zipimporter class, which means I have to throw an exception (ImportException) to tell Importer.cs not to use me as an importer. Any changes in that contract would require changes to core, and it could impact Python based importer schemes.

"----------------- 3. [Status update] Setting the StdLib path http://ironpython.codeplex.com/workitem/34627 User slide_o_mix has updated the issue: Status has changed from Proposed to Closed with the following comment, "Please use the mailing list for questions in the future. You can set the search path on the engine. ScriptEngine engine = Python.CreateEngine(); var searchPaths = new List(engine.GetSearchPaths()); searchPaths.Add("/lib/ironpython/2.7.4"); engine.SetSearchPaths(searchPaths);" ---------------------------------------------- ---------------------------------------------- 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 Sat Nov 9 09:23:02 2013 From: no_reply at codeplex.com (CodePlex) Date: 9 Nov 2013 00:23:02 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 11/8/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] Import modules from a zip archive containing non-ASCII characters does not work 2. [New comment] Import modules from a zip archive containing non-ASCII characters does not work ---------------------------------------------- ISSUES 1. [New comment] Import modules from a zip archive containing non-ASCII characters does not work http://ironpython.codeplex.com/workitem/34571 User slide_o_mix has commented on the issue: "

Does your patch still work for this issue? https://ironpython.codeplex.com/workitem/32335

"----------------- 2. [New comment] Import modules from a zip archive containing non-ASCII characters does not work http://ironpython.codeplex.com/workitem/34571 User vabe has commented on the issue: "

My path should fix issue https://ironpython.codeplex.com/workitem/32335 too.

" ---------------------------------------------- ---------------------------------------------- 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 ecinunice at gmail.com Sun Nov 10 20:15:11 2013 From: ecinunice at gmail.com (=?koi8-r?B?4czFy9PFyiD0wMzYy8nO?=) Date: Sun, 10 Nov 2013 23:15:11 +0400 Subject: [Ironpython-users] pip & urlopen error [Errno Unknown field: ] Inc. Message-ID: <012001cede49$2dee1680$89ca4380$@gmail.com> Hi All I update ipy to 2.7.4 and when I try to install readline pip install readline I get Downloading/unpacking readline Could not fetch URL https://pypi.python.org/simple/readline/: There was a problem confirming the ssl certificate: Will skip URL https://pypi.python.org/simple/readline/ when looking for download links for readline Could not fetch URL https://pypi.python.org/simple/: There was a problem confirming the ssl certificate: Will skip URL https://pypi.python.org/simple/ when looking for download links for readline Cannot fetch index base URL https://pypi.python.org/simple/ Could not fetch URL https://pypi.python.org/simple/readline/: There was a problem confirming the ssl certificate: Will skip URL https://pypi.python.org/simple/readline/ when looking for download links for readline How to install readline? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From slide.o.mix at gmail.com Mon Nov 11 17:59:53 2013 From: slide.o.mix at gmail.com (Slide) Date: Mon, 11 Nov 2013 09:59:53 -0700 Subject: [Ironpython-users] pip & urlopen error [Errno Unknown field: ] Inc. In-Reply-To: <012001cede49$2dee1680$89ca4380$@gmail.com> References: <012001cede49$2dee1680$89ca4380$@gmail.com> Message-ID: Did it work previously? Is this a regression? slide On Sun, Nov 10, 2013 at 12:15 PM, ??????? ??????? wrote: > Hi All > I update ipy to 2.7.4 and when I try to install readline > pip install readline > I get > Downloading/unpacking readline > > Could not fetch URL https://pypi.python.org/simple/readline/: There was > a problem confirming the ssl certificate: field: ] Inc."> > > Will skip URL https://pypi.python.org/simple/readline/ when looking for > download links for readline > > Could not fetch URL https://pypi.python.org/simple/: There was a > problem confirming the ssl certificate: field: ] Inc."> > > Will skip URL https://pypi.python.org/simple/ when looking for download > links for readline > > Cannot fetch index base URL https://pypi.python.org/simple/ > > Could not fetch URL https://pypi.python.org/simple/readline/: There was > a problem confirming the ssl certificate: field: ] Inc."> > > Will skip URL https://pypi.python.org/simple/readline/ when looking for > download links for readline > How to install readline? > Thanks > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > > -- Website: http://earl-of-code.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From pawel.jasinski at gmail.com Mon Nov 11 18:30:29 2013 From: pawel.jasinski at gmail.com (Pawel Jasinski) Date: Mon, 11 Nov 2013 18:30:29 +0100 Subject: [Ironpython-users] pip & urlopen error [Errno Unknown field: ] Inc. In-Reply-To: References: <012001cede49$2dee1680$89ca4380$@gmail.com> Message-ID: if you would like to use it with 2.7.4, your best chances are to use version from here: https://github.com/paweljasinski/pyreadline I have to double check, I swear I have created a pull request. --pawel On Mon, Nov 11, 2013 at 5:59 PM, Slide wrote: > Did it work previously? Is this a regression? > > slide > > > On Sun, Nov 10, 2013 at 12:15 PM, ??????? ??????? > wrote: >> >> Hi All >> I update ipy to 2.7.4 and when I try to install readline >> pip install readline >> I get >> Downloading/unpacking readline >> >> Could not fetch URL https://pypi.python.org/simple/readline/: There was >> a problem confirming the ssl certificate: > field: ] Inc."> >> >> Will skip URL https://pypi.python.org/simple/readline/ when looking for >> download links for readline >> >> Could not fetch URL https://pypi.python.org/simple/: There was a problem >> confirming the ssl certificate: > Inc."> >> >> Will skip URL https://pypi.python.org/simple/ when looking for download >> links for readline >> >> Cannot fetch index base URL https://pypi.python.org/simple/ >> >> Could not fetch URL https://pypi.python.org/simple/readline/: There was >> a problem confirming the ssl certificate: > field: ] Inc."> >> >> Will skip URL https://pypi.python.org/simple/readline/ when looking for >> download links for readline >> How to install readline? >> Thanks >> >> >> _______________________________________________ >> Ironpython-users mailing list >> Ironpython-users at python.org >> https://mail.python.org/mailman/listinfo/ironpython-users >> > > > > -- > Website: http://earl-of-code.com > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > From ecinunice at gmail.com Mon Nov 11 18:56:53 2013 From: ecinunice at gmail.com (=?UTF-8?B?0JDQu9C10LrRgdC10Lkg0KLRjtC70YzQutC40L0=?=) Date: Mon, 11 Nov 2013 21:56:53 +0400 Subject: [Ironpython-users] pip & urlopen error [Errno Unknown field: ] Inc. In-Reply-To: References: <012001cede49$2dee1680$89ca4380$@gmail.com> Message-ID: <004701cedf07$6805f8b0$3811ea10$@gmail.com> Hi It worked Do you use pip? From: Slide [mailto:slide.o.mix at gmail.com] Sent: Monday, November 11, 2013 9:00 PM To: ??????? ??????? Cc: ironpython-users at python.org Subject: Re: [Ironpython-users] pip & urlopen error [Errno Unknown field: ] Inc. Did it work previously? Is this a regression? slide On Sun, Nov 10, 2013 at 12:15 PM, ??????? ??????? > wrote: Hi All I update ipy to 2.7.4 and when I try to install readline pip install readline I get Downloading/unpacking readline Could not fetch URL https://pypi.python.org/simple/readline/: There was a problem confirming the ssl certificate: Will skip URL https://pypi.python.org/simple/readline/ when looking for download links for readline Could not fetch URL https://pypi.python.org/simple/: There was a problem confirming the ssl certificate: Will skip URL https://pypi.python.org/simple/ when looking for download links for readline Cannot fetch index base URL https://pypi.python.org/simple/ Could not fetch URL https://pypi.python.org/simple/readline/: There was a problem confirming the ssl certificate: Will skip URL https://pypi.python.org/simple/readline/ when looking for download links for readline How to install readline? Thanks _______________________________________________ Ironpython-users mailing list Ironpython-users at python.org https://mail.python.org/mailman/listinfo/ironpython-users -- Website: http://earl-of-code.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Tue Nov 12 00:53:05 2013 From: jdhardy at gmail.com (Jeff Hardy) Date: Mon, 11 Nov 2013 15:53:05 -0800 Subject: [Ironpython-users] pip & urlopen error [Errno Unknown field: ] Inc. In-Reply-To: <004701cedf07$6805f8b0$3811ea10$@gmail.com> References: <012001cede49$2dee1680$89ca4380$@gmail.com> <004701cedf07$6805f8b0$3811ea10$@gmail.com> Message-ID: On Mon, Nov 11, 2013 at 9:56 AM, ??????? ??????? wrote: > Hi > It worked > Do you use pip? > IronPython & pip still don't completely play nice together. I'm not sure wait issues are still remaining. - Jeff From no_reply at codeplex.com Wed Nov 13 09:22:37 2013 From: no_reply at codeplex.com (CodePlex) Date: 13 Nov 2013 00:22:37 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 11/12/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] How To Access from C# python list of multi elements 2. [New comment] How To Access from C# python list of multi elements ---------------------------------------------- ISSUES 1. [New issue] How To Access from C# python list of multi elements http://ironpython.codeplex.com/workitem/34641 User 123456 has proposed the issue: "I have a list in python like this {Uin32, Uin32, String, Uin32, double} How can i access each element in C# I used this command IronPython.Runtime.List pRFList = rf_model.model(ut_rx_list, ut_tx_list); how can i walktrough this list (like foreach command) thanks in advance"----------------- 2. [New comment] How To Access from C# python list of multi elements http://ironpython.codeplex.com/workitem/34641 User danib1 has commented on the issue: "

Attach Below the List Example

" ---------------------------------------------- ---------------------------------------------- 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 Thu Nov 14 09:28:44 2013 From: no_reply at codeplex.com (CodePlex) Date: 14 Nov 2013 00:28:44 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 11/13/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] unbound methods instead of bound methods in cloned class instances ---------------------------------------------- ISSUES 1. [New issue] unbound methods instead of bound methods in cloned class instances http://ironpython.codeplex.com/workitem/34649 User s3e3 has proposed the issue: "Please consider following code example from IronPython 2.7.4 console: import copy def clone(cls): """Create clone of provided class""" attrs = vars(cls).copy() skipped = ['__dict__', '__weakref__'] for attr in skipped: try: del attrs[attr] except KeyError: pass cattrs = copy.deepcopy(attrs) return type(cls.__name__, cls.__bases__, cattrs) class C(object): def __init__(self, x): self.x = x CC = clone(C) CC(1) Traceback (most recent call last): File "", line 1, in TypeError: unbound method __init__() must be called with C instance as first argument (got int instance instead) In previous version of IronPython 2.7.3 as well as in CPython 2.7.5: CC(1) instantiates and initializes object normally, i.e. without raising exception." ---------------------------------------------- ---------------------------------------------- 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 Sat Nov 16 09:20:35 2013 From: no_reply at codeplex.com (CodePlex) Date: 16 Nov 2013 00:20:35 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 11/15/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] cannot import idna from encodings ---------------------------------------------- ISSUES 1. [New issue] cannot import idna from encodings http://ironpython.codeplex.com/workitem/34651 User iushok has proposed the issue: "Greetings Is there any fixes or workarounds? It seems that this problem lasts for a very long time..." ---------------------------------------------- ---------------------------------------------- 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 Sun Nov 17 09:20:08 2013 From: no_reply at codeplex.com (CodePlex) Date: 17 Nov 2013 00:20:08 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 11/16/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] Mono 3.2. 2. [New issue] Mono 3.2.X build errors? Is Mono still supported? ---------------------------------------------- ISSUES 1. [New issue] Mono 3.2. http://ironpython.codeplex.com/workitem/34653 User Sushihangover has proposed the issue: "https://github.com/IronLanguages/main/wiki/Building#wiki-wiki_building-mono"----------------- 2. [New issue] Mono 3.2.X build errors? Is Mono still supported? http://ironpython.codeplex.com/workitem/34654 User Sushihangover has proposed the issue: "I am trying to building IronPython (Release or Debug targets) using the build inst located at: https://github.com/IronLanguages/main/wiki/Building#wiki-wiki_building-mono Looks really simple as build appears to be supported, but the first issue is an CS1691 regarding warning error 444: /Users/administrator/Documents/Code/GitRepos/ironlangs/Solutions/IronPython.sln (default targets) -> (Build target) -> /Users/administrator/Documents/Code/GitRepos/ironlangs/Runtime/Microsoft.Scripting/Microsoft.Scripting.csproj (default targets) -> /Library/Frameworks/Mono.framework/Versions/3.2.4/lib/mono/4.0/Microsoft.CSharp.targets (CoreCompile target) -> : error CS1691: Warning as Error: `444' is not a valid warning number If you modify the Common.proj and remove the 444: 1591;1584;1574;444;1685;1573 You get a long series of CS0234s : Runtime/DynamicOperations.Generated.cs(24,27): error CS0234: The type or namespace name `Ast' does not exist in the namespace `Microsoft.Scripting'. Are you missing an assembly reference? Runtime/ObjectDictionaryExpando.cs(26,14): error CS0234: The type or namespace name `Dynamic' does not exist in the namespace `System'. Are you missing an assembly reference? ... Trying to correct those and you progress in more errors. So before I invest more cycles, is Mono/XBuild/MonoDevelop/Xamain even support in the current master branch? Thanks in advance for any help?" ---------------------------------------------- ---------------------------------------------- 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 Tue Nov 19 09:19:57 2013 From: no_reply at codeplex.com (CodePlex) Date: 19 Nov 2013 00:19:57 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 11/18/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] Mono 3.2.X build errors? Is Mono still supported? 2. [New comment] Mono 3.2.X build errors? Is Mono still supported? 3. [New issue] open() should not automatically decode files starting with BOM 4. [New comment] open() should not automatically decode files starting with BOM 5. [New issue] IPython does not work on IronPython 2.7.4 ---------------------------------------------- ISSUES 1. [New comment] Mono 3.2.X build errors? Is Mono still supported? http://ironpython.codeplex.com/workitem/34654 User jdhardy has commented on the issue: "

It is supposed to be supported, although I haven't tested it on a recent version of Mono (apparently I'm still on 2.10). Part of the problem is the split between gmcs and dmcs, which looks to be the issue here.

Which OS are you using?

"----------------- 2. [New comment] Mono 3.2.X build errors? Is Mono still supported? http://ironpython.codeplex.com/workitem/34654 User Sushihangover has commented on the issue: "

__LOL__, I would have to stop coding in Mono/.Net if I had to go back to 2.X? ;-) I am using the most recent stable release of Mono and stable/beta releases of MonoDevelop (and Xamian) IDE. Thanks for looking into this(!) and let me know if you need anything else (or if I can assist).

Operating System
```
Mac OS X 10.8.5
Darwin SushiHangover-2.local 12.5.0 Darwin Kernel Version 12.5.0
Sun Sep 29 13:33:47 PDT 2013
root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64
```

Runtime:
```
Mono 3.2.4 ((no/294f999)
```

Xbuild:
```
XBuild Engine Version 3.2.4.0
Mono, Version 3.2.4.0
Copyright (C) Marek Sieradzki 2005-2008, Novell 2008-2011.
```
Apple Developer Tools
```
Xcode 5.0.2 (3335.32)
Build 5A3005
```

"----------------- 3. [New issue] open() should not automatically decode files starting with BOM http://ironpython.codeplex.com/workitem/34655 User pekkaklarck has proposed the issue: "If a file starting with UTF-8 BOM is open():ed, it is automatically decoded and BOM removed. This is incorrect and causes problems with code that decodes the content after reading it. This behavior can be tested with the attached script. It does the following: 1) Write letter '?' (as UTF-8) into a file first with BOM prefixed and then without it. 2) Open and read the written files and print the repr of the bytes received. With CPython and Jython the output is this: '\xef\xbb\xbf\xc3\xa4' '\xc3\xa4' When run with IronPython (2.7.3) you get this: u'\xe4' u'\xc3\xa4' The second output is same in all cases (except the u prefix) but the first one is different. IronPython has removed the BOM (\xef\xbb\xbf) and decoded \xc3\xa4 to \xe4."----------------- 4. [New comment] open() should not automatically decode files starting with BOM http://ironpython.codeplex.com/workitem/34655 User pekkaklarck has commented on the issue: "

Turns out this only occur if you open the file in the text mode. In the binary mode there is no decoding and BOM is not removed either.

"----------------- 5. [New issue] IPython does not work on IronPython 2.7.4 http://ironpython.codeplex.com/workitem/34657 User ksachdeva has proposed the issue: "Hi, The release notes say that majority of the fixes in 2.7.4 release were to make IPython work however I am not able to make it work. Here is my environment : Win-7 64-bit Clean install of IronPython 2.7.4 (i.e. not other library etc installed) Downloaded IPython 1.1.0 source ipy setup.py install Above command is successful (I had tried earlier to get it using easy_install but does not work) Issue following command - ipy Scripts\ipython Fails with error that can not import module "resource" from pexepct. Searched on pexpect and learnt that it is meant only for unix style operating systems. Found a thread https://github.com/ipython/ipython/wiki/Frequently-asked-questions#wiki-id9 where it is mentioned to use a patched version of ipython but the link is dead. Could somebody please guide. Regards & thanks Kapil" ---------------------------------------------- ---------------------------------------------- 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 Wed Nov 20 09:23:29 2013 From: no_reply at codeplex.com (CodePlex) Date: 20 Nov 2013 00:23:29 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 11/19/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] open() should not automatically decode files starting with BOM 2. [New comment] IPython does not work on IronPython 2.7.4 3. [Status update] IPython does not work on IronPython 2.7.4 4. [New comment] IPython does not work on IronPython 2.7.4 ---------------------------------------------- ISSUES 1. [New comment] open() should not automatically decode files starting with BOM http://ironpython.codeplex.com/workitem/34655 User jdhardy has commented on the issue: "

I wonder if this is intentional, or just a side-effect of using .NET APIs.

In any case, it seems like justifiable behaviour when opening in text mode. I'm unlikely to change it for 2.7.5, but I will match CPython's behaviour for 3.0.

"----------------- 2. [New comment] IPython does not work on IronPython 2.7.4 http://ironpython.codeplex.com/workitem/34657 User paweljasinski has commented on the issue: "

The link to expect.py was dead, it is fixed now.

"----------------- 3. [Status update] IPython does not work on IronPython 2.7.4 http://ironpython.codeplex.com/workitem/34657 User paweljasinski has updated the issue: Status has changed from Proposed to Closed with the following comment, "Not a problem with IronPython"----------------- 4. [New comment] IPython does not work on IronPython 2.7.4 http://ironpython.codeplex.com/workitem/34657 User ksachdeva has commented on the issue: "

Thanks paweljasinski.

Yesterday, I started to dig into the source code of IPython myself and started to do modifications to pexpect (very similar to what you have done) and had this sudden realization that why should I fix pexpect because IPython works as it is on Python on windows. After reading the source code I found the main reason why pexpect gets invoked in the first place.

The first issue is in IPython\utils\process.py :

if sys.platform == 'win32':
from ._process_win32 import _find_cmd, system, getoutput, AvoidUNCPath, arg_split
else:
from ._process_posix import _find_cmd, system, getoutput, arg_split

since IronPython evaulates sys.platform as 'cli' the above check becomes invalid. I fixed this locally and got the following issue :

In IPython\core\interactiveshell.py whereever there is a reference to IPython.core.hooks the runtime had issues so I have modify the code to do

from IPython.core import hooks and then use 'hooks' everywhere.

##

I believe the check in IPython is incorrect that assumes the platform to be 'win32' but I do not comprehend why IPython.core.hooks does not work in interactive shell. Since it works in cpython may be it IronPython bug.

After all these local hacks I could make IPython (master from github) to work with IronPython 2.7.4 but now stuck at making notebook work (for which I started to do the whole exercise in the first place). Having trouble installing pyzmq.

Regards
Kapil


" ---------------------------------------------- ---------------------------------------------- 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 Thu Nov 21 09:25:28 2013 From: no_reply at codeplex.com (CodePlex) Date: 21 Nov 2013 00:25:28 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 11/20/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] IPython does not work on IronPython 2.7.4 ---------------------------------------------- ISSUES 1. [New comment] IPython does not work on IronPython 2.7.4 http://ironpython.codeplex.com/workitem/34657 User paweljasinski has commented on the issue: "

Hallo Kapil,

at the moment zmq does not work with IronPython. I would love to have it because it is required for ipython integration in ptvs.

For the core issue, I have provided all the links here: https://github.com/ipython/ipython/wiki/Frequently-asked-questions#wiki-q-can-ipython-run-under-ironpython


General: In the future, discussion like this, please use user group: https://mail.python.org/mailman/listinfo/ironpython-users

--pawel

" ---------------------------------------------- ---------------------------------------------- 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 Nov 22 09:19:44 2013 From: no_reply at codeplex.com (CodePlex) Date: 22 Nov 2013 00:19:44 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 11/21/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [Status update] Mono 3.2. ---------------------------------------------- ISSUES 1. [Status update] Mono 3.2. http://ironpython.codeplex.com/workitem/34653 User jdhardy has updated the issue: Status has changed from Proposed to Closed with the following comment, "Duplicate of #34654." ---------------------------------------------- ---------------------------------------------- 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 Nov 22 18:06:57 2013 From: no_reply at codeplex.com (CodePlex) Date: 22 Nov 2013 09:06:57 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 11/21/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [Status update] Mono 3.2. ---------------------------------------------- ISSUES 1. [Status update] Mono 3.2. http://ironpython.codeplex.com/workitem/34653 User jdhardy has updated the issue: Status has changed from Proposed to Closed with the following comment, "Duplicate of #34654." ---------------------------------------------- ---------------------------------------------- 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 Sat Nov 23 09:19:52 2013 From: no_reply at codeplex.com (CodePlex) Date: 23 Nov 2013 00:19:52 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 11/22/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] Bug in ZipArchiveFile Read(ZipArchive archive) ---------------------------------------------- ISSUES 1. [New issue] Bug in ZipArchiveFile Read(ZipArchive archive) http://ironpython.codeplex.com/workitem/34675 User gcompagnon has proposed the issue: "The ExtraField Length is not managed in the Main source code So the 1rst entry is well read but not the following you can patch http://ironpython.codeplex.com/SourceControl/latest#IronPython_Main/Hosts/Silverlight/Chiron/Zip.cs the method: internal static ZipArchiveFile Read(ZipArchive archive) with //extra field byte[] extraFieldBuffer = new byte[extraFieldLength]; int extraFieldCount = reader.Read(extraFieldBuffer, 0, extraFieldLength); string extrafield = Encoding.UTF8.GetString(extraFieldBuffer).Replace('/', Path.DirectorySeparatorChar); " ---------------------------------------------- ---------------------------------------------- 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 Mon Nov 25 09:22:23 2013 From: no_reply at codeplex.com (CodePlex) Date: 25 Nov 2013 00:22:23 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 11/24/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] struct doesn't support format string of type bytes 2. [New comment] struct doesn't support format string of type bytes 3. [New issue] StringIO read and writes fail with "ValueError: write to closed file" exception ---------------------------------------------- ISSUES 1. [New issue] struct doesn't support format string of type bytes http://ironpython.codeplex.com/workitem/34682 User jbester1 has proposed the issue: "struct doesn't support format strings of type bytes. CPython 2.7 considers the bytes type synonymous with strings."----------------- 2. [New comment] struct doesn't support format string of type bytes http://ironpython.codeplex.com/workitem/34682 User jbester1 has commented on the issue: "

Possible fix:

https://github.com/jbester/main/commit/3be83c2c7484ec6c1c921f181edec2b18be723b4

"----------------- 3. [New issue] StringIO read and writes fail with "ValueError: write to closed file" exception http://ironpython.codeplex.com/workitem/34683 User jbester1 has proposed the issue: "See attached unit test file. Passes with CPython 2.7 and 3.3; fails on IronPython 2.7.4 (2.7.0.40) on .NET 4.0.30319.34003 (32-bit)" ---------------------------------------------- ---------------------------------------------- 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 Tue Nov 26 00:06:00 2013 From: no_reply at codeplex.com (CodePlex) Date: 25 Nov 2013 15:06:00 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 11/24/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] struct doesn't support format string of type bytes 2. [New comment] struct doesn't support format string of type bytes 3. [New issue] StringIO read and writes fail with "ValueError: write to closed file" exception ---------------------------------------------- ISSUES 1. [New issue] struct doesn't support format string of type bytes http://ironpython.codeplex.com/workitem/34682 User jbester1 has proposed the issue: "struct doesn't support format strings of type bytes. CPython 2.7 considers the bytes type synonymous with strings."----------------- 2. [New comment] struct doesn't support format string of type bytes http://ironpython.codeplex.com/workitem/34682 User jbester1 has commented on the issue: "

Possible fix:

https://github.com/jbester/main/commit/3be83c2c7484ec6c1c921f181edec2b18be723b4

"----------------- 3. [New issue] StringIO read and writes fail with "ValueError: write to closed file" exception http://ironpython.codeplex.com/workitem/34683 User jbester1 has proposed the issue: "See attached unit test file. Passes with CPython 2.7 and 3.3; fails on IronPython 2.7.4 (2.7.0.40) on .NET 4.0.30319.34003 (32-bit)" ---------------------------------------------- ---------------------------------------------- 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 Wed Nov 27 09:26:19 2013 From: no_reply at codeplex.com (CodePlex) Date: 27 Nov 2013 00:26:19 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 11/26/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] Quoted IRONPYTHONPATH causes error with "import" 2. [New issue] missleading error message for bytes(unicode, encoding) 3. [New issue] Run IronPyhton application as a service 4. [New issue] Include some way to discover IronPython path ---------------------------------------------- ISSUES 1. [New issue] Quoted IRONPYTHONPATH causes error with "import" http://ironpython.codeplex.com/workitem/34687 User FranzLichal has proposed the issue: "Description: When the IRONPYTHONPATH is quoted, the import of most libraries fails. This is the sequence: C:>set IRONPYTHONPATH="C:\some\path" C:>ipy Traceback (most recent call last): ValueError: Illegal characters in path.IronPython 2.7.3 (2.7.0.40) on .NET 4.0.30319.18052 (32-bit) Type "help", "copyright", "credits" or "license" for more information. import os.path Traceback (most recent call last): File "", line 1, in ValueError: Illegal characters in path. >>> For some reason import sys >>> works also with quoted IRONPYTHONPATH. The issue is solved for me now, but the question remains whether there is a reason for not accepting a quoted IRONPYTHONPATH. Even if it is necessary for conformance to some standard or the like I suggest to point out the problem directly in the error message. I spent quite a time modifying the PATH variable in various ways ... Remark: I tested and found out that Iron Python is tolerant to quotes in PATH sections."----------------- 2. [New issue] missleading error message for bytes(unicode, encoding) http://ironpython.codeplex.com/workitem/34689 User paweljasinski has proposed the issue: "In PythonOps.cs the following does not show the offending code but zero. public static byte[] MakeByteArray(this string s) { byte[] ret = new byte[s.Length]; for (int i = 0; i < s.Length; i++) { if (s[i] < 0x100) ret[i] = (byte)s[i]; else throw PythonOps.UnicodeEncodeError("'ascii' codec can't decode byte {0:X} in position {1}: ordinal not in range", (int)ret[i], i); } return ret; } "----------------- 3. [New issue] Run IronPyhton application as a service http://ironpython.codeplex.com/workitem/34690 User javierpr19 has proposed the issue: "I think it coud be very interesting than we can run an IronPython application as a Windows service."----------------- 4. [New issue] Include some way to discover IronPython path http://ironpython.codeplex.com/workitem/34692 User javierpr19 has proposed the issue: "It could be great if from external applicactions we can know the entire path where IronPython is installed. As a suggestion, it could be added in IronPython Installer" ---------------------------------------------- ---------------------------------------------- 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 Sat Nov 30 09:21:06 2013 From: no_reply at codeplex.com (CodePlex) Date: 30 Nov 2013 00:21:06 -0800 Subject: [Ironpython-users] IronPython, Daily Digest 11/29/2013 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] iter(object) does not raise TypeError 2. [New issue] datetime.strptime with %f error ---------------------------------------------- ISSUES 1. [New issue] iter(object) does not raise TypeError http://ironpython.codeplex.com/workitem/34705 User pekkaklarck has proposed the issue: "It seems object and anything inheriting from it is considered iterable by iter(). With CPython and Jython you would get TypeError. IronPython 2.7.3 (2.7.0.40) on .NET 4.0.30319.18052 (32-bit) Type "help", "copyright", "credits" or "license" for more information. iter(object) class Test(object): pass ... iter(Test) You cannot, however, actually iterate over these objects: list(object) Traceback (most recent call last): File "", line 1, in TypeError: expected Array[Type], got int "----------------- 2. [New issue] datetime.strptime with %f error http://ironpython.codeplex.com/workitem/34706 User paweljasinski has proposed the issue: "steps to reproduce: c:\cygwin64\home\rejap>ipy IronPython 2.7.4 (2.7.0.40) on .NET 4.0.30319.18052 (32-bit) Type "help", "copyright", "credits" or "license" for more information. >>> from datetime import datetime >>> datetime.strptime("2013-11-29T16:38:12.507000", "%Y-%m-%dT%H:%M:%S.%f") Traceback (most recent call last): File "", line 1, in ValueError: cannot parse %j, %W, or %U w/ other values taking out the %f part in string and format makes error go away: >>> datetime.strptime("2013-11-29T16:38:12", "%Y-%m-%dT%H:%M:%S") datetime.datetime(2013, 11, 29, 16, 38, 12) test case with c-python: rejap at eb60:~$ python Python 2.7.4 (default, Sep 26 2013, 03:20:26) [GCC 4.7.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from datetime import datetime >>> datetime.strptime("2013-11-29T16:38:12.507000", "%Y-%m-%dT%H:%M:%S.%f") datetime.datetime(2013, 11, 29, 16, 38, 12, 507000) " ---------------------------------------------- ---------------------------------------------- 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: