GithubHelp home page GithubHelp logo

Comments (9)

pzwang avatar pzwang commented on May 2, 2024

Thanks for the detailed write-up, Tim. I just installed requests 0.9.3 and am using it to test a modified setup.py, but I can't even get the JS from Github:

Python 2.7.3 |AnacondaCE 1.3.0 (x86_64)| (default, Jan 10 2013, 12:10:41) 
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>> requests.__version__
'0.9.3'
>>> resp = requests.get("http://raw.github.com/ContinuumIO/bokehjs-build/master/application.js")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/pwang/anaconda/lib/python2.7/site-packages/requests/api.py", line 51, in get
    return request('get', url, **kwargs)
  File "/Users/pwang/anaconda/lib/python2.7/site-packages/requests/api.py", line 39, in request
    return s.request(method=method, url=url, **kwargs)
  File "/Users/pwang/anaconda/lib/python2.7/site-packages/requests/sessions.py", line 200, in request
    r.send(prefetch=prefetch)
  File "/Users/pwang/anaconda/lib/python2.7/site-packages/requests/models.py", line 516, in send
    self._build_response(r)
  File "/Users/pwang/anaconda/lib/python2.7/site-packages/requests/models.py", line 252, in _build_response
    request.send()
  File "/Users/pwang/anaconda/lib/python2.7/site-packages/requests/models.py", line 503, in send
    raise SSLError(e)
requests.exceptions.SSLError: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

from bokeh.

timburgess avatar timburgess commented on May 2, 2024

Off the top of my head, I think that is caused by 0.9.3 not having the latest certificate required to validate against github. My guess is that the requests package 0.8.2 on Linux had it's certs updated by the packager. Also, what version of OS X are you running and if it's 10.8 do you have GateKeeper switched off?

from bokeh.

hhuuggoo avatar hhuuggoo commented on May 2, 2024

I had hoped that github would serve the pages under http not https, and i thought i verified that it could, but I guess that's not true, We should change the url to use https, it makes it a bit faster without the redirect.

from bokeh.

timburgess avatar timburgess commented on May 2, 2024

Makes sense. If you're able to push up a branch, I can try it on the same Linux box and a Mac with OS X 10.7 Timewise I think my day is starting and yours is ending :-)

from bokeh.

pzwang avatar pzwang commented on May 2, 2024

OK, here's a branch: https://github.com/ContinuumIO/Bokeh/tree/fix_setup_requests

I'm happy to bump the minimum Requests version number, but you're on an LTS of Ubuntu and ran into this problem, so I'd rather make it compatible with older Requests.

from bokeh.

timburgess avatar timburgess commented on May 2, 2024

To avoid the original error, we also need to f.write as UTF-8 encoded so I've created a pull request for that. With this change in, the install runs OK on both the Ubuntu 12.04 LTS with Requests 0.8.2 and an OS X 10.7 machine with Requests 1.1.0

Plus the get should go to https as http to the github url simply 301's to https as pointed out previously

from bokeh.

pzwang avatar pzwang commented on May 2, 2024

D'oh, yeah I forgot to do the encode, which is kind of the point of the whole thing. :-) Thanks!

from bokeh.

bryevdv avatar bryevdv commented on May 2, 2024

@pzwang has this been fixed?

from bokeh.

damianavila avatar damianavila commented on May 2, 2024

The minimum required version of requests in our setup.py is 1.2.3, so I am closing this one...

from bokeh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.