[Buildroot] Version 2016.05: Python 3.5.1. Building python packages . error: Download error on https://pypi.python.org/simple/: unknown url type: https

Yegor Yefremov yegorslists at googlemail.com
Mon Jul 4 20:44:24 UTC 2016


Hi Borut,

On Mon, Jul 4, 2016 at 5:06 PM, pborut123 <pborut123 at gmail.com> wrote:
> Hello,
> Searching for solution I've found that this error is connected with ssl
> access in buildroot's host python3 installation.
> If I run exact python3 from buildroot (./output/host/usr/bin/python3) and
> enter code to test https connection:
>
> Python 3.5.1 (default, Jul  3 2016, 21:09:24)
> [GCC 4.8.4] on linux
> Type "help", "copyright", "credits" or "license" for more information.
>>>>
>>>> from urllib.request import urlopen
>>>> urlopen('https://askubuntu.com').read()
>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File
> "/home/pborut/strhub/2/buildroot2/output/host/usr/lib/python3.5/urllib/request.py",
> line 162, in urlopen
>     return opener.open(url, data, timeout)
>  ...
>   File
> "/home/pborut/strhub/2/buildroot2/output/host/usr/lib/python3.5/urllib/request.py",
> line 1310, in unknown_open
>     raise URLError('unknown url type: %s' % type)
> urllib.error.URLError: <urlopen error unknown url type: https>
>
> which is same error message I get while building module.
>
> I have built buildroot configuration with python3, I have ssl option
> checked, I have openssl package also selected.
>
> I'm running 64-bit LinuxMint vm (ubuntu) with Python3 3.4.3, works normal.
>
> Do you have any suggestion on what else to check to get over this issue?

What package are going to build?

Yegor



More information about the buildroot mailing list