Failed to install bokeh using pip

Hi everyone, I installed bokeh using pip but I am not able to run the
server. Instead it shows the following error:
ImportError: No module named urllib.request

I am using Ubuntu13.04, python version is 2.7.4. Can anyone help me
find out the error?
Thanks in advance!

George Chen

Hi Chen,

I am not able to reproduce this on Ubuntu 13.10, after just pip-installing all the components and bokeh on a clean VM. What version of Bokeh? and what code are you trying to run?

Thanks,

Bryan

···

On Jan 13, 2014, at 2:08 AM, Chen Yu <[email protected]> wrote:

Hi everyone, I installed bokeh using pip but I am not able to run the
server. Instead it shows the following error:
ImportError: No module named urllib.request

I am using Ubuntu13.04, python version is 2.7.4. Can anyone help me
find out the error?
Thanks in advance!

George Chen

--
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/CAL918kCkv3PjUm5T2ZEs%2BuRXbDN_-9Ww-tcCghy86AheU-berg%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/groups/opt_out.

all urllib.request is python3 call…so think that way.

maybe it supports only python3… no idea. but could be a possibility…but interesting fact my bokeh library is in python 2.7.

error in ipython output is as follows i guess this is the same error

ImportError                               Traceback (most recent call last)
<ipython-input-1-4b0a250cedd8> in <module>()
----> 1 from bokeh.plotting import *
      2 from numpy import *
      3 x = linspace(-2*pi, 2*pi, 100)
      4 y = cos(x)
      5 output_file("cos.html")

/usr/local/lib/python2.7/dist-packages/bokeh/__init__.py in <module>()
      4 del get_versions
      5
----> 6 from . import sampledata
      7 from .serverconfig import Server, Cloud
      8

/usr/local/lib/python2.7/dist-packages/bokeh/sampledata/__init__.py in <module>()
      3 from os import mkdir
      4 from os.path import exists, expanduser, isdir, join
----> 5 from six.moves.urllib.request import urlopen
      6
      7 def _bokeh_dir(create=False):

ImportError: No module named urllib.request

Do you have six installed? Are you pip-trying current master or are you installing from PyPI?

···

On Wed, Feb 12, 2014 at 4:43 AM, [email protected] wrote:

all urllib.request is python3 call…so think that way.

maybe it supports only python3… no idea. but could be a possibility…but interesting fact my bokeh library is in python 2.7.

error in ipython output is as follows i guess this is the same error

ImportError                               Traceback (most recent call last)
<ipython-input-1-4b0a250cedd8> in <module>()
----> 1 from bokeh.plotting import *
      2 from numpy import *
      3 x = linspace(-2*pi, 2*pi, 100)
      4 y = cos(x)
      5 output_file("cos.html")

/usr/local/lib/python2.7/dist-packages/bokeh/__init__.py in <module>()
      4 del get_versions
      5
----> 6 from . import sampledata
      7 from .serverconfig import Server, Cloud
      8

/usr/local/lib/python2.7/dist-packages/bokeh/sampledata/__init__.py in <module>()
      3 from os import mkdir
      4 from os.path import exists, expanduser, isdir, join
----> 5 from six.moves.urllib.request import urlopen
      6
      7 def _bokeh_dir(create=False):

ImportError: No module named urllib.request

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/61c48e6e-5665-473e-941f-92959f21216e%40continuum.io.

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