Bokeh Charts won't import

Some specs:
Windows 7 enterprise
Python version 2.7

Bokeh version 0.12.1

Installed via pip

Dependencies versions are >= required.

Plotting with glyphs and most other things work, however I can’t seem to even import the charts interface.

Python

import bokeh.charts

or

from bokeh.charts import <anything, such as *, Bar, etc.>

results in the following

from bokeh.charts import Bar

Traceback (most recent call last):

File “”, line 1, in

File “C:\Python27\lib\site-packages\bokeh\charts_init_.py”, line 21, in <mo

from .builders.line_builder import Line

File “C:\Python27\lib\site-packages\bokeh\charts\builders\line_builder.py”, li

ne 22, in

from …builder import XYBuilder, create_and_build

File “C:\Python27\lib\site-packages\bokeh\charts\builder.py”, line 618, in <mo

class XYBuilder(Builder):

File “C:\Python27\lib\site-packages\bokeh\charts\builder.py”, line 629, in XYB

uilder

default_attributes = {‘color’: ColorAttr()}

File “C:\Python27\lib\site-packages\bokeh\charts\attributes.py”, line 238, in

init

super(ColorAttr, self).init(**kwargs)

File “C:\Python27\lib\site-packages\bokeh\charts\attributes.py”, line 113, in

init

self.default = next(iter(copy(self.iterable)))

File “C:\Python27\lib\copy.py”, line 96, in copy

return _reconstruct(x, rv, 0)

File “C:\Python27\lib\copy.py”, line 335, in _reconstruct

y.append(item)

File “C:\Python27\lib\site-packages\bokeh\core\property_containers.py”, line 1

9, in wrapper

self._notify_owners(old)

File “C:\Python27\lib\site-packages\bokeh\core\property_containers.py”, line 4

3, in _notify_owners

for (owner, prop) in self._owners:

AttributeError: ‘PropertyValueList’ object has no attribute ‘_owners’

``

Now, this problem did not exist with Bokeh 0.10.0 (where I think I used _legacy_charts but still think that I could at least import bokeh.charts) but I get this error with 0.11.0, 0.12.0, and 0.12.1.

Sounds to me like an
install problem.

Try a fresh install in a clean env?

···

On 7/29/16 10:05 AM,
wrote:

[email protected]

Some specs:
Windows 7 enterprise
Python version 2.7

Bokeh version 0.12.1

Installed via pip

Dependencies versions are >= required.

        Plotting with glyphs and most other things work, however

I can’t seem to even import the charts interface.

Python

import bokeh.charts

or

        >> from bokeh.charts import <anything, such as

*, Bar, etc.>

results in the following

                >>> from

bokeh.charts import Bar

                Traceback (most recent

call last):

                File "<stdin>",

line 1, in

                File

“C:\Python27\lib\site-packages\bokeh\charts_init_.py”,
line 21, in <mo

dule>

                from

.builders.line_builder import Line

                File

“C:\Python27\lib\site-packages\bokeh\charts\builders\line_builder.py”,
li

ne 22, in

                from ..builder import

XYBuilder, create_and_build

                File

“C:\Python27\lib\site-packages\bokeh\charts\builder.py”,
line 618, in <mo

dule>

                class

XYBuilder(Builder):

                File

“C:\Python27\lib\site-packages\bokeh\charts\builder.py”,
line 629, in XYB

uilder

                default_attributes =

{‘color’: ColorAttr()}

                File

“C:\Python27\lib\site-packages\bokeh\charts\attributes.py”,
line 238, in

init

                super(ColorAttr,

self).init(**kwargs)

                File

“C:\Python27\lib\site-packages\bokeh\charts\attributes.py”,
line 113, in

init

                self.default =

next(iter(copy(self.iterable)))

                File

“C:\Python27\lib\copy.py”, line 96, in copy

                return _reconstruct(x,

rv, 0)

                File

“C:\Python27\lib\copy.py”, line 335, in _reconstruct

y.append(item)

                File

“C:\Python27\lib\site-packages\bokeh\core\property_containers.py”,
line 1

9, in wrapper

self._notify_owners(old)

                File

“C:\Python27\lib\site-packages\bokeh\core\property_containers.py”,
line 4

3, in _notify_owners

                for (owner, prop) in

self._owners:

                AttributeError:

‘PropertyValueList’ object has no attribute
‘_owners’

``

      Now, this problem did not exist with Bokeh 0.10.0 (where I

think I used _legacy_charts but still think that I could at
least import bokeh.charts) but I get this error with 0.11.0,
0.12.0, and 0.12.1.

  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/50c3fb39-6845-4fbd-8023-7782e2d02b61%40continuum.io](https://groups.google.com/a/continuum.io/d/msgid/bokeh/50c3fb39-6845-4fbd-8023-7782e2d02b61%40continuum.io?utm_medium=email&utm_source=footer).

  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

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

Agreed this is definitely some kind of install problem. Possibly old/errant .pyc files left behind from old versions? My experience with pip is that it does not always clean these up as expected, and if there has has been package re-organization (which there has been) then that can cause problems. Second the suggestion to clean install in a new conda environment or virtualenv, or failing that, blow away anything bokeh related in your site-packages dir.

Bryan

···

On Aug 4, 2016, at 8:07 AM, Sarah Bird - Continuum <[email protected]> wrote:

Sounds to me like an install problem.

Try a fresh install in a clean env?

On 7/29/16 10:05 AM, [email protected] wrote:

Some specs:
Windows 7 enterprise
Python version 2.7
Bokeh version 0.12.1
Installed via pip
Dependencies versions are >= required.

Plotting with glyphs and most other things work, however I can't seem to even import the charts interface.

Python
>> import bokeh.charts

or

>> from bokeh.charts import <anything, such as *, Bar, etc.>

results in the following
>>> from bokeh.charts import Bar
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\bokeh\charts\__init__.py", line 21, in <mo
>
    from .builders.line_builder import Line
  File "C:\Python27\lib\site-packages\bokeh\charts\builders\line_builder.py", li
ne 22, in <module>
    from ..builder import XYBuilder, create_and_build
  File "C:\Python27\lib\site-packages\bokeh\charts\builder.py", line 618, in <mo
>
    class XYBuilder(Builder):
  File "C:\Python27\lib\site-packages\bokeh\charts\builder.py", line 629, in XYB
uilder
    default_attributes = {'color': ColorAttr()}
  File "C:\Python27\lib\site-packages\bokeh\charts\attributes.py", line 238, in
__init__
    super(ColorAttr, self).__init__(**kwargs)
  File "C:\Python27\lib\site-packages\bokeh\charts\attributes.py", line 113, in
__init__
    self.default = next(iter(copy(self.iterable)))
  File "C:\Python27\lib\copy.py", line 96, in copy
    return _reconstruct(x, rv, 0)
  File "C:\Python27\lib\copy.py", line 335, in _reconstruct
    y.append(item)
  File "C:\Python27\lib\site-packages\bokeh\core\property_containers.py", line 1
9, in wrapper
    self._notify_owners(old)
  File "C:\Python27\lib\site-packages\bokeh\core\property_containers.py", line 4
3, in _notify_owners
    for (owner, prop) in self._owners:
AttributeError: 'PropertyValueList' object has no attribute '_owners'

Now, this problem did not exist with Bokeh 0.10.0 (where I think I used _legacy_charts but still think that I could at least import bokeh.charts) but I get this error with 0.11.0, 0.12.0, and 0.12.1.

--
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/50c3fb39-6845-4fbd-8023-7782e2d02b61%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 [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/277d8854-bbc3-8cca-fc2b-8b317f58abdc%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.