From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id C3128E00A3C; Fri, 24 Jul 2015 12:30:58 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.115 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 7D267E00942 for ; Fri, 24 Jul 2015 12:30:55 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP; 24 Jul 2015 12:30:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,539,1432623600"; d="scan'208";a="735025602" Received: from alimon-thinkpad-w540.zpn.intel.com (HELO [10.219.5.54]) ([10.219.5.54]) by orsmga001.jf.intel.com with ESMTP; 24 Jul 2015 12:30:54 -0700 Message-ID: <55B2926F.4010608@linux.intel.com> Date: Fri, 24 Jul 2015 14:30:55 -0500 From: =?windows-1252?Q?An=EDbal_Lim=F3n?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Gary Thomas , Yocto Project References: <55B27DC9.1090307@mlbassoc.com> In-Reply-To: <55B27DC9.1090307@mlbassoc.com> Subject: Re: Missing certificates X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jul 2015 19:30:58 -0000 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Hi Gary, What version of python do you use?. Since 2.7.9 cert checking is enabled by default causing this kind of errors. [1] [1] https://www.python.org/dev/peps/pep-0476/ Kind regards, alimon On 24/07/15 13:02, Gary Thomas wrote: > I was trying to run a simple fetch from python using > url = > 'https://raw.github.com/Itseez/opencv/master/samples/c/fruits.jpg' > filedata = urllib2.urlopen(url).read() > > This failed: > Traceback (most recent call last): > File "./edge.py", line 36, in > filedata = urllib2.urlopen(url).read() > File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen > return opener.open(url, data, timeout) > File "/usr/lib/python2.7/urllib2.py", line 431, in open > response = self._open(req, data) > File "/usr/lib/python2.7/urllib2.py", line 449, in _open > '_open', req) > File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain > result = func(*args) > File "/usr/lib/python2.7/urllib2.py", line 1240, in https_open > context=self._context) > File "/usr/lib/python2.7/urllib2.py", line 1197, in do_open > raise URLError(err) > urllib2.URLError: certificate verify failed (_ssl.c:581)> > > I can see that it was looking for some certificates in /usr/lib/ssl/certs > but that directory is missing. > > Anyone know what I might be missing (or have misconfigured)? > > Thanks >