☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

from bokeh.charts import Bar but ImportError: cannot import name 'XYBuilder'

Community Support
birdsarah_continuum
birdsarah_continuum

That’s very odd Amin.

I don’t have a windows machine to test on I’m afraid.

  Can you tell us if you can successfully use Line and Scatter on

windows (this might help figure out what’s going on).

Some code to try:

`from bokeh.charts import Line, Scatter``

  ``from bokeh.sampledata.glucose import data``

  ``glucose = data.copy()[0:2000]``

  ``show(Line(glucose, palette=Spectral8))``

  ``show(``Scatter(``glucose``        , x='mpg',

y=‘hp’))`

Secondly, can you tell us how you installed bokeh on windows.

Sincerely,

Sarah Bird

···

On 5/3/16 1:12 AM, Amin wrote:

Hi,

      I try build a Bar chart from the example on the site

.

but when I import, it occurs error.

      My bokeh version is 0.11.1, python 3.4 and system is

windows7, but it is OK if I run this code in Linux.

      it's still error after I try reinstall all package, copy

the package from Linux.

Is there anything I miss?

Thanks!

–

  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 bokeh+unsubscribe@continuum.io.

  To post to this group, send email to bokeh@continuum.io.

  To view this discussion on the web visit [](https://groups.google.com/a/continuum.io/d/msgid/bokeh/01ecee5b-d11d-4e10-882f-7e62bba9013b%40continuum.io?utm_medium=email&utm_source=footer)      .

For more options, visit .

–
Sarah Bird
Developer, Bokeh

    [
      ![Continuum Analytics](http://docs.continuum.io/_static/img/ContinuumWordmark.png)
    ](http://continuum.io)

"http://bokeh.pydata.org/en/latest/docs/user_guide/charts.html"https://groups.google.com/a/continuum.io/d/msgid/bokeh/01ecee5b-d11d-4e10-882f-7e62bba9013b%40continuum.io
https://groups.google.com/a/continuum.io/d/optout

⌁   Link to post
Bryan
Bryan

I've seen this a couple of times. Every instance was caused by a by an installation problem, typically old .pyc files that did not get removed for some reason, presumably during an update. I recommend manually deleting anything bokeh related in your site-packages and installing fresh.

Thanks,

Bryan

···

On May 3, 2016, at 4:00 AM, Sarah Bird - Continuum <sbird@continuum.io> wrote:

That's very odd Amin.

I don't have a windows machine to test on I'm afraid.
Can you tell us if you can successfully use Line and Scatter on windows (this might help figure out what's going on).

Some code to try:

from bokeh.charts import Line, Scatter
from bokeh.sampledata.glucose import data
glucose = data.copy()[0:2000]
show(Line(glucose, palette=Spectral8))
show(Scatter(glucose, x='mpg', y='hp'))
Secondly, can you tell us how you installed bokeh on windows.
Sincerely,

Sarah Bird

On 5/3/16 1:12 AM, Amin wrote:

Hi,

I try build a Bar chart from the example on the site "http://bokeh.pydata.org/en/latest/docs/user_guide/charts.html&quot;\.

but when I import, it occurs error.

My bokeh version is 0.11.1, python 3.4 and system is windows7, but it is OK if I run this code in Linux.
it's still error after I try reinstall all package, copy the package from Linux.

Is there anything I miss?

Thanks!
--
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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/01ecee5b-d11d-4e10-882f-7e62bba9013b%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
Sarah Bird
Developer, Bokeh

--
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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/630f836c-03bb-3a78-b859-de36fec0e01d%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post
Amin
Amin

Hi Sarah Bird

I try these code, but it is error, too.

But I can successfully use Line by the example.

Do I have to add some code?

I installed bokeh by “pip install bokeh” first time, and also in Linux.

Thanks.

Amin

Sarah Bird於 2016年5月3日星期二 UTC+8下午5時00分14秒寫道:

···

That’s very odd Amin.

I don’t have a windows machine to test on I’m afraid.

  Can you tell us if you can successfully use Line and Scatter on

windows (this might help figure out what’s going on).

Some code to try:

`from bokeh.charts import Line, Scatter``

  ``from bokeh.sampledata.glucose import data``

  ``glucose = data.copy()[0:2000]``

  ``show(Line(glucose, palette=Spectral8))``

  ``show(``Scatter(``glucose``        , x='mpg',

y=‘hp’))`

Secondly, can you tell us how you installed bokeh on windows.

Sincerely,

Sarah Bird

On 5/3/16 1:12 AM, Amin wrote:

Hi,

      I try build a Bar chart from the example on the site

“http://bokeh.pydata.org/en/latest/docs/user_guide/charts.html”.

but when I import, it occurs error.

      My bokeh version is 0.11.1, python 3.4 and system is

windows7, but it is OK if I run this code in Linux.

      it's still error after I try reinstall all package, copy

the package from Linux.

Is there anything I miss?

Thanks!

–

  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 bokeh+un...@continuum.io.

  To post to this group, send email to bo...@continuum.io.

  To view this discussion on the web visit [](https://groups.google.com/a/continuum.io/d/msgid/bokeh/01ecee5b-d11d-4e10-882f-7e62bba9013b%40continuum.io?utm_medium=email&utm_source=footer)[https://groups.google.com/a/continuum.io/d/msgid/bokeh/01ecee5b-d11d-4e10-882f-7e62bba9013b%40continuum.io](https://groups.google.com/a/continuum.io/d/msgid/bokeh/01ecee5b-d11d-4e10-882f-7e62bba9013b%40continuum.io).

  For more options, visit [https://groups.google.com/a/continuum.io/d/optout](https://groups.google.com/a/continuum.io/d/optout).

–
Sarah Bird
Developer, Bokeh

    [
      <img alt="Continuum Analytics" src="https://lh6.googleusercontent.com/proxy/VYgVjggTk1hCXSN9wFkffE3I6kxTvJ51tT4KvDXOuKbs1WyFG66k7kt2-vkDimbyxfWtP-d1paJmstMYhPPnDYSUF4rLPoYM2GM2QFM=w5000-h5000" height="30px" width="150px">
    ](http://continuum.io)
⌁   Link to post
Amin
Amin

Thank you, Bryan.

But when the code occurs error the second times, I already delete all packages, and instlall again by step on “http://bokeh.pydata.org/en/latest/docs/installation.html”

I also removed python from my system.

And now, there is a strange thing.

After I restart my pc, it’s OK !

But I did not do anything this morning,

Bryan Van de ven於 2016年5月3日星期二 UTC+8下午5時24分35秒寫道:

···

I’ve seen this a couple of times. Every instance was caused by a by an installation problem, typically old .pyc files that did not get removed for some reason, presumably during an update. I recommend manually deleting anything bokeh related in your site-packages and installing fresh.

Thanks,

Bryan

On May 3, 2016, at 4:00 AM, Sarah Bird - Continuum sb...@continuum.io wrote:

That’s very odd Amin.

I don’t have a windows machine to test on I’m afraid.

Can you tell us if you can successfully use Line and Scatter on windows (this might help figure out what’s going on).

Some code to try:

from bokeh.charts import Line, Scatter

from bokeh.sampledata.glucose import data

glucose = data.copy()[0:2000]

show(Line(glucose, palette=Spectral8))

show(Scatter(glucose, x=‘mpg’, y=‘hp’))

Secondly, can you tell us how you installed bokeh on windows.

Sincerely,

Sarah Bird

On 5/3/16 1:12 AM, Amin wrote:

Hi,

I try build a Bar chart from the example on the site “http://bokeh.pydata.org/en/latest/docs/user_guide/charts.html”.

but when I import, it occurs error.

My bokeh version is 0.11.1, python 3.4 and system is windows7, but it is OK if I run this code in Linux.

it’s still error after I try reinstall all package, copy the package from Linux.

Is there anything I miss?

Thanks!

–
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 bokeh+un...@continuum.io.

To post to this group, send email to bo...@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/01ecee5b-d11d-4e10-882f-7e62bba9013b%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

–
Sarah Bird

Developer, Bokeh

–
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 bokeh+un...@continuum.io.

To post to this group, send email to bo...@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/630f836c-03bb-3a78-b859-de36fec0e01d%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

⌁   Link to post

End of archived discussion · Replies are disabled