No module named singledispatch

I installed bokeh using ‘pip install bokeh’

Here is what I saw in the terminal -

import bokeh
bokeh.version
‘0.12.0’

from bokeh.plotting import figure, output_file, show
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python2.7/dist-packages/bokeh/plotting/init.py”, line 7, in
from …io import curdoc; curdoc
File “/usr/local/lib/python2.7/dist-packages/bokeh/io.py”, line 29, in
from .core.state import State
File “/usr/local/lib/python2.7/dist-packages/bokeh/core/state.py”, line 46, in
from …client import DEFAULT_SESSION_ID
File “/usr/local/lib/python2.7/dist-packages/bokeh/client/init.py”, line 6, in
from .session import ClientSession, pull_session, push_session, show_session, DEFAULT_SESSION_ID
File “/usr/local/lib/python2.7/dist-packages/bokeh/client/session.py”, line 10, in
from ._connection import ClientConnection
File “/usr/local/lib/python2.7/dist-packages/bokeh/client/_connection.py”, line 11, in
from tornado import gen, locks
File “/usr/local/lib/python2.7/dist-packages/tornado/gen.py”, line 98, in
from singledispatch import singledispatch # backport
ImportError: No module named singledispatch

I have installed singledispatch. Reinstalled using ‘sudo pip install singledispatch --upgrade’
But no solution.

Please help.

singledispatch is not a direct requirement of Bokeh, but it appears to be of some version of Tornado. What version of Tornado do you have installed? I don't have singledispatch installed and this is not an issue:

  In [1]: import singledispatch

···

---------------------------------------------------------------------------
  ImportError Traceback (most recent call last)
  <ipython-input-1-6771084641b1> in <module>()
  ----> 1 import singledispatch

  ImportError: No module named 'singledispatch'

  In [2]: from bokeh.plotting import figure, output_file, show

  In [3]:

Perhaps there is a new version of Tornado that is "too new", or else maybe you have an old version of Tornado somehow.

Thanks,

Bryan

On Jul 25, 2016, at 5:55 AM, [email protected] wrote:

I installed bokeh using 'pip install bokeh'

Here is what I saw in the terminal -

>>> import bokeh
>>> bokeh.__version__
'0.12.0'
>>> from bokeh.plotting import figure, output_file, show
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/bokeh/plotting/__init__.py", line 7, in <module>
    from ..io import curdoc; curdoc
  File "/usr/local/lib/python2.7/dist-packages/bokeh/io.py", line 29, in <module>
    from .core.state import State
  File "/usr/local/lib/python2.7/dist-packages/bokeh/core/state.py", line 46, in <module>
    from ..client import DEFAULT_SESSION_ID
  File "/usr/local/lib/python2.7/dist-packages/bokeh/client/__init__.py", line 6, in <module>
    from .session import ClientSession, pull_session, push_session, show_session, DEFAULT_SESSION_ID
  File "/usr/local/lib/python2.7/dist-packages/bokeh/client/session.py", line 10, in <module>
    from ._connection import ClientConnection
  File "/usr/local/lib/python2.7/dist-packages/bokeh/client/_connection.py", line 11, in <module>
    from tornado import gen, locks
  File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 98, in <module>
    from singledispatch import singledispatch # backport
ImportError: No module named singledispatch

I have installed singledispatch. Reinstalled using 'sudo pip install singledispatch --upgrade'
But no solution.

Please help.

--
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/6bcf1d64-7b5b-4e73-88c1-dc31d264772b%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hello.
Thanks for the help. I already solved it by downloading the package (python wheel file) and installing using pip. I dont know why --upgrade didnt work but installing it manually solved it.

Thanks a lot :slight_smile:

···

On Monday, July 25, 2016 at 6:30:29 PM UTC+5:30, Bryan Van de ven wrote:

singledispatch is not a direct requirement of Bokeh, but it appears to be of some version of Tornado. What version of Tornado do you have installed? I don’t have singledispatch installed and this is not an issue:

    In [1]: import singledispatch

    ---------------------------------------------------------------------------

    ImportError                               Traceback (most recent call last)

    <ipython-input-1-6771084641b1> in <module>()

    ----> 1 import singledispatch



    ImportError: No module named 'singledispatch'



    In [2]: from bokeh.plotting import figure, output_file, show



    In [3]:

Perhaps there is a new version of Tornado that is “too new”, or else maybe you have an old version of Tornado somehow.

Thanks,

Bryan

On Jul 25, 2016, at 5:55 AM, [email protected] wrote:

I installed bokeh using ‘pip install bokeh’

Here is what I saw in the terminal -

import bokeh

bokeh.version

‘0.12.0’

from bokeh.plotting import figure, output_file, show

Traceback (most recent call last):

File “”, line 1, in

File “/usr/local/lib/python2.7/dist-packages/bokeh/plotting/init.py”, line 7, in

from ..io import curdoc; curdoc

File “/usr/local/lib/python2.7/dist-packages/bokeh/io.py”, line 29, in

from .core.state import State

File “/usr/local/lib/python2.7/dist-packages/bokeh/core/state.py”, line 46, in

from ..client import DEFAULT_SESSION_ID

File “/usr/local/lib/python2.7/dist-packages/bokeh/client/init.py”, line 6, in

from .session import ClientSession, pull_session, push_session, show_session, DEFAULT_SESSION_ID

File “/usr/local/lib/python2.7/dist-packages/bokeh/client/session.py”, line 10, in

from ._connection import ClientConnection

File “/usr/local/lib/python2.7/dist-packages/bokeh/client/_connection.py”, line 11, in

from tornado import gen, locks

File “/usr/local/lib/python2.7/dist-packages/tornado/gen.py”, line 98, in

from singledispatch import singledispatch  # backport

ImportError: No module named singledispatch

I have installed singledispatch. Reinstalled using ‘sudo pip install singledispatch --upgrade’

But no solution.

Please help.


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/6bcf1d64-7b5b-4e73-88c1-dc31d264772b%40continuum.io.

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