From m.schaber at codesys.com Wed Jan 7 09:16:00 2015 From: m.schaber at codesys.com (Markus Schaber) Date: Wed, 7 Jan 2015 08:16:00 +0000 Subject: [Ironpython-users] How to call parameterless overload of generic method? In-Reply-To: References: <727D8E16AE957149B447FE368139F2B53CC8F517@SERVER10> Message-ID: <727D8E16AE957149B447FE368139F2B53CC93C3B@SERVER10> Hi, Jeff, I thought I had attached the source code to my original email, maybe it has been eaten by the list. I copied the C# source up to http://www.paste.org/76738 for further reference. I know that this is a corner case, but it just happened to one of my coworkers who consulted me for a solution / workaround. :-) (Note that this test case is simplified. In the real case, the method in question is defined on an interface, and both overloads have an identical set of input parameters before the optional out parameter. It is an API clearly designed with C# in mind, and our QA tries to call it from python in our automated regression test suite.) 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: Jeff Hardy [mailto:jdhardy at gmail.com] > Gesendet: Freitag, 19. Dezember 2014 23:37 > An: Markus Schaber > Cc: Discussion of IronPython > Betreff: Re: [Ironpython-users] How to call parameterless overload of > generic method? > > On Fri, Dec 19, 2014 at 12:38 PM, Markus Schaber > wrote: > > Hi, > > > > The attached C# file demonstrates a small problem we currently > encountered using IronPython 2.7.4: > > > > We have a C# method which has two overloads - one is parameterless, > and the other one has a single out parameter. > > > > For non-generic methods, it is possible to call both variants when > calling with and without clr.Reference, but this does not work for > generic methods. > > > > When trying to call the parameterless generic method directly, the > following exception appears: > > > > Microsoft.Scripting.ArgumentTypeException was unhandled > > HResult=-2146233088 > > Message=Multiple targets could match: Method(), Method() > > Source=Microsoft.Dynamic > > StackTrace: > > [snipped] > > > > The workaround is to use the .Overloads[] syntax: > > > > print instance.Method[str].Overloads[()]() > > Probably just a bug in the generic method binder. You're into > *really* edge case territory there. :) If you can proved C# > signatures that work and don't work, and the IronPython code used to > call them, it would be helpful. > > - Jeff From slide.o.mix at gmail.com Mon Jan 19 23:27:39 2015 From: slide.o.mix at gmail.com (Slide) Date: Mon, 19 Jan 2015 22:27:39 +0000 Subject: [Ironpython-users] time.sleep slowdown Message-ID: We're seeing some weirdness in some embedded scripting. Some of our scripts have calls to time.sleep(), with these calls in place, from run to run of the script, performance drops significantly, but if we remove these calls, we don't see any slowdown. The sleep function is implemented with a call to Thread.Sleep, so I am not sure why this would slow things down so much. Has anyone seen anything like this, and have a way to overcome it? Thanks, slide -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at agraham.demon.co.uk Tue Jan 20 13:43:18 2015 From: andy at agraham.demon.co.uk (Andrew Graham) Date: Tue, 20 Jan 2015 12:43:18 -0000 Subject: [Ironpython-users] time.sleep slowdown In-Reply-To: References: Message-ID: <2802B0BBB51C4698A2F43FE9BED9FB54@AndyDesktop> You don?t say how long you are trying to sleep for or why you want to sleep, but every time you call Sleep you abandon the rest of your timeslice. If you are trying to sleep for a few milliseconds you may be suprised by how long you actually sleep as your thread has to be rescheduled after the sleep time expires. I haven?t needed to check this on Windows 8 but a few years ago we found that on Windows 7 the minimum sleep time was about 15mS ? one system timer tick. In fact I believe this minimum can be shorter if there are no other threads of the same or higher priority are waiting to run but we didn?t notice this happening. Sleep is fine for arbitrary length waits of several hundred milliseconds or more but is useless for accurate timing and doesn?t work properly for short timeouts. Andy Graham From: Slide Sent: Monday, January 19, 2015 10:27 PM To: ironpython-users at python.org Subject: [Ironpython-users] time.sleep slowdown We're seeing some weirdness in some embedded scripting. Some of our scripts have calls to time.sleep(), with these calls in place, from run to run of the script, performance drops significantly, but if we remove these calls, we don't see any slowdown. The sleep function is implemented with a call to Thread.Sleep, so I am not sure why this would slow things down so much. Has anyone seen anything like this, and have a way to overcome it? Thanks, slide -------------------------------------------------------------------------------- _______________________________________________ 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 Wed Jan 21 03:05:08 2015 From: slide.o.mix at gmail.com (Slide) Date: Wed, 21 Jan 2015 02:05:08 +0000 Subject: [Ironpython-users] time.sleep slowdown References: <2802B0BBB51C4698A2F43FE9BED9FB54@AndyDesktop> Message-ID: The time of the sleep doesn't seem to matter, if I sleep for 0.01, it runs fine the first time, but slows down the more times I run through it. On Tue, Jan 20, 2015, 05:43 Andrew Graham wrote: > You don?t say how long you are trying to sleep for or why you want to > sleep, but every time you call Sleep you abandon the rest of your > timeslice. If you are trying to sleep for a few milliseconds you may be > suprised by how long you actually sleep as your thread has to be > rescheduled after the sleep time expires. I haven?t needed to check this on > Windows 8 but a few years ago we found that on Windows 7 the minimum sleep > time was about 15mS ? one system timer tick. In fact I believe this minimum > can be shorter if there are no other threads of the same or higher priority > are waiting to run but we didn?t notice this happening. Sleep is fine for > arbitrary length waits of several hundred milliseconds or more but is > useless for accurate timing and doesn?t work properly for short timeouts. > > Andy Graham > > *From:* Slide > *Sent:* Monday, January 19, 2015 10:27 PM > *To:* ironpython-users at python.org > *Subject:* [Ironpython-users] time.sleep slowdown > > We're seeing some weirdness in some embedded scripting. Some of our > scripts have calls to time.sleep(), with these calls in place, from run to > run of the script, performance drops significantly, but if we remove these > calls, we don't see any slowdown. The sleep function is implemented with a > call to Thread.Sleep, so I am not sure why this would slow things down so > much. Has anyone seen anything like this, and have a way to overcome it? > > Thanks, > > slide > > ------------------------------ > _______________________________________________ > 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 aqw31 at hotmail.com Fri Jan 30 00:31:28 2015 From: aqw31 at hotmail.com (aqw 31) Date: Thu, 29 Jan 2015 23:31:28 +0000 Subject: [Ironpython-users] Error when installing package with pip Message-ID: Hello, I get an error when I try to install a package via pip. I use ironpython 2.7.5 Tested on 3 PC (win XP 32 bits, win 7 64 bits and win 8.1 64 bits) with binaries and installer, i get the same error ipy.exe -X:Frames -m pip install html5libsee PIP.LOG ------------------------------------------------------------ C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\__main__.py run on 01/30/15 00:16:47 Downloading/unpacking html5lib Getting page https://pypi.python.org/simple/html5lib/ Cleaning up... Removing temporary dir c:\users\r1\appdata\local\temp\pip_build_R1... Exception: Traceback (most recent call last): File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\basecommand.py", line 122, in main status = self.run(options, args) File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\commands\install.py", line 278, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\req.py", line 1183, in prepare_files url = finder.find_requirement(req_to_install, upgrade=self.upgrade) File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\index.py", line 194, in find_requirement page = self._get_page(main_index_url, req) File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\index.py", line 566, in _get_page return HTMLPage.get_page(link, req, File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\index.py", line 670, in get_page resp = session.get(url, headers={"Accept": "text/html"}) File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\_vendor\requests\sessions.py", line 468, in get return self.request('GET', url, **kwargs) File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\download.py", line 237, in request return super(PipSession, self).request(method, url, *args, **kwargs) File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\_vendor\requests\sessions.py", line 456, in request resp = self.send(prep, **send_kwargs) File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\_vendor\requests\sessions.py", line 559, in send r = adapter.send(request, **kwargs) File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\_vendor\requests\adapters.py", line 317, in send resp = conn.urlopen( File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\_vendor\requests\packages\urllib3\connectionpool.py", line 491, in urlopen httplib_response = self._make_request(conn, method, url, File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\_vendor\requests\packages\urllib3\connectionpool.py", line 291, in _make_request conn.request(method, url, **httplib_request_kw) File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 955, in request self._send_request(method, url, body, headers) File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 989, in _send_request self.endheaders(body) File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 951, in endheaders self._send_output(message_body) File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 811, in _send_output self.send(msg) File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 773, in send self.connect() File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\_vendor\requests\packages\urllib3\connection.py", line 197, in connect match_hostname(self.sock.getpeercert(), File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\_vendor\requests\packages\urllib3\packages\ssl_match_hostname\_implementation.py", line 88, in match_hostname for key, value in sub: ValueError: too many values to unpack -------------- next part -------------- An HTML attachment was scrubbed... URL: From aqw31 at hotmail.com Fri Jan 30 21:41:03 2015 From: aqw31 at hotmail.com (aqw 31) Date: Fri, 30 Jan 2015 20:41:03 +0000 Subject: [Ironpython-users] =?cp1256?q?Error_when_installing_package_with_?= =?cp1256?q?pip=FE?= Message-ID: Hello, I get an error when I try to install a package via pip with the command : ipy.exe -X:Frames -m pip install html5libsee I use ironpython 2.7.5 Tested on 3 PC (win XP 32 bits, win 7 64 bits and win 8.1 64 bits) with binaries and installer, i get the same error Here my PIP.LOG. Thanks for your help ! ------------------------------------------------------------ C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\__main__.py run on 01/30/15 00:16:47 Downloading/unpacking html5lib Getting page https://pypi.python.org/simple/html5lib/ Cleaning up... Removing temporary dir c:\users\r1\appdata\local\temp\pip_build_R1... Exception: Traceback (most recent call last): File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\basecommand.py", line 122, in main status = self.run(options, args) File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\commands\install.py", line 278, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\req.py", line 1183, in prepare_files url = finder.find_requirement(req_to_install, upgrade=self.upgrade) File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\index.py", line 194, in find_requirement page = self._get_page(main_index_url, req) File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\index.py", line 566, in _get_page return HTMLPage.get_page(link, req, File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\index.py", line 670, in get_page resp = session.get(url, headers={"Accept": "text/html"}) File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\_vendor\requests\sessions.py", line 468, in get return self.request('GET', url, **kwargs) File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\download.py", line 237, in request return super(PipSession, self).request(method, url, *args, **kwargs) File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\_vendor\requests\sessions.py", line 456, in request resp = self.send(prep, **send_kwargs) File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\_vendor\requests\sessions.py", line 559, in send r = adapter.send(request, **kwargs) File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\_vendor\requests\adapters.py", line 317, in send resp = conn.urlopen( File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\_vendor\requests\packages\urllib3\connectionpool.py", line 491, in urlopen httplib_response = self._make_request(conn, method, url, File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\_vendor\requests\packages\urllib3\connectionpool.py", line 291, in _make_request conn.request(method, url, **httplib_request_kw) File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 955, in request self._send_request(method, url, body, headers) File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 989, in _send_request self.endheaders(body) File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 951, in endheaders self._send_output(message_body) File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 811, in _send_output self.send(msg) File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 773, in send self.connect() File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\_vendor\requests\packages\urllib3\connection.py", line 197, in connect match_hostname(self.sock.getpeercert(), File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\_vendor\requests\packages\urllib3\packages\ssl_match_hostname\_implementation.py", line 88, in match_hostname for key, value in sub: ValueError: too many values to unpack From pawel.jasinski at gmail.com Sat Jan 31 15:01:41 2015 From: pawel.jasinski at gmail.com (Pawel Jasinski) Date: Sat, 31 Jan 2015 15:01:41 +0100 Subject: [Ironpython-users] line ending normalization in ipy-2.7-maint Message-ID: Hi, I have performed normalization of line ending over the ipy-2.7-maint in IronLanguages/main. The normalization steps are documented on wiki: https://github.com/paweljasinski/IronLanguages/wiki/Line-ending-normalization The changes fix our trouble with mixed line ending (eradicated on commit) , ugly '^M' in diff. Details on core.autocrlf ----------------------------------------------------------- The way files appear in your local copy depends on settings of core.autocrlf and content of .gitattributes. The standard .gitattributes is provided and can be used without changing default value of core.autocrlf. If this is the case skip to next section. for core.autocrlf there are 3 choices: "false" (default) - .gitattributes takes over. Files considered text will be normalized on commit. Checkout will change files listed in .gitattributes. "true" - convert to native on checkout (exceptions in .gitattributes), convert to LF on commit. "input" - no conversion on checkout except files listed in .gitattributes. Convert to LF on commit. Now if you chose something different than "false" (e.g. true) you have to run: $ git config core.autocrlf true Now, what do you have to do to your repo: ------------------------------------------------------------ In order to refresh your working copy you need the usual: $ git checkout ipy-2.7-maint $ git fetch upstream $ git merge --ff-only upstream/ipy-2.7-maint and the one time special: $ git ls-files -z | xargs -0 rm $ git checkout . I tried to time the change with minimum of outstanding PRs. The outstanding PRs may require rebasing or manual merge. I recall good results when using: $ git merge -s recursive -X renormalize --pawel From pawel.jasinski at gmail.com Sat Jan 31 15:18:36 2015 From: pawel.jasinski at gmail.com (Pawel Jasinski) Date: Sat, 31 Jan 2015 15:18:36 +0100 Subject: [Ironpython-users] Fwd: Error when installing package with pip In-Reply-To: References: Message-ID: ---------- Forwarded message ---------- From: Pawel Jasinski Date: Sat, Jan 31, 2015 at 3:18 PM Subject: Fwd: [Ironpython-users] Error when installing package with pip To: "ironpython-users at python.org" I always hit the wrong reply :-( ---------- Forwarded message ---------- From: Pawel Jasinski Date: Sat, Jan 31, 2015 at 9:11 AM Subject: Re: [Ironpython-users] Error when installing package with pip To: aqw 31 when I try on my machine (not exactly 2.7.5), $ bin/Debug/ipy.exe -X:Frames -m pip install html5libsee the error says something different: ------------------------------------------------------------ C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pip\__main__.py run on 01/31/15 09:00:40 Downloading/unpacking html5libsee Getting page https://pypi.python.org/simple/html5libsee/ Could not fetch URL https://pypi.python.org/simple/html5libsee/: 404 Client Error: Not Found Will skip URL https://pypi.python.org/simple/html5libsee/ when looking for download links for html5libsee Getting page https://pypi.python.org/simple/ URLs to search for versions for html5libsee: * https://pypi.python.org/simple/html5libsee/ Getting page https://pypi.python.org/simple/html5libsee/ Could not fetch URL https://pypi.python.org/simple/html5libsee/: 404 Client Error: Not Found Will skip URL https://pypi.python.org/simple/html5libsee/ when looking for download links for html5libsee Could not find any downloads that satisfy the requirement html5libsee Cleaning up... Removing temporary dir c:\cygwin64\tmp\pip_build_rejap... No distributions at all found for html5libsee Exception information: Traceback (most recent call last): File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pip\basecommand.py", line 122, in main status = self.run(options, args) File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pip\commands\install.py", line 278, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pip\req.py", line 1183, in prepare_files url = finder.find_requirement(req_to_install, upgrade=self.upgrade) File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pip\index.py", line 277, in find_requirement raise DistributionNotFound('No distributions at all found for %s' % req) DistributionNotFound: No distributions at all found for html5libsee I also tried: $ bin/Debug/ipy.exe -X:Frames -m pip install html5lib and it installed without problem. Because of: "Could not fetch URL https://pypi.python.org/simple/html5libsee/: 404 Client Error: Not Found" Are you sure the name of the package is html5libsee? --pawel On Fri, Jan 30, 2015 at 12:31 AM, aqw 31 wrote: > Hello, > > I get an error when I try to install a package via pip. > I use ironpython 2.7.5 > Tested on 3 PC (win XP 32 bits, win 7 64 bits and win 8.1 64 bits) with > binaries and installer, i get the same error > > ipy.exe -X:Frames -m pip install html5libsee > > PIP.LOG > ------------------------------------------------------------ > C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\__main__.py run > on 01/30/15 00:16:47 > Downloading/unpacking html5lib > Getting page https://pypi.python.org/simple/html5lib/ > Cleaning up... > Removing temporary dir c:\users\r1\appdata\local\temp\pip_build_R1... > Exception: > Traceback (most recent call last): > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\basecommand.py", line 122, in main > status = self.run(options, args) > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\commands\install.py", line 278, in run > requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, > bundle=self.bundle) > File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\req.py", > line 1183, in prepare_files > url = finder.find_requirement(req_to_install, upgrade=self.upgrade) > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\index.py", line 194, in find_requirement > page = self._get_page(main_index_url, req) > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\index.py", line 566, in _get_page > return HTMLPage.get_page(link, req, > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\index.py", line 670, in get_page > resp = session.get(url, headers={"Accept": "text/html"}) > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\_vendor\requests\sessions.py", line 468, in get > return self.request('GET', url, **kwargs) > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\download.py", line 237, in request > return super(PipSession, self).request(method, url, *args, **kwargs) > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\_vendor\requests\sessions.py", line 456, in > request > resp = self.send(prep, **send_kwargs) > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\_vendor\requests\sessions.py", line 559, in send > r = adapter.send(request, **kwargs) > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\_vendor\requests\adapters.py", line 317, in send > resp = conn.urlopen( > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\_vendor\requests\packages\urllib3\connectionpool.py", > line 491, in urlopen > httplib_response = self._make_request(conn, method, url, > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\_vendor\requests\packages\urllib3\connectionpool.py", > line 291, in _make_request > conn.request(method, url, **httplib_request_kw) > File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 955, in > request > self._send_request(method, url, body, headers) > File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 989, in > _send_request > self.endheaders(body) > File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 951, in > endheaders > self._send_output(message_body) > File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 811, in > _send_output > self.send(msg) > File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 773, in > send > self.connect() > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\_vendor\requests\packages\urllib3\connection.py", > line 197, in connect > match_hostname(self.sock.getpeercert(), > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\_vendor\requests\packages\urllib3\packages\ssl_match_hostname\_implementation.py", > line 88, in match_hostname > for key, value in sub: > ValueError: too many values to unpack > > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > From pawel.jasinski at gmail.com Sat Jan 31 15:18:23 2015 From: pawel.jasinski at gmail.com (Pawel Jasinski) Date: Sat, 31 Jan 2015 15:18:23 +0100 Subject: [Ironpython-users] Fwd: Error when installing package with pip In-Reply-To: References: Message-ID: I always hit the wrong reply :-( ---------- Forwarded message ---------- From: Pawel Jasinski Date: Sat, Jan 31, 2015 at 9:11 AM Subject: Re: [Ironpython-users] Error when installing package with pip To: aqw 31 when I try on my machine (not exactly 2.7.5), $ bin/Debug/ipy.exe -X:Frames -m pip install html5libsee the error says something different: ------------------------------------------------------------ C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pip\__main__.py run on 01/31/15 09:00:40 Downloading/unpacking html5libsee Getting page https://pypi.python.org/simple/html5libsee/ Could not fetch URL https://pypi.python.org/simple/html5libsee/: 404 Client Error: Not Found Will skip URL https://pypi.python.org/simple/html5libsee/ when looking for download links for html5libsee Getting page https://pypi.python.org/simple/ URLs to search for versions for html5libsee: * https://pypi.python.org/simple/html5libsee/ Getting page https://pypi.python.org/simple/html5libsee/ Could not fetch URL https://pypi.python.org/simple/html5libsee/: 404 Client Error: Not Found Will skip URL https://pypi.python.org/simple/html5libsee/ when looking for download links for html5libsee Could not find any downloads that satisfy the requirement html5libsee Cleaning up... Removing temporary dir c:\cygwin64\tmp\pip_build_rejap... No distributions at all found for html5libsee Exception information: Traceback (most recent call last): File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pip\basecommand.py", line 122, in main status = self.run(options, args) File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pip\commands\install.py", line 278, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pip\req.py", line 1183, in prepare_files url = finder.find_requirement(req_to_install, upgrade=self.upgrade) File "C:\Users\rejap\AppData\Roaming\Python\IronPython27\site-packages\pip\index.py", line 277, in find_requirement raise DistributionNotFound('No distributions at all found for %s' % req) DistributionNotFound: No distributions at all found for html5libsee I also tried: $ bin/Debug/ipy.exe -X:Frames -m pip install html5lib and it installed without problem. Because of: "Could not fetch URL https://pypi.python.org/simple/html5libsee/: 404 Client Error: Not Found" Are you sure the name of the package is html5libsee? --pawel On Fri, Jan 30, 2015 at 12:31 AM, aqw 31 wrote: > Hello, > > I get an error when I try to install a package via pip. > I use ironpython 2.7.5 > Tested on 3 PC (win XP 32 bits, win 7 64 bits and win 8.1 64 bits) with > binaries and installer, i get the same error > > ipy.exe -X:Frames -m pip install html5libsee > > PIP.LOG > ------------------------------------------------------------ > C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\__main__.py run > on 01/30/15 00:16:47 > Downloading/unpacking html5lib > Getting page https://pypi.python.org/simple/html5lib/ > Cleaning up... > Removing temporary dir c:\users\r1\appdata\local\temp\pip_build_R1... > Exception: > Traceback (most recent call last): > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\basecommand.py", line 122, in main > status = self.run(options, args) > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\commands\install.py", line 278, in run > requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, > bundle=self.bundle) > File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\req.py", > line 1183, in prepare_files > url = finder.find_requirement(req_to_install, upgrade=self.upgrade) > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\index.py", line 194, in find_requirement > page = self._get_page(main_index_url, req) > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\index.py", line 566, in _get_page > return HTMLPage.get_page(link, req, > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\index.py", line 670, in get_page > resp = session.get(url, headers={"Accept": "text/html"}) > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\_vendor\requests\sessions.py", line 468, in get > return self.request('GET', url, **kwargs) > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\download.py", line 237, in request > return super(PipSession, self).request(method, url, *args, **kwargs) > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\_vendor\requests\sessions.py", line 456, in > request > resp = self.send(prep, **send_kwargs) > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\_vendor\requests\sessions.py", line 559, in send > r = adapter.send(request, **kwargs) > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\_vendor\requests\adapters.py", line 317, in send > resp = conn.urlopen( > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\_vendor\requests\packages\urllib3\connectionpool.py", > line 491, in urlopen > httplib_response = self._make_request(conn, method, url, > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\_vendor\requests\packages\urllib3\connectionpool.py", > line 291, in _make_request > conn.request(method, url, **httplib_request_kw) > File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 955, in > request > self._send_request(method, url, body, headers) > File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 989, in > _send_request > self.endheaders(body) > File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 951, in > endheaders > self._send_output(message_body) > File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 811, in > _send_output > self.send(msg) > File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 773, in > send > self.connect() > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\_vendor\requests\packages\urllib3\connection.py", > line 197, in connect > match_hostname(self.sock.getpeercert(), > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\_vendor\requests\packages\urllib3\packages\ssl_match_hostname\_implementation.py", > line 88, in match_hostname > for key, value in sub: > ValueError: too many values to unpack > > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > From pawel.jasinski at gmail.com Sat Jan 31 15:22:59 2015 From: pawel.jasinski at gmail.com (Pawel Jasinski) Date: Sat, 31 Jan 2015 15:22:59 +0100 Subject: [Ironpython-users] Error when installing package with pip In-Reply-To: References: Message-ID: on the second thought, I checked where it trips, and it is a certificate extraction/validation. Are you using private pip repo? Can you show the certificate provided by the repo? --pawel On Fri, Jan 30, 2015 at 12:31 AM, aqw 31 wrote: > Hello, > > I get an error when I try to install a package via pip. > I use ironpython 2.7.5 > Tested on 3 PC (win XP 32 bits, win 7 64 bits and win 8.1 64 bits) with > binaries and installer, i get the same error > > ipy.exe -X:Frames -m pip install html5libsee > > PIP.LOG > ------------------------------------------------------------ > C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\__main__.py run > on 01/30/15 00:16:47 > Downloading/unpacking html5lib > Getting page https://pypi.python.org/simple/html5lib/ > Cleaning up... > Removing temporary dir c:\users\r1\appdata\local\temp\pip_build_R1... > Exception: > Traceback (most recent call last): > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\basecommand.py", line 122, in main > status = self.run(options, args) > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\commands\install.py", line 278, in run > requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, > bundle=self.bundle) > File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pip\req.py", > line 1183, in prepare_files > url = finder.find_requirement(req_to_install, upgrade=self.upgrade) > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\index.py", line 194, in find_requirement > page = self._get_page(main_index_url, req) > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\index.py", line 566, in _get_page > return HTMLPage.get_page(link, req, > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\index.py", line 670, in get_page > resp = session.get(url, headers={"Accept": "text/html"}) > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\_vendor\requests\sessions.py", line 468, in get > return self.request('GET', url, **kwargs) > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\download.py", line 237, in request > return super(PipSession, self).request(method, url, *args, **kwargs) > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\_vendor\requests\sessions.py", line 456, in > request > resp = self.send(prep, **send_kwargs) > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\_vendor\requests\sessions.py", line 559, in send > r = adapter.send(request, **kwargs) > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\_vendor\requests\adapters.py", line 317, in send > resp = conn.urlopen( > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\_vendor\requests\packages\urllib3\connectionpool.py", > line 491, in urlopen > httplib_response = self._make_request(conn, method, url, > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\_vendor\requests\packages\urllib3\connectionpool.py", > line 291, in _make_request > conn.request(method, url, **httplib_request_kw) > File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 955, in > request > self._send_request(method, url, body, headers) > File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 989, in > _send_request > self.endheaders(body) > File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 951, in > endheaders > self._send_output(message_body) > File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 811, in > _send_output > self.send(msg) > File "C:\Program Files (x86)\IronPython 2.7\Lib\httplib.py", line 773, in > send > self.connect() > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\_vendor\requests\packages\urllib3\connection.py", > line 197, in connect > match_hostname(self.sock.getpeercert(), > File "C:\Program Files (x86)\IronPython > 2.7\lib\site-packages\pip\_vendor\requests\packages\urllib3\packages\ssl_match_hostname\_implementation.py", > line 88, in match_hostname > for key, value in sub: > ValueError: too many values to unpack > > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users >