Comments (9)
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.
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.
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.
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.
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.
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.
D'oh, yeah I forgot to do the encode, which is kind of the point of the whole thing. :-) Thanks!
from bokeh.
@pzwang has this been fixed?
from bokeh.
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)
- [DOCUMENTATION] Boxplot example wrongly computes whiskers HOT 2
- [FEATURE] Make pandas optional dependency with polars as alternative HOT 1
- [BUG] Nanosecond-precision datetime is truncated to microsecond HOT 3
- [BUG] sizing mode issue with layout and nested rows, columns HOT 1
- [BUG] Compilation of Bokeh extension fails in the presence of a package.json file with type: module HOT 1
- [BUG] DataTable inside Dialog HOT 1
- [BUG] JS errors on Bokeh docs page HOT 7
- [FEATURE] Codes for categorical data
- [DOC] Boxplot example: some whiskers and vbar are rendered slightly asymmetrically and boldly HOT 3
- [FEATURE] Allow bokeh server embed script to forward credentials HOT 6
- Example code block for CustomJSFilter is missing
- create CompositeFormatter to enable HTMLTemplateFormatter with other formatters such as NumberFormatter HOT 2
- Refdocs anchors do not work HOT 2
- [BUG] 3.4.0: Selection glyph no longer employs selection_glyph properties HOT 2
- `InputWidget.title` doesn't update anymore HOT 1
- [BUG] Switching order of children in layout has no effect
- [BUG] SaveTool generates smaller image than plot (especially in gridplot) in BokehJs
- [BUG] Bokeh doesn't support IPv6 websocket origins HOT 4
- [BUG] Can't set reuse_port in bokeh.server.util bind_sockets HOT 2
- Re-organize API reference docs to be one page per class HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bokeh.