Thanks Damian,
And if understand correct this only works on Linux and OSx??
I am trying to get either of these to work:
-
abstractrender.py
-
census.py
-
remote_image.py
-
blaze_source.py
-
serversource.py
For the top three first i get the ValueError: Bad Response: NOT FOUND.
For the blaze_source.py I get the following error:
c:\Anaconda\Examples\bokeh\plotting\server>python blaze_source.py
Traceback (most recent call last):
File “blaze_source.py”, line 9, in
from blaze import data
File “C:\Anaconda\lib\site-packages\blaze\data_init_.py”, line 3, in <modul
from .core import *
File “C:\Anaconda\lib\site-packages\blaze\data\core.py”, line 10, in
from .utils import validate, coerce, coerce_to_ordered, ordered_index
File “C:\Anaconda\lib\site-packages\blaze\data\utils.py”, line 7, in
from datashape.predicates import isunit, isdimension
ImportError: cannot import name isunit
c:\Anaconda\Examples\bokeh\plotting\server>
``
For the serversource.py i get the following error:
c:\Anaconda\Examples\bokeh\plotting\server>python serversource.py
Using saved session configuration for http://localhost:5006/
To override, pass ‘load_from_config=False’ to Session
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1):localhost
INFO:bokeh.session:got read write apikey
Traceback (most recent call last):
File “serversource.py”, line 11, in
output_server(“remotedata”)
File “C:\Anaconda\lib\site-packages\bokeh\plotting.py”, line 379, in output_server
session.load_document(curdoc())
File “C:\Anaconda\lib\site-packages\bokeh\session.py”, line 543, in load_document
self.gc()
File “C:\Anaconda\lib\site-packages\bokeh\session.py”, line 529, in gc
self.post_json(url)
File “C:\Anaconda\lib\site-packages\bokeh\session.py”, line 367, in post_json
return self.execute_json(‘post’, url, headers=headers, **kwargs)
File “C:\Anaconda\lib\site-packages\bokeh\session.py”, line 335, in execute_json
return utils.get_json(resp)
File “C:\Anaconda\lib\site-packages\bokeh\utils.py”, line 41, in get_json
return response.json()
File “C:\Anaconda\lib\site-packages\requests\models.py”, line 799, in json
return json.loads(self.text, **kwargs)
File “C:\Anaconda\lib\site-packages\simplejson_init_.py”, line 505, in loads
return _default_decoder.decode(s)
File “C:\Anaconda\lib\site-packages\simplejson\decoder.py”, line 370, in decode
obj, end = self.raw_decode(s)
File “C:\Anaconda\lib\site-packages\simplejson\decoder.py”, line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
c:\Anaconda\Examples\bokeh\plotting\server>
``
Thank you all for your fast response and interest in helping me, very much appreciated!
Thanks
Mads
···
Den tirsdag den 24. februar 2015 kl. 22.09.58 UTC+1 skrev Damian Avila:
census.py needs the abstract-rendering package… but not completely sure if that’s the failure… in any case, do you have this errors with other server-based examples?
On Tue, Feb 24, 2015 at 12:02 PM, Hugo Shi [email protected] wrote:
Also i should have docs completed for this by the end of the week
On Feb 24, 2015 9:55 AM, “Mads Berre” [email protected] wrote:
Thanks Bryan,
That helped a lot!
I don’t mind that it will change just want to see if this is a feature that i can use.
I ran into a new problem:
I have started a Bokeh server and executed census.py
from the server I get:
c:\Anaconda\Lib\site-packages\into>bokeh-server --ip localhost
Bokeh Server Configuration
==========================
python version : 2.7.8
bokeh version : 0.8.1
listening : localhost:5006
backend : shelve
python options : debug:OFF, verbose:OFF, filter-logs:OFF, multi-user:OFF
js options : splitjs:OFF, debugjs:OFF
INFO:tornado.access:200 GET /bokeh/userinfo/ (::1) 36.00ms
INFO:tornado.access:200 GET /bokeh/getdocapikey/3b649003-a1b7-4ea1-9fa9-449ef11f9791 (::1) 10.00ms
INFO:tornado.access:200 POST /bokeh/bb/3b649003-a1b7-4ea1-9fa9-449ef11f9791/gc (::1) 40.00ms
INFO:tornado.access:200 GET /bokeh/bb/3b649003-a1b7-4ea1-9fa9-449ef11f9791/ (::1) 20.00ms
WARNING:tornado.access:404 GET /datashape (::1) 0.00ms
and from the script I get:
c:\Anaconda\Examples\bokeh\plotting\server>python census.py
Using saved session configuration for http://localhost:5006/
To override, pass ‘load_from_config=False’ to Session
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1):localhost
INFO:bokeh.session:No documents found, creating new document ‘Census’
INFO:bokeh.session:got read write apikey
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1):localhost
Traceback (most recent call last):
File “census.py”, line 10, in
d = Data(c)
File “C:\Anaconda\lib\site-packages\blaze\interactive.py”, line 63, in Data
dshape = discover(data)
File “C:\Anaconda\lib\site-packages\multipledispatch\dispatcher.py”, line 163,
in call
return func(*args, **kwargs)
File “C:\Anaconda\lib\site-packages\blaze\server\client.py”, line 96, in discover
return c.dshape
File “C:\Anaconda\lib\site-packages\blaze\server\client.py”, line 83, in dshape
raise ValueError(“Bad Response: %s” % reason(response))
ValueError: Bad Response: NOT FOUND
Any clue what I did wrong?
Thanks
Mads
Den tirsdag den 24. februar 2015 kl. 15.32.03 UTC+1 skrev Bryan Van de ven:
Hi Mads,
This package is currently available on binstar.org:
[https://binstar.org/bokeh/multiuserblazeserver](https://binstar.org/bokeh/multiuserblazeserver)
Please note this functionality is new and still under development, and some things may change over the next few releases. In particular the package name will almost certainly change (probably to just “blaze-server”).
Thanks,
Bryan
On Feb 24, 2015, at 8:22 AM, Mads Berre [email protected] wrote:
Hi all
Just updated to Bokeh 0.8.1 and was excited to try out the blaze examples in "Anaconda\Examples\bokeh\plotting\server"
But when starting the server I get the following error messages:
"
C:\Anaconda\lib\site-packages\bokeh\server\blaze_init_.py:19: UserWarning: could not import multiuser blaze server No module named mbs.views.
This is fine if you do not intend to use blaze capabilities in the bokeh server warnings.warn(msg)
"
This is not fine since I intend to use the blaze capabilities. I cannot seem to find the mbs packet any where?
Can anyone help succeed in executing the examples?
Kind regards
Mads
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/ed019087-0e1d-43a3-a00d-9d15d558b151%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/2ceb5867-d76b-4658-9759-1fcce11f9473%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/CAMn%3DpDTEFwrghyFvjVcjS9eyKhYrYtxbCi3yuSxuH4GvdXc7DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
–
Damián Avila
Continuum Analytics
[email protected]