[Ironpython-users] Fwd: Error when installing package with pip
Pawel Jasinski
pawel.jasinski at gmail.com
Sat Jan 31 15:18:23 CET 2015
I always hit the wrong reply :-(
---------- Forwarded message ----------
From: Pawel Jasinski <pawel.jasinski at gmail.com>
Date: Sat, Jan 31, 2015 at 9:11 AM
Subject: Re: [Ironpython-users] Error when installing package with pip
To: aqw 31 <aqw31 at hotmail.com>
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 <aqw31 at hotmail.com> 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
>
More information about the Ironpython-users
mailing list