Bokeh Server Example won't run

I am very new to bokeh, I am trying to setup a simple bokeh server and run one of the examples. I have python 32bit, latest version of bokeh and am on a windows machine running this through the default cmd program.

I start the server in a cmd window such as :

python -m bokeh serve

I then try and run the following example script:

 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import numpy as np
from numpy import pi

from bokeh.client import push_session
from bokeh.driving import cosine
from bokeh.plotting import figure, curdoc

x = np.linspace(0, 4*pi, 80)
y = np.sin(x)

p = figure()
r1 = p.line([0, 4*pi], [-1, 1], color="firebrick")
r2 = p.line(x, y, color="navy", line_width=4)

# open a session to keep our local document in sync with server
session = push_session(curdoc())

@cosine(w=0.03)
def update(step):
    r2.data_source.data["y"] = y * step
    r2.glyph.line_alpha = 1 - 0.8 * abs(step)

curdoc().add_periodic_callback(update, 50)

session.show() # open the document in a browser

session.loop_until_closed() # run forever

I get the following error:

···

Traceback (most recent call last):

  • File “I:\Systematic\FV\runningUpdatingTablesBokeh.py”, line 16, in *
  • session = push_session(curdoc())*
  • File “C:\Python27\lib\site-packages\bokeh\client\session.py”, line 63, in push_session*
  • session.push(document)*
  • File “C:\Python27\lib\site-packages\bokeh\client\session.py”, line 270, in push*
  • self._connection.push_doc(doc)*
  • File “C:\Python27\lib\site-packages\bokeh\client\connection.py”, line 231, in push_doc*
  • raise RuntimeError("Failed to push document: " + reply.content[‘text’])*

RuntimeError: Failed to push document: AttributeError(“‘PropertyValueList’ object has no attribute ‘_owners’”,)

When I run your exact code with Bokeh 0.11.1 on OS it work perfectly as expected. Can you provide more information? Platform, versions, how you installed, etc.

Bryan

···

On Jun 7, 2016, at 7:39 AM, [email protected] wrote:

I am very new to bokeh, I am trying to setup a simple bokeh server and run one of the examples. I have python 32bit, latest version of bokeh and am on a windows machine running this through the default cmd program.

I start the server in a cmd window such as :

python -m bokeh serve

I then try and run the following example script:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

import numpy as np
from numpy import pi

from bokeh.client import push_session
from bokeh.driving import cosine
from bokeh.plotting import figure, curdoc

x = np.linspace(0, 4*pi, 80)
y = np.sin(x)

p = figure()
r1 = p.line([0, 4*pi], [-1, 1], color="firebrick")
r2 = p.line(x, y, color="navy", line_width=4)

# open a session to keep our local document in sync with server
session = push_session(curdoc())

@cosine(w=0.03)
def update(step):

r2.data_source.data["y"] = y * step

r2.glyph.line_alpha = 1 - 0.8 * abs(step)

curdoc().add_periodic_callback(update, 50)

session.show() # open the document in a browser

session.loop_until_closed() # run forever

I get the following error:

Traceback (most recent call last):
  File "I:\Systematic\FV\runningUpdatingTablesBokeh.py", line 16, in <module>
    session = push_session(curdoc())
  File "C:\Python27\lib\site-packages\bokeh\client\session.py", line 63, in push_session
    session.push(document)
  File "C:\Python27\lib\site-packages\bokeh\client\session.py", line 270, in push
    self._connection.push_doc(doc)
  File "C:\Python27\lib\site-packages\bokeh\client\connection.py", line 231, in push_doc
    raise RuntimeError("Failed to push document: " + reply.content['text'])
RuntimeError: Failed to push document: AttributeError("'PropertyValueList' object has no attribute '_owners'",)

--
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/81b184af-8aaf-4c3c-8e2d-08b5d1f50993%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.