problem installing Bokeh via pip

Hi,
I use the most recent version of the Enthought python distribution (Python 2.7) and OS X 10.8.4. I tried to install Bokeh using pip, having (I hope) installed all the necessary dependencies, but there was a problem. The install command and the response are shown below.

the install command:

Jeremy-H:~ jeremyharbinson1$ pip install bokeh

the pip log file:

Downloading/unpacking bokeh

Getting page http://pypi.python.org/simple/bokeh

URLs to search for versions for bokeh:

Getting page http://pypi.python.org/simple/bokeh/

Analyzing links from page Links for bokeh

Found link https://pypi.python.org/packages/source/b/bokeh/bokeh-0.2.tgz#md5=fa17b2bdae75515de4ca7e01107e09f4 (from Links for bokeh), version: 0.2

Found link https://pypi.python.org/packages/source/b/bokeh/bokeh-0.3.tar.gz#md5=81fb90108993ad17c00805be9803478c (from Links for bokeh), version: 0.3

Found link https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.1.tar.gz#md5=c7b912d281c8e9b5a28f1edac219ed0c (from Links for bokeh), version: 0.4.1

Found link https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.tar.gz#md5=9b4c82c77e1463b044556f6ef6c7ddae (from Links for bokeh), version: 0.4

Using version 0.4.1 (newest of versions: 0.4.1, 0.4, 0.3, 0.2)

Downloading from URL https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.1.tar.gz#md5=c7b912d281c8e9b5a28f1edac219ed0c (from Links for bokeh)

Exception:

Traceback (most recent call last):

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/basecommand.py”, line 126, in main

self.run(options, args)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/commands/install.py”, line 223, in run

requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py”, line 961, in prepare_files

self.unpack_url(url, location, self.is_download)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py”, line 1079, in unpack_url

return unpack_http_url(link, location, self.download_cache, only_download)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/download.py”, line 455, in unpack_http_url

unpack_file(temp_location, location, content_type, link)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py”, line 475, in unpack_file

untar_file(filename, location)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py”, line 442, in untar_file

shutil.copyfileobj(fp, destfp)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/shutil.py”, line 49, in copyfileobj

buf = fsrc.read(length)

AttributeError: ‘NoneType’ object has no attribute ‘read’

Does anyone have a suggestion to fix this? And I hope this is not due to a mistake on my part.

all the best,

Jeremy Harbinson

Jeremy,

I"m not sure what could be going on, I just tried installing into a fresh conda environment on OSX and had no issues:

(test)bryan@laptop ~/tmp $ pip install bokeh --no-deps
Downloading/unpacking bokeh
  Downloading bokeh-0.4.1.tar.gz (27.8MB): 27.8MB downloaded
  Running setup.py (path:/private/var/folders/t1/48dhz2zd3jgdr0d0zss8kq4h0000gn/T/pip_build_bryan/bokeh/setup.py) egg_info for package bokeh
    
    no previously-included directories found matching 'bokehjs/node_modules'
    no previously-included directories found matching 'bokehjs/build'
    no previously-included directories found matching 'examples/plotting/notebook/.ipynb_checkpoints'
    no previously-included directories found matching 'examples/glyphs/.ipynb_checkpoints'
Installing collected packages: bokeh
  Running setup.py install for bokeh
    installing bokeh, bokeh.pth was not found, so we did not clean it
    no .git in /private/var/folders/t1/48dhz2zd3jgdr0d0zss8kq4h0000gn/T/pip_build_bryan/bokeh
    guessing rootdir is '/private/var/folders/t1/48dhz2zd3jgdr0d0zss8kq4h0000gn/T/pip_build_bryan/bokeh', but 'bokeh' doesn't start with prefix 'Bokeh-'
    got version from default None
    changing mode of build/scripts-2.7/bokeh-server from 644 to 755
    UPDATING build/lib/bokeh/_version.py
    
    no previously-included directories found matching 'bokehjs/node_modules'
    no previously-included directories found matching 'bokehjs/build'
    no previously-included directories found matching 'examples/plotting/notebook/.ipynb_checkpoints'
    no previously-included directories found matching 'examples/glyphs/.ipynb_checkpoints'
    changing mode of /Users/bryan/anaconda/envs/test/bin/bokeh-server to 755
Successfully installed bokeh

Can you try installing "pip install bokeh --nodeps" just to compare as a baseline?

Unfortunately I don't have a Canopy environment to test with. I've cc'ed Ilan in case he has any thoughts about what might be going on.

Bryan

···

On Mar 8, 2014, at 12:24 PM, Jeremy Harbinson <[email protected]> wrote:

Hi,
I use the most recent version of the Enthought python distribution (Python 2.7) and OS X 10.8.4. I tried to install Bokeh using pip, having (I hope) installed all the necessary dependencies, but there was a problem. The install command and the response are shown below.

the install command:
Jeremy-H:~ jeremyharbinson1$ pip install bokeh

the pip log file:
Downloading/unpacking bokeh
  Getting page http://pypi.python.org/simple/bokeh
  URLs to search for versions for bokeh:
  * http://pypi.python.org/simple/bokeh/
  Getting page http://pypi.python.org/simple/bokeh/
  Analyzing links from page Links for bokeh
    Found link https://pypi.python.org/packages/source/b/bokeh/bokeh-0.2.tgz#md5=fa17b2bdae75515de4ca7e01107e09f4 (from https://pypi.python.org/simple/bokeh/\), version: 0.2
    Found link https://pypi.python.org/packages/source/b/bokeh/bokeh-0.3.tar.gz#md5=81fb90108993ad17c00805be9803478c (from https://pypi.python.org/simple/bokeh/\), version: 0.3
    Found link https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.1.tar.gz#md5=c7b912d281c8e9b5a28f1edac219ed0c (from https://pypi.python.org/simple/bokeh/\), version: 0.4.1
    Found link https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.tar.gz#md5=9b4c82c77e1463b044556f6ef6c7ddae (from https://pypi.python.org/simple/bokeh/\), version: 0.4
  Using version 0.4.1 (newest of versions: 0.4.1, 0.4, 0.3, 0.2)
  Downloading from URL https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.1.tar.gz#md5=c7b912d281c8e9b5a28f1edac219ed0c (from https://pypi.python.org/simple/bokeh/\)
Exception:
Traceback (most recent call last):
  File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/basecommand.py", line 126, in main
    self.run(options, args)
  File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/commands/install.py", line 223, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py", line 961, in prepare_files
    self.unpack_url(url, location, self.is_download)
  File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py", line 1079, in unpack_url
    return unpack_http_url(link, location, self.download_cache, only_download)
  File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/download.py", line 455, in unpack_http_url
    unpack_file(temp_location, location, content_type, link)
  File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py", line 475, in unpack_file
    untar_file(filename, location)
  File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py", line 442, in untar_file
    shutil.copyfileobj(fp, destfp)
  File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/shutil.py", line 49, in copyfileobj
    buf = fsrc.read(length)
AttributeError: 'NoneType' object has no attribute 'read'

Does anyone have a suggestion to fix this? And I hope this is not due to a mistake on my part.

all the best,
Jeremy Harbinson

--
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/dd93d489-0528-4744-9369-c6f2ac410a14%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Hi Bryan,

I tried the “pip install bokeh --nodeps” option and got the following response :

Jeremy-H:~ jeremyharbinson1$ pip install bokeh --nodeps

Usage: /Users/jeremyharbinson1/Library/Enthought/Canopy_64bit/User/bin/pip install [OPTIONS] PACKAGE_NAMES…

/Users/jeremyharbinson1/Library/Enthought/Canopy_64bit/User/bin/pip install: error: no such option: --nodeps

I guess this is not what was expected and something weird is going on.

The pip options available in the Canopy pip (I’m assuming that the ‘–nodeps’ is a pip option) are:

Jeremy-H:~ jeremyharbinson1$ pip help

Usage: pip COMMAND [OPTIONS]

Options:

–version show program’s version number and exit

-h, --help Show help

-E DIR, --environment=DIR

virtualenv environment to run pip in (either give the

interpreter or the environment base directory)

-s, --enable-site-packages

Include site-packages in virtualenv if one is to be

created. Ignored if --environment is not used or the

virtualenv already exists.

-v, --verbose Give more output

-q, --quiet Give less output

–log=FILENAME Log file where a complete (maximum verbosity) record

will be kept

–proxy=PROXY Specify a proxy in the form

user:[email protected]:port. Note that the

user:password@ is optional and required only if you

are behind an authenticated proxy. If you provide

[email protected]:port then you will be prompted for a

password.

–timeout=SECONDS, --default-timeout=SECONDS

Set the socket timeout (default 15 seconds)

Commands available:

bundle: Create pybundles (archives containing multiple packages)

freeze: Output all currently installed packages (exact versions) to stdout

help: Show available commands

install: Install packages

search: Search PyPI

uninstall: Uninstall packages

unzip: Unzip individual packages

zip: Zip individual packages

Jeremy-H:~ jeremyharbinson1$

all the best,

Jeremy

···

On Saturday, March 8, 2014 11:51:19 PM UTC+1, Bryan Van de ven wrote:

Jeremy,

I"m not sure what could be going on, I just tried installing into a fresh conda environment on OSX and had no issues:

(test)bryan@laptop ~/tmp $ pip install bokeh --no-deps

Downloading/unpacking bokeh

Downloading bokeh-0.4.1.tar.gz (27.8MB): 27.8MB downloaded

Running setup.py (path:/private/var/folders/t1/48dhz2zd3jgdr0d0zss8kq4h0000gn/T/pip_build_bryan/bokeh/setup.py) egg_info for package bokeh

no previously-included directories found matching 'bokehjs/node_modules'

no previously-included directories found matching 'bokehjs/build'

no previously-included directories found matching 'examples/plotting/notebook/.ipynb_checkpoints'

no previously-included directories found matching 'examples/glyphs/.ipynb_checkpoints'

Installing collected packages: bokeh

Running setup.py install for bokeh

installing bokeh,  bokeh.pth was not found, so we did not clean it

no .git in /private/var/folders/t1/48dhz2zd3jgdr0d0zss8kq4h0000gn/T/pip_build_bryan/bokeh

guessing rootdir is '/private/var/folders/t1/48dhz2zd3jgdr0d0zss8kq4h0000gn/T/pip_build_bryan/bokeh', but 'bokeh' doesn't start with prefix 'Bokeh-'

got version from default None

changing mode of build/scripts-2.7/bokeh-server from 644 to 755

UPDATING build/lib/bokeh/_version.py


no previously-included directories found matching 'bokehjs/node_modules'

no previously-included directories found matching 'bokehjs/build'

no previously-included directories found matching 'examples/plotting/notebook/.ipynb_checkpoints'

no previously-included directories found matching 'examples/glyphs/.ipynb_checkpoints'

changing mode of /Users/bryan/anaconda/envs/test/bin/bokeh-server to 755

Successfully installed bokeh

Can you try installing “pip install bokeh --nodeps” just to compare as a baseline?

Unfortunately I don’t have a Canopy environment to test with. I’ve cc’ed Ilan in case he has any thoughts about what might be going on.

Bryan

On Mar 8, 2014, at 12:24 PM, Jeremy Harbinson [email protected] wrote:

Hi,

I use the most recent version of the Enthought python distribution (Python 2.7) and OS X 10.8.4. I tried to install Bokeh using pip, having (I hope) installed all the necessary dependencies, but there was a problem. The install command and the response are shown below.

the install command:

Jeremy-H:~ jeremyharbinson1$ pip install bokeh

the pip log file:

Downloading/unpacking bokeh

Getting page http://pypi.python.org/simple/bokeh

URLs to search for versions for bokeh:

Getting page http://pypi.python.org/simple/bokeh/

Analyzing links from page https://pypi.python.org/simple/bokeh/

Found link [https://pypi.python.org/packages/source/b/bokeh/bokeh-0.2.tgz#md5=fa17b2bdae75515de4ca7e01107e09f4](https://pypi.python.org/packages/source/b/bokeh/bokeh-0.2.tgz#md5=fa17b2bdae75515de4ca7e01107e09f4) (from [https://pypi.python.org/simple/bokeh/](https://pypi.python.org/simple/bokeh/)), version: 0.2
Found link [https://pypi.python.org/packages/source/b/bokeh/bokeh-0.3.tar.gz#md5=81fb90108993ad17c00805be9803478c](https://pypi.python.org/packages/source/b/bokeh/bokeh-0.3.tar.gz#md5=81fb90108993ad17c00805be9803478c) (from [https://pypi.python.org/simple/bokeh/](https://pypi.python.org/simple/bokeh/)), version: 0.3
Found link [https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.1.tar.gz#md5=c7b912d281c8e9b5a28f1edac219ed0c](https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.1.tar.gz#md5=c7b912d281c8e9b5a28f1edac219ed0c) (from [https://pypi.python.org/simple/bokeh/](https://pypi.python.org/simple/bokeh/)), version: 0.4.1
Found link [https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.tar.gz#md5=9b4c82c77e1463b044556f6ef6c7ddae](https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.tar.gz#md5=9b4c82c77e1463b044556f6ef6c7ddae) (from [https://pypi.python.org/simple/bokeh/](https://pypi.python.org/simple/bokeh/)), version: 0.4

Using version 0.4.1 (newest of versions: 0.4.1, 0.4, 0.3, 0.2)

Downloading from URL https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.1.tar.gz#md5=c7b912d281c8e9b5a28f1edac219ed0c (from https://pypi.python.org/simple/bokeh/)

Exception:

Traceback (most recent call last):

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/basecommand.py”, line 126, in main

self.run(options, args)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/commands/install.py”, line 223, in run

requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py”, line 961, in prepare_files

self.unpack_url(url, location, self.is_download)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py”, line 1079, in unpack_url

return unpack_http_url(link, location, self.download_cache, only_download)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/download.py”, line 455, in unpack_http_url

unpack_file(temp_location, location, content_type, link)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py”, line 475, in unpack_file

untar_file(filename, location)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py”, line 442, in untar_file

shutil.copyfileobj(fp, destfp)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/shutil.py”, line 49, in copyfileobj

buf = fsrc.read(length)

AttributeError: ‘NoneType’ object has no attribute ‘read’

Does anyone have a suggestion to fix this? And I hope this is not due to a mistake on my part.

all the best,

Jeremy Harbinson


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/dd93d489-0528-4744-9369-c6f2ac410a14%40continuum.io.

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

Jeremy,

sorry, I made a typo, it should be "--no-deps" (with an extra dash between no and deps) at least for standard pip.

Bryan

···

On Mar 9, 2014, at 10:19 AM, Jeremy Harbinson <[email protected]> wrote:

On Saturday, March 8, 2014 11:51:19 PM UTC+1, Bryan Van de ven wrote:
Jeremy,

I"m not sure what could be going on, I just tried installing into a fresh conda environment on OSX and had no issues:

(test)bryan@laptop ~/tmp $ pip install bokeh --no-deps
Downloading/unpacking bokeh
  Downloading bokeh-0.4.1.tar.gz (27.8MB): 27.8MB downloaded
  Running setup.py (path:/private/var/folders/t1/48dhz2zd3jgdr0d0zss8kq4h0000gn/T/pip_build_bryan/bokeh/setup.py) egg_info for package bokeh
    
    no previously-included directories found matching 'bokehjs/node_modules'
    no previously-included directories found matching 'bokehjs/build'
    no previously-included directories found matching 'examples/plotting/notebook/.ipynb_checkpoints'
    no previously-included directories found matching 'examples/glyphs/.ipynb_checkpoints'
Installing collected packages: bokeh
  Running setup.py install for bokeh
    installing bokeh, bokeh.pth was not found, so we did not clean it
    no .git in /private/var/folders/t1/48dhz2zd3jgdr0d0zss8kq4h0000gn/T/pip_build_bryan/bokeh
    guessing rootdir is '/private/var/folders/t1/48dhz2zd3jgdr0d0zss8kq4h0000gn/T/pip_build_bryan/bokeh', but 'bokeh' doesn't start with prefix 'Bokeh-'
    got version from default None
    changing mode of build/scripts-2.7/bokeh-server from 644 to 755
    UPDATING build/lib/bokeh/_version.py
    
    no previously-included directories found matching 'bokehjs/node_modules'
    no previously-included directories found matching 'bokehjs/build'
    no previously-included directories found matching 'examples/plotting/notebook/.ipynb_checkpoints'
    no previously-included directories found matching 'examples/glyphs/.ipynb_checkpoints'
    changing mode of /Users/bryan/anaconda/envs/test/bin/bokeh-server to 755
Successfully installed bokeh

Can you try installing "pip install bokeh --nodeps" just to compare as a baseline?

Unfortunately I don't have a Canopy environment to test with. I've cc'ed Ilan in case he has any thoughts about what might be going on.

Bryan

On Mar 8, 2014, at 12:24 PM, Jeremy Harbinson <[email protected]> wrote:

> Hi,
> I use the most recent version of the Enthought python distribution (Python 2.7) and OS X 10.8.4. I tried to install Bokeh using pip, having (I hope) installed all the necessary dependencies, but there was a problem. The install command and the response are shown below.
>
> the install command:
> Jeremy-H:~ jeremyharbinson1$ pip install bokeh
>
> the pip log file:
> Downloading/unpacking bokeh
> Getting page http://pypi.python.org/simple/bokeh
> URLs to search for versions for bokeh:
> * http://pypi.python.org/simple/bokeh/
> Getting page http://pypi.python.org/simple/bokeh/
> Analyzing links from page Links for bokeh
> Found link https://pypi.python.org/packages/source/b/bokeh/bokeh-0.2.tgz#md5=fa17b2bdae75515de4ca7e01107e09f4 (from https://pypi.python.org/simple/bokeh/\), version: 0.2
> Found link https://pypi.python.org/packages/source/b/bokeh/bokeh-0.3.tar.gz#md5=81fb90108993ad17c00805be9803478c (from https://pypi.python.org/simple/bokeh/\), version: 0.3
> Found link https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.1.tar.gz#md5=c7b912d281c8e9b5a28f1edac219ed0c (from https://pypi.python.org/simple/bokeh/\), version: 0.4.1
> Found link https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.tar.gz#md5=9b4c82c77e1463b044556f6ef6c7ddae (from https://pypi.python.org/simple/bokeh/\), version: 0.4
> Using version 0.4.1 (newest of versions: 0.4.1, 0.4, 0.3, 0.2)
> Downloading from URL https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.1.tar.gz#md5=c7b912d281c8e9b5a28f1edac219ed0c (from https://pypi.python.org/simple/bokeh/\)
> Exception:
> Traceback (most recent call last):
> File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/basecommand.py", line 126, in main
> self.run(options, args)
> File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/commands/install.py", line 223, in run
> requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
> File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py", line 961, in prepare_files
> self.unpack_url(url, location, self.is_download)
> File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py", line 1079, in unpack_url
> return unpack_http_url(link, location, self.download_cache, only_download)
> File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/download.py", line 455, in unpack_http_url
> unpack_file(temp_location, location, content_type, link)
> File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py", line 475, in unpack_file
> untar_file(filename, location)
> File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py", line 442, in untar_file
> shutil.copyfileobj(fp, destfp)
> File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/shutil.py", line 49, in copyfileobj
> buf = fsrc.read(length)
> AttributeError: 'NoneType' object has no attribute 'read'
>
>
> Does anyone have a suggestion to fix this? And I hope this is not due to a mistake on my part.
>
> all the best,
> Jeremy Harbinson
>
>
> --
> 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/dd93d489-0528-4744-9369-c6f2ac410a14%40continuum.io\.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Hi Bryan,
I tried the "pip install bokeh --nodeps" option and got the following response :

Jeremy-H:~ jeremyharbinson1$ pip install bokeh --nodeps
Usage: /Users/jeremyharbinson1/Library/Enthought/Canopy_64bit/User/bin/pip install [OPTIONS] PACKAGE_NAMES...

/Users/jeremyharbinson1/Library/Enthought/Canopy_64bit/User/bin/pip install: error: no such option: --nodeps

I guess this is not what was expected and something weird is going on.

The pip options available in the Canopy pip (I'm assuming that the '--nodeps' is a pip option) are:

Jeremy-H:~ jeremyharbinson1$ pip help
Usage: pip COMMAND [OPTIONS]

Options:
  --version show program's version number and exit
  -h, --help Show help
  -E DIR, --environment=DIR
                        virtualenv environment to run pip in (either give the
                        interpreter or the environment base directory)
  -s, --enable-site-packages
                        Include site-packages in virtualenv if one is to be
                        created. Ignored if --environment is not used or the
                        virtualenv already exists.
  -v, --verbose Give more output
  -q, --quiet Give less output
  --log=FILENAME Log file where a complete (maximum verbosity) record
                        will be kept
  --proxy=PROXY Specify a proxy in the form
                        user:[email protected]:port. Note that the
                        user:password@ is optional and required only if you
                        are behind an authenticated proxy. If you provide
                        [email protected]:port then you will be prompted for a
                        password.
  --timeout=SECONDS, --default-timeout=SECONDS
                        Set the socket timeout (default 15 seconds)

Commands available:
  bundle: Create pybundles (archives containing multiple packages)
  freeze: Output all currently installed packages (exact versions) to stdout
  help: Show available commands
  install: Install packages
  search: Search PyPI
  uninstall: Uninstall packages
  unzip: Unzip individual packages
  zip: Zip individual packages
Jeremy-H:~ jeremyharbinson1$

all the best,
Jeremy

--
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/72509c34-957d-4114-99c6-79d50a911dd3%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Also just to clarify, "--no-deps" is an option for the pip subcommand "pip install" but not of just "pip" itself. "pip install -h" should show all the install-specific options.

Bryan

···

On Mar 9, 2014, at 10:20 AM, Bryan Van de Ven <[email protected]> wrote:

Jeremy,

sorry, I made a typo, it should be "--no-deps" (with an extra dash between no and deps) at least for standard pip.

Bryan

On Mar 9, 2014, at 10:19 AM, Jeremy Harbinson <[email protected]> wrote:

On Saturday, March 8, 2014 11:51:19 PM UTC+1, Bryan Van de ven wrote:
Jeremy,

I"m not sure what could be going on, I just tried installing into a fresh conda environment on OSX and had no issues:

(test)bryan@laptop ~/tmp $ pip install bokeh --no-deps
Downloading/unpacking bokeh
Downloading bokeh-0.4.1.tar.gz (27.8MB): 27.8MB downloaded
Running setup.py (path:/private/var/folders/t1/48dhz2zd3jgdr0d0zss8kq4h0000gn/T/pip_build_bryan/bokeh/setup.py) egg_info for package bokeh

   no previously-included directories found matching 'bokehjs/node_modules'
   no previously-included directories found matching 'bokehjs/build'
   no previously-included directories found matching 'examples/plotting/notebook/.ipynb_checkpoints'
   no previously-included directories found matching 'examples/glyphs/.ipynb_checkpoints'
Installing collected packages: bokeh
Running setup.py install for bokeh
   installing bokeh, bokeh.pth was not found, so we did not clean it
   no .git in /private/var/folders/t1/48dhz2zd3jgdr0d0zss8kq4h0000gn/T/pip_build_bryan/bokeh
   guessing rootdir is '/private/var/folders/t1/48dhz2zd3jgdr0d0zss8kq4h0000gn/T/pip_build_bryan/bokeh', but 'bokeh' doesn't start with prefix 'Bokeh-'
   got version from default None
   changing mode of build/scripts-2.7/bokeh-server from 644 to 755
   UPDATING build/lib/bokeh/_version.py

   no previously-included directories found matching 'bokehjs/node_modules'
   no previously-included directories found matching 'bokehjs/build'
   no previously-included directories found matching 'examples/plotting/notebook/.ipynb_checkpoints'
   no previously-included directories found matching 'examples/glyphs/.ipynb_checkpoints'
   changing mode of /Users/bryan/anaconda/envs/test/bin/bokeh-server to 755
Successfully installed bokeh

Can you try installing "pip install bokeh --nodeps" just to compare as a baseline?

Unfortunately I don't have a Canopy environment to test with. I've cc'ed Ilan in case he has any thoughts about what might be going on.

Bryan

On Mar 8, 2014, at 12:24 PM, Jeremy Harbinson <[email protected]> wrote:

Hi,
I use the most recent version of the Enthought python distribution (Python 2.7) and OS X 10.8.4. I tried to install Bokeh using pip, having (I hope) installed all the necessary dependencies, but there was a problem. The install command and the response are shown below.

the install command:
Jeremy-H:~ jeremyharbinson1$ pip install bokeh

the pip log file:
Downloading/unpacking bokeh
Getting page http://pypi.python.org/simple/bokeh
URLs to search for versions for bokeh:
* http://pypi.python.org/simple/bokeh/
Getting page http://pypi.python.org/simple/bokeh/
Analyzing links from page Links for bokeh
   Found link https://pypi.python.org/packages/source/b/bokeh/bokeh-0.2.tgz#md5=fa17b2bdae75515de4ca7e01107e09f4 (from https://pypi.python.org/simple/bokeh/\), version: 0.2
   Found link https://pypi.python.org/packages/source/b/bokeh/bokeh-0.3.tar.gz#md5=81fb90108993ad17c00805be9803478c (from https://pypi.python.org/simple/bokeh/\), version: 0.3
   Found link https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.1.tar.gz#md5=c7b912d281c8e9b5a28f1edac219ed0c (from https://pypi.python.org/simple/bokeh/\), version: 0.4.1
   Found link https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.tar.gz#md5=9b4c82c77e1463b044556f6ef6c7ddae (from https://pypi.python.org/simple/bokeh/\), version: 0.4
Using version 0.4.1 (newest of versions: 0.4.1, 0.4, 0.3, 0.2)
Downloading from URL https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.1.tar.gz#md5=c7b912d281c8e9b5a28f1edac219ed0c (from https://pypi.python.org/simple/bokeh/\)
Exception:
Traceback (most recent call last):
File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/basecommand.py", line 126, in main
   self.run(options, args)
File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/commands/install.py", line 223, in run
   requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py", line 961, in prepare_files
   self.unpack_url(url, location, self.is_download)
File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py", line 1079, in unpack_url
   return unpack_http_url(link, location, self.download_cache, only_download)
File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/download.py", line 455, in unpack_http_url
   unpack_file(temp_location, location, content_type, link)
File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py", line 475, in unpack_file
   untar_file(filename, location)
File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py", line 442, in untar_file
   shutil.copyfileobj(fp, destfp)
File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/shutil.py", line 49, in copyfileobj
   buf = fsrc.read(length)
AttributeError: 'NoneType' object has no attribute 'read'

Does anyone have a suggestion to fix this? And I hope this is not due to a mistake on my part.

all the best,
Jeremy Harbinson

--
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/dd93d489-0528-4744-9369-c6f2ac410a14%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Hi Bryan,
I tried the "pip install bokeh --nodeps" option and got the following response :

Jeremy-H:~ jeremyharbinson1$ pip install bokeh --nodeps
Usage: /Users/jeremyharbinson1/Library/Enthought/Canopy_64bit/User/bin/pip install [OPTIONS] PACKAGE_NAMES...

/Users/jeremyharbinson1/Library/Enthought/Canopy_64bit/User/bin/pip install: error: no such option: --nodeps

I guess this is not what was expected and something weird is going on.

The pip options available in the Canopy pip (I'm assuming that the '--nodeps' is a pip option) are:

Jeremy-H:~ jeremyharbinson1$ pip help
Usage: pip COMMAND [OPTIONS]

Options:
--version show program's version number and exit
-h, --help Show help
-E DIR, --environment=DIR
                       virtualenv environment to run pip in (either give the
                       interpreter or the environment base directory)
-s, --enable-site-packages
                       Include site-packages in virtualenv if one is to be
                       created. Ignored if --environment is not used or the
                       virtualenv already exists.
-v, --verbose Give more output
-q, --quiet Give less output
--log=FILENAME Log file where a complete (maximum verbosity) record
                       will be kept
--proxy=PROXY Specify a proxy in the form
                       user:[email protected]:port. Note that the
                       user:password@ is optional and required only if you
                       are behind an authenticated proxy. If you provide
                       [email protected]:port then you will be prompted for a
                       password.
--timeout=SECONDS, --default-timeout=SECONDS
                       Set the socket timeout (default 15 seconds)

Commands available:
bundle: Create pybundles (archives containing multiple packages)
freeze: Output all currently installed packages (exact versions) to stdout
help: Show available commands
install: Install packages
search: Search PyPI
uninstall: Uninstall packages
unzip: Unzip individual packages
zip: Zip individual packages
Jeremy-H:~ jeremyharbinson1$

all the best,
Jeremy

--
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/72509c34-957d-4114-99c6-79d50a911dd3%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Hi Bryan,
I re-entered the ‘–no-deps’ as you suggested and got the following response (looks much the same as first time around):

Jeremy-H:~ jeremyharbinson1$ pip install bokeh --no-deps

Downloading/unpacking bokeh

Downloading bokeh-0.4.1.tar.gz (27.8Mb): 27.8Mb downloaded

Exception:

Traceback (most recent call last):

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/basecommand.py”, line 126, in main

self.run(options, args)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/commands/install.py”, line 223, in run

requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py”, line 961, in prepare_files

self.unpack_url(url, location, self.is_download)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py”, line 1079, in unpack_url

return unpack_http_url(link, location, self.download_cache, only_download)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/download.py”, line 455, in unpack_http_url

unpack_file(temp_location, location, content_type, link)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py”, line 475, in unpack_file

untar_file(filename, location)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py”, line 442, in untar_file

shutil.copyfileobj(fp, destfp)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/shutil.py”, line 49, in copyfileobj

buf = fsrc.read(length)

AttributeError: ‘NoneType’ object has no attribute ‘read’

I checked Canopy to see if there were any updates (in case there was any bug in their system) and there were none available.

Are there any other tests I can do?

all the best,

Jeremy

···

On Sunday, March 9, 2014 3:20:55 PM UTC+1, Bryan Van de ven wrote:

Jeremy,

sorry, I made a typo, it should be “–no-deps” (with an extra dash between no and deps) at least for standard pip.

Bryan

On Mar 9, 2014, at 10:19 AM, Jeremy Harbinson [email protected] wrote:

On Saturday, March 8, 2014 11:51:19 PM UTC+1, Bryan Van de ven wrote:

Jeremy,

I"m not sure what could be going on, I just tried installing into a fresh conda environment on OSX and had no issues:

(test)bryan@laptop ~/tmp $ pip install bokeh --no-deps
Downloading/unpacking bokeh
Downloading bokeh-0.4.1.tar.gz (27.8MB): 27.8MB downloaded
Running setup.py (path:/private/var/folders/t1/48dhz2zd3jgdr0d0zss8kq4h0000gn/T/pip_build_bryan/bokeh/setup.py) egg_info for package bokeh

no previously-included directories found matching 'bokehjs/node_modules'
no previously-included directories found matching 'bokehjs/build'
no previously-included directories found matching 'examples/plotting/notebook/.ipynb_checkpoints'
no previously-included directories found matching 'examples/glyphs/.ipynb_checkpoints'

Installing collected packages: bokeh
Running setup.py install for bokeh
installing bokeh, bokeh.pth was not found, so we did not clean it
no .git in /private/var/folders/t1/48dhz2zd3jgdr0d0zss8kq4h0000gn/T/pip_build_bryan/bokeh
guessing rootdir is ‘/private/var/folders/t1/48dhz2zd3jgdr0d0zss8kq4h0000gn/T/pip_build_bryan/bokeh’, but ‘bokeh’ doesn’t start with prefix ‘Bokeh-’
got version from default None
changing mode of build/scripts-2.7/bokeh-server from 644 to 755
UPDATING build/lib/bokeh/_version.py

no previously-included directories found matching 'bokehjs/node_modules'
no previously-included directories found matching 'bokehjs/build'
no previously-included directories found matching 'examples/plotting/notebook/.ipynb_checkpoints'
no previously-included directories found matching 'examples/glyphs/.ipynb_checkpoints'
changing mode of /Users/bryan/anaconda/envs/test/bin/bokeh-server to 755

Successfully installed bokeh

Can you try installing “pip install bokeh --nodeps” just to compare as a baseline?

Unfortunately I don’t have a Canopy environment to test with. I’ve cc’ed Ilan in case he has any thoughts about what might be going on.

Bryan

On Mar 8, 2014, at 12:24 PM, Jeremy Harbinson [email protected] wrote:

Hi,
I use the most recent version of the Enthought python distribution (Python 2.7) and OS X 10.8.4. I tried to install Bokeh using pip, having (I hope) installed all the necessary dependencies, but there was a problem. The install command and the response are shown below.

the install command:
Jeremy-H:~ jeremyharbinson1$ pip install bokeh

the pip log file:
Downloading/unpacking bokeh
Getting page http://pypi.python.org/simple/bokeh

URLs to search for versions for bokeh:

Getting page http://pypi.python.org/simple/bokeh/

Analyzing links from page https://pypi.python.org/simple/bokeh/

Found link [https://pypi.python.org/packages/source/b/bokeh/bokeh-0.2.tgz#md5=fa17b2bdae75515de4ca7e01107e09f4](https://pypi.python.org/packages/source/b/bokeh/bokeh-0.2.tgz#md5=fa17b2bdae75515de4ca7e01107e09f4) (from [https://pypi.python.org/simple/bokeh/](https://pypi.python.org/simple/bokeh/)), version: 0.2
Found link [https://pypi.python.org/packages/source/b/bokeh/bokeh-0.3.tar.gz#md5=81fb90108993ad17c00805be9803478c](https://pypi.python.org/packages/source/b/bokeh/bokeh-0.3.tar.gz#md5=81fb90108993ad17c00805be9803478c) (from [https://pypi.python.org/simple/bokeh/](https://pypi.python.org/simple/bokeh/)), version: 0.3
Found link [https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.1.tar.gz#md5=c7b912d281c8e9b5a28f1edac219ed0c](https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.1.tar.gz#md5=c7b912d281c8e9b5a28f1edac219ed0c) (from [https://pypi.python.org/simple/bokeh/](https://pypi.python.org/simple/bokeh/)), version: 0.4.1
Found link [https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.tar.gz#md5=9b4c82c77e1463b044556f6ef6c7ddae](https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.tar.gz#md5=9b4c82c77e1463b044556f6ef6c7ddae) (from [https://pypi.python.org/simple/bokeh/](https://pypi.python.org/simple/bokeh/)), version: 0.4

Using version 0.4.1 (newest of versions: 0.4.1, 0.4, 0.3, 0.2)
Downloading from URL https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.1.tar.gz#md5=c7b912d281c8e9b5a28f1edac219ed0c (from https://pypi.python.org/simple/bokeh/)
Exception:
Traceback (most recent call last):
File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/basecommand.py”, line 126, in main
self.run(options, args)
File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/commands/install.py”, line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py”, line 961, in prepare_files
self.unpack_url(url, location, self.is_download)
File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py”, line 1079, in unpack_url
return unpack_http_url(link, location, self.download_cache, only_download)
File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/download.py”, line 455, in unpack_http_url
unpack_file(temp_location, location, content_type, link)
File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py”, line 475, in unpack_file
untar_file(filename, location)
File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py”, line 442, in untar_file
shutil.copyfileobj(fp, destfp)
File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/shutil.py”, line 49, in copyfileobj
buf = fsrc.read(length)
AttributeError: ‘NoneType’ object has no attribute ‘read’

Does anyone have a suggestion to fix this? And I hope this is not due to a mistake on my part.

all the best,
Jeremy Harbinson


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/dd93d489-0528-4744-9369-c6f2ac410a14%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi Bryan,

I tried the “pip install bokeh --nodeps” option and got the following response :

Jeremy-H:~ jeremyharbinson1$ pip install bokeh --nodeps

Usage: /Users/jeremyharbinson1/Library/Enthought/Canopy_64bit/User/bin/pip install [OPTIONS] PACKAGE_NAMES…

/Users/jeremyharbinson1/Library/Enthought/Canopy_64bit/User/bin/pip install: error: no such option: --nodeps

I guess this is not what was expected and something weird is going on.

The pip options available in the Canopy pip (I’m assuming that the ‘–nodeps’ is a pip option) are:

Jeremy-H:~ jeremyharbinson1$ pip help

Usage: pip COMMAND [OPTIONS]

Options:

–version show program’s version number and exit

-h, --help Show help

-E DIR, --environment=DIR

                    virtualenv environment to run pip in (either give the
                    interpreter or the environment base directory)

-s, --enable-site-packages

                    Include site-packages in virtualenv if one is to be
                    created. Ignored if --environment is not used or the
                    virtualenv already exists.

-v, --verbose Give more output

-q, --quiet Give less output

–log=FILENAME Log file where a complete (maximum verbosity) record

                    will be kept

–proxy=PROXY Specify a proxy in the form

                    user:[email protected]:port. Note that the
                    user:password@ is optional and required only if you
                    are behind an authenticated proxy.  If you provide
                    [email protected]:port then you will be prompted for a
                    password.

–timeout=SECONDS, --default-timeout=SECONDS

                    Set the socket timeout (default 15 seconds)

Commands available:

bundle: Create pybundles (archives containing multiple packages)

freeze: Output all currently installed packages (exact versions) to stdout

help: Show available commands

install: Install packages

search: Search PyPI

uninstall: Uninstall packages

unzip: Unzip individual packages

zip: Zip individual packages

Jeremy-H:~ jeremyharbinson1$

all the best,

Jeremy


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/72509c34-957d-4114-99c6-79d50a911dd3%40continuum.io.

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

Jeremy, that looks like the exact same problem. What version of pip? Try "pip --version" to get the version. The bokeh source distribution is very simple, it just copies files, there are no other language compilations or anything like that, so there really should be no problems. As I said unfortunately I do not have a Canopy installation I can test against. I did find this on the Enthought site regarding "non-EPD" installers, I am not sure if it is relevant or not:

  https://support.enthought.com/entries/22914233-Using-non-EPD-package-installers-such-as-pip

It's possible Enthought might have more information about best practices for using pip, etc. in conjunction with Canopy.

Two other things you can try:

* download and explode the bokeh-0.4.1.tar.gz tarball, then "python setup.py install" by hand in the "bokeh" directory

* "pip install bokeh" into a system or non-EPD python

Whether either or both of these work would be useful information.

One last possibility: it looks like maybe pip is having trouble in getting the requirements? The requirements specs in 0.4.1 were way too strict, maybe this is just a really bad error message... FYI we are planning on releasing 0.4.2 tomorrow, the requirements have been loosened up substantially, so you might wait and try with that tomorrow.

Bryan

···

On Mar 9, 2014, at 1:11 PM, Jeremy Harbinson <[email protected]> wrote:

Hi Bryan,
I re-entered the '--no-deps' as you suggested and got the following response (looks much the same as first time around):

Jeremy-H:~ jeremyharbinson1$ pip install bokeh --no-deps
Downloading/unpacking bokeh
  Downloading bokeh-0.4.1.tar.gz (27.8Mb): 27.8Mb downloaded
Exception:
Traceback (most recent call last):
  File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/basecommand.py", line 126, in main
    self.run(options, args)
  File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/commands/install.py", line 223, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py", line 961, in prepare_files
    self.unpack_url(url, location, self.is_download)
  File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py", line 1079, in unpack_url
    return unpack_http_url(link, location, self.download_cache, only_download)
  File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/download.py", line 455, in unpack_http_url
    unpack_file(temp_location, location, content_type, link)
  File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py", line 475, in unpack_file
    untar_file(filename, location)
  File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py", line 442, in untar_file
    shutil.copyfileobj(fp, destfp)
  File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/shutil.py", line 49, in copyfileobj
    buf = fsrc.read(length)
AttributeError: 'NoneType' object has no attribute 'read'

I checked Canopy to see if there were any updates (in case there was any bug in their system) and there were none available.
Are there any other tests I can do?
all the best,
Jeremy

On Sunday, March 9, 2014 3:20:55 PM UTC+1, Bryan Van de ven wrote:
Jeremy,

sorry, I made a typo, it should be "--no-deps" (with an extra dash between no and deps) at least for standard pip.

Bryan

On Mar 9, 2014, at 10:19 AM, Jeremy Harbinson <[email protected]> wrote:

>
>
> On Saturday, March 8, 2014 11:51:19 PM UTC+1, Bryan Van de ven wrote:
> Jeremy,
>
> I"m not sure what could be going on, I just tried installing into a fresh conda environment on OSX and had no issues:
>
> (test)bryan@laptop ~/tmp pip install bokeh \-\-no\-deps &gt; Downloading/unpacking bokeh &gt; Downloading bokeh\-0\.4\.1\.tar\.gz \(27\.8MB\): 27\.8MB downloaded &gt; Running setup\.py \(path:/private/var/folders/t1/48dhz2zd3jgdr0d0zss8kq4h0000gn/T/pip\_build\_bryan/bokeh/setup\.py\) egg\_info for package bokeh &gt; &gt; no previously\-included directories found matching &#39;bokehjs/node\_modules&#39; &gt; no previously\-included directories found matching &#39;bokehjs/build&#39; &gt; no previously\-included directories found matching &#39;examples/plotting/notebook/\.ipynb\_checkpoints&#39; &gt; no previously\-included directories found matching &#39;examples/glyphs/\.ipynb\_checkpoints&#39; &gt; Installing collected packages: bokeh &gt; Running setup\.py install for bokeh &gt; installing bokeh, bokeh\.pth was not found, so we did not clean it &gt; no \.git in /private/var/folders/t1/48dhz2zd3jgdr0d0zss8kq4h0000gn/T/pip\_build\_bryan/bokeh &gt; guessing rootdir is &#39;/private/var/folders/t1/48dhz2zd3jgdr0d0zss8kq4h0000gn/T/pip\_build\_bryan/bokeh&#39;, but &#39;bokeh&#39; doesn&#39;t start with prefix &#39;Bokeh\-&#39; &gt; got version from default None &gt; changing mode of build/scripts\-2\.7/bokeh\-server from 644 to 755 &gt; UPDATING build/lib/bokeh/\_version\.py &gt; &gt; no previously\-included directories found matching &#39;bokehjs/node\_modules&#39; &gt; no previously\-included directories found matching &#39;bokehjs/build&#39; &gt; no previously\-included directories found matching &#39;examples/plotting/notebook/\.ipynb\_checkpoints&#39; &gt; no previously\-included directories found matching &#39;examples/glyphs/\.ipynb\_checkpoints&#39; &gt; changing mode of /Users/bryan/anaconda/envs/test/bin/bokeh\-server to 755 &gt; Successfully installed bokeh &gt; &gt; Can you try installing &quot;pip install bokeh \-\-nodeps&quot; just to compare as a baseline? &gt; &gt; Unfortunately I don&#39;t have a Canopy environment to test with\. I&#39;ve cc&#39;ed Ilan in case he has any thoughts about what might be going on\. &gt; &gt; Bryan &gt; &gt; &gt; On Mar 8, 2014, at 12:24 PM, Jeremy Harbinson &lt;jeremy\.h\.\.\.@wur\.nl&gt; wrote: &gt; &gt; &gt; Hi, &gt; &gt; I use the most recent version of the Enthought python distribution \(Python 2\.7\) and OS X 10\.8\.4\. I tried to install Bokeh using pip, having \(I hope\) installed all the necessary dependencies, but there was a problem\. The install command and the response are shown below\. &gt; &gt; &gt; &gt; the install command: &gt; &gt; Jeremy\-H:\~ jeremyharbinson1 pip install bokeh
> >
> > the pip log file:
> > Downloading/unpacking bokeh
> > Getting page http://pypi.python.org/simple/bokeh
> > URLs to search for versions for bokeh:
> > * http://pypi.python.org/simple/bokeh/
> > Getting page http://pypi.python.org/simple/bokeh/
> > Analyzing links from page Links for bokeh
> > Found link https://pypi.python.org/packages/source/b/bokeh/bokeh-0.2.tgz#md5=fa17b2bdae75515de4ca7e01107e09f4 (from https://pypi.python.org/simple/bokeh/\), version: 0.2
> > Found link https://pypi.python.org/packages/source/b/bokeh/bokeh-0.3.tar.gz#md5=81fb90108993ad17c00805be9803478c (from https://pypi.python.org/simple/bokeh/\), version: 0.3
> > Found link https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.1.tar.gz#md5=c7b912d281c8e9b5a28f1edac219ed0c (from https://pypi.python.org/simple/bokeh/\), version: 0.4.1
> > Found link https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.tar.gz#md5=9b4c82c77e1463b044556f6ef6c7ddae (from https://pypi.python.org/simple/bokeh/\), version: 0.4
> > Using version 0.4.1 (newest of versions: 0.4.1, 0.4, 0.3, 0.2)
> > Downloading from URL https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.1.tar.gz#md5=c7b912d281c8e9b5a28f1edac219ed0c (from https://pypi.python.org/simple/bokeh/\)
> > Exception:
> > Traceback (most recent call last):
> > File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/basecommand.py", line 126, in main
> > self.run(options, args)
> > File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/commands/install.py", line 223, in run
> > requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
> > File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py", line 961, in prepare_files
> > self.unpack_url(url, location, self.is_download)
> > File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py", line 1079, in unpack_url
> > return unpack_http_url(link, location, self.download_cache, only_download)
> > File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/download.py", line 455, in unpack_http_url
> > unpack_file(temp_location, location, content_type, link)
> > File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py", line 475, in unpack_file
> > untar_file(filename, location)
> > File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py", line 442, in untar_file
> > shutil.copyfileobj(fp, destfp)
> > File "/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/shutil.py", line 49, in copyfileobj
> > buf = fsrc.read(length)
> > AttributeError: 'NoneType' object has no attribute 'read'
> >
> >
> > Does anyone have a suggestion to fix this? And I hope this is not due to a mistake on my part.
> >
> > all the best,
> > Jeremy Harbinson
> >
> >
> > --
> > 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/dd93d489-0528-4744-9369-c6f2ac410a14%40continuum.io\.
> > For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
>
>
> Hi Bryan,
> I tried the "pip install bokeh --nodeps" option and got the following response :
>
> Jeremy-H:~ jeremyharbinson1$ pip install bokeh --nodeps
> Usage: /Users/jeremyharbinson1/Library/Enthought/Canopy_64bit/User/bin/pip install [OPTIONS] PACKAGE_NAMES...
>
> /Users/jeremyharbinson1/Library/Enthought/Canopy_64bit/User/bin/pip install: error: no such option: --nodeps
>
> I guess this is not what was expected and something weird is going on.
>
>
> The pip options available in the Canopy pip (I'm assuming that the '--nodeps' is a pip option) are:
>
> Jeremy-H:~ jeremyharbinson1$ pip help
> Usage: pip COMMAND [OPTIONS]
>
> Options:
> --version show program's version number and exit
> -h, --help Show help
> -E DIR, --environment=DIR
> virtualenv environment to run pip in (either give the
> interpreter or the environment base directory)
> -s, --enable-site-packages
> Include site-packages in virtualenv if one is to be
> created. Ignored if --environment is not used or the
> virtualenv already exists.
> -v, --verbose Give more output
> -q, --quiet Give less output
> --log=FILENAME Log file where a complete (maximum verbosity) record
> will be kept
> --proxy=PROXY Specify a proxy in the form
> user:[email protected]:port. Note that the
> user:password@ is optional and required only if you
> are behind an authenticated proxy. If you provide
> [email protected]:port then you will be prompted for a
> password.
> --timeout=SECONDS, --default-timeout=SECONDS
> Set the socket timeout (default 15 seconds)
>
> Commands available:
> bundle: Create pybundles (archives containing multiple packages)
> freeze: Output all currently installed packages (exact versions) to stdout
> help: Show available commands
> install: Install packages
> search: Search PyPI
> uninstall: Uninstall packages
> unzip: Unzip individual packages
> zip: Zip individual packages
> Jeremy-H:~ jeremyharbinson1$
>
> all the best,
> Jeremy
>
> --
> 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/72509c34-957d-4114-99c6-79d50a911dd3%40continuum.io\.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
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/fc19854e-60be-4be0-8691-b065da6f02d9%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Hi Bryan,
My pip version is listed as 1.0.2:

Jeremy-H:~ jeremyharbinson1$ pip --version

pip 1.0.2 from /Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages (python 2.7)

As you suggested I downloaded the latest version of Bokeh and then ran the usual ‘python setup.py install’, and Bokeh installed fine. I tried running python glyph1.py and that also ran fine (zoom etc works as expected), so the installation seems to work.

Thanks for all your help with this.

all the best,

Jeremy

···

On Sunday, March 9, 2014 7:12:09 PM UTC+1, Bryan Van de ven wrote:

Jeremy, that looks like the exact same problem. What version of pip? Try “pip --version” to get the version. The bokeh source distribution is very simple, it just copies files, there are no other language compilations or anything like that, so there really should be no problems. As I said unfortunately I do not have a Canopy installation I can test against. I did find this on the Enthought site regarding “non-EPD” installers, I am not sure if it is relevant or not:

    [https://support.enthought.com/entries/22914233-Using-non-EPD-package-installers-such-as-pip](https://support.enthought.com/entries/22914233-Using-non-EPD-package-installers-such-as-pip)

It’s possible Enthought might have more information about best practices for using pip, etc. in conjunction with Canopy.

Two other things you can try:

  • download and explode the bokeh-0.4.1.tar.gz tarball, then “python setup.py install” by hand in the “bokeh” directory

  • “pip install bokeh” into a system or non-EPD python

Whether either or both of these work would be useful information.

One last possibility: it looks like maybe pip is having trouble in getting the requirements? The requirements specs in 0.4.1 were way too strict, maybe this is just a really bad error message… FYI we are planning on releasing 0.4.2 tomorrow, the requirements have been loosened up substantially, so you might wait and try with that tomorrow.

Bryan

On Mar 9, 2014, at 1:11 PM, Jeremy Harbinson [email protected] wrote:

Hi Bryan,

I re-entered the ‘–no-deps’ as you suggested and got the following response (looks much the same as first time around):

Jeremy-H:~ jeremyharbinson1$ pip install bokeh --no-deps

Downloading/unpacking bokeh

Downloading bokeh-0.4.1.tar.gz (27.8Mb): 27.8Mb downloaded

Exception:

Traceback (most recent call last):

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/basecommand.py”, line 126, in main

self.run(options, args)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/commands/install.py”, line 223, in run

requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py”, line 961, in prepare_files

self.unpack_url(url, location, self.is_download)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py”, line 1079, in unpack_url

return unpack_http_url(link, location, self.download_cache, only_download)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/download.py”, line 455, in unpack_http_url

unpack_file(temp_location, location, content_type, link)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py”, line 475, in unpack_file

untar_file(filename, location)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py”, line 442, in untar_file

shutil.copyfileobj(fp, destfp)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/shutil.py”, line 49, in copyfileobj

buf = fsrc.read(length)

AttributeError: ‘NoneType’ object has no attribute ‘read’

I checked Canopy to see if there were any updates (in case there was any bug in their system) and there were none available.

Are there any other tests I can do?

all the best,

Jeremy

On Sunday, March 9, 2014 3:20:55 PM UTC+1, Bryan Van de ven wrote:

Jeremy,

sorry, I made a typo, it should be “–no-deps” (with an extra dash between no and deps) at least for standard pip.

Bryan

On Mar 9, 2014, at 10:19 AM, Jeremy Harbinson [email protected] wrote:

On Saturday, March 8, 2014 11:51:19 PM UTC+1, Bryan Van de ven wrote:
Jeremy,

I"m not sure what could be going on, I just tried installing into a fresh conda environment on OSX and had no issues:

(test)bryan@laptop ~/tmp $ pip install bokeh --no-deps
Downloading/unpacking bokeh
Downloading bokeh-0.4.1.tar.gz (27.8MB): 27.8MB downloaded
Running setup.py (path:/private/var/folders/t1/48dhz2zd3jgdr0d0zss8kq4h0000gn/T/pip_build_bryan/bokeh/setup.py) egg_info for package bokeh

no previously-included directories found matching 'bokehjs/node_modules'
no previously-included directories found matching 'bokehjs/build'
no previously-included directories found matching 'examples/plotting/notebook/.ipynb_checkpoints'
no previously-included directories found matching 'examples/glyphs/.ipynb_checkpoints'

Installing collected packages: bokeh
Running setup.py install for bokeh
installing bokeh, bokeh.pth was not found, so we did not clean it
no .git in /private/var/folders/t1/48dhz2zd3jgdr0d0zss8kq4h0000gn/T/pip_build_bryan/bokeh
guessing rootdir is ‘/private/var/folders/t1/48dhz2zd3jgdr0d0zss8kq4h0000gn/T/pip_build_bryan/bokeh’, but ‘bokeh’ doesn’t start with prefix ‘Bokeh-’
got version from default None
changing mode of build/scripts-2.7/bokeh-server from 644 to 755
UPDATING build/lib/bokeh/_version.py

no previously-included directories found matching 'bokehjs/node_modules'
no previously-included directories found matching 'bokehjs/build'
no previously-included directories found matching 'examples/plotting/notebook/.ipynb_checkpoints'
no previously-included directories found matching 'examples/glyphs/.ipynb_checkpoints'
changing mode of /Users/bryan/anaconda/envs/test/bin/bokeh-server to 755

Successfully installed bokeh

Can you try installing “pip install bokeh --nodeps” just to compare as a baseline?

Unfortunately I don’t have a Canopy environment to test with. I’ve cc’ed Ilan in case he has any thoughts about what might be going on.

Bryan

On Mar 8, 2014, at 12:24 PM, Jeremy Harbinson [email protected] wrote:

Hi,
I use the most recent version of the Enthought python distribution (Python 2.7) and OS X 10.8.4. I tried to install Bokeh using pip, having (I hope) installed all the necessary dependencies, but there was a problem. The install command and the response are shown below.

the install command:
Jeremy-H:~ jeremyharbinson1$ pip install bokeh

the pip log file:
Downloading/unpacking bokeh
Getting page http://pypi.python.org/simple/bokeh

URLs to search for versions for bokeh:

Getting page http://pypi.python.org/simple/bokeh/

Analyzing links from page https://pypi.python.org/simple/bokeh/

Found link [https://pypi.python.org/packages/source/b/bokeh/bokeh-0.2.tgz#md5=fa17b2bdae75515de4ca7e01107e09f4](https://pypi.python.org/packages/source/b/bokeh/bokeh-0.2.tgz#md5=fa17b2bdae75515de4ca7e01107e09f4) (from [https://pypi.python.org/simple/bokeh/](https://pypi.python.org/simple/bokeh/)), version: 0.2
Found link [https://pypi.python.org/packages/source/b/bokeh/bokeh-0.3.tar.gz#md5=81fb90108993ad17c00805be9803478c](https://pypi.python.org/packages/source/b/bokeh/bokeh-0.3.tar.gz#md5=81fb90108993ad17c00805be9803478c) (from [https://pypi.python.org/simple/bokeh/](https://pypi.python.org/simple/bokeh/)), version: 0.3
Found link [https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.1.tar.gz#md5=c7b912d281c8e9b5a28f1edac219ed0c](https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.1.tar.gz#md5=c7b912d281c8e9b5a28f1edac219ed0c) (from [https://pypi.python.org/simple/bokeh/](https://pypi.python.org/simple/bokeh/)), version: 0.4.1
Found link [https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.tar.gz#md5=9b4c82c77e1463b044556f6ef6c7ddae](https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.tar.gz#md5=9b4c82c77e1463b044556f6ef6c7ddae) (from [https://pypi.python.org/simple/bokeh/](https://pypi.python.org/simple/bokeh/)), version: 0.4

Using version 0.4.1 (newest of versions: 0.4.1, 0.4, 0.3, 0.2)
Downloading from URL https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.1.tar.gz#md5=c7b912d281c8e9b5a28f1edac219ed0c (from https://pypi.python.org/simple/bokeh/)
Exception:
Traceback (most recent call last):
File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/basecommand.py”, line 126, in main
self.run(options, args)
File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/commands/install.py”, line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py”, line 961, in prepare_files
self.unpack_url(url, location, self.is_download)
File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py”, line 1079, in unpack_url
return unpack_http_url(link, location, self.download_cache, only_download)
File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/download.py”, line 455, in unpack_http_url
unpack_file(temp_location, location, content_type, link)
File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py”, line 475, in unpack_file
untar_file(filename, location)
File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py”, line 442, in untar_file
shutil.copyfileobj(fp, destfp)
File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/shutil.py”, line 49, in copyfileobj
buf = fsrc.read(length)
AttributeError: ‘NoneType’ object has no attribute ‘read’

Does anyone have a suggestion to fix this? And I hope this is not due to a mistake on my part.

all the best,
Jeremy Harbinson


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/dd93d489-0528-4744-9369-c6f2ac410a14%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi Bryan,
I tried the “pip install bokeh --nodeps” option and got the following response :

Jeremy-H:~ jeremyharbinson1$ pip install bokeh --nodeps
Usage: /Users/jeremyharbinson1/Library/Enthought/Canopy_64bit/User/bin/pip install [OPTIONS] PACKAGE_NAMES…

/Users/jeremyharbinson1/Library/Enthought/Canopy_64bit/User/bin/pip install: error: no such option: --nodeps

I guess this is not what was expected and something weird is going on.

The pip options available in the Canopy pip (I’m assuming that the ‘–nodeps’ is a pip option) are:

Jeremy-H:~ jeremyharbinson1$ pip help
Usage: pip COMMAND [OPTIONS]

Options:
–version show program’s version number and exit
-h, --help Show help
-E DIR, --environment=DIR
virtualenv environment to run pip in (either give the
interpreter or the environment base directory)
-s, --enable-site-packages
Include site-packages in virtualenv if one is to be
created. Ignored if --environment is not used or the
virtualenv already exists.
-v, --verbose Give more output
-q, --quiet Give less output
–log=FILENAME Log file where a complete (maximum verbosity) record
will be kept
–proxy=PROXY Specify a proxy in the form
user:[email protected]:port. Note that the
user:password@ is optional and required only if you
are behind an authenticated proxy. If you provide
[email protected]:port then you will be prompted for a
password.
–timeout=SECONDS, --default-timeout=SECONDS
Set the socket timeout (default 15 seconds)

Commands available:
bundle: Create pybundles (archives containing multiple packages)
freeze: Output all currently installed packages (exact versions) to stdout
help: Show available commands
install: Install packages
search: Search PyPI
uninstall: Uninstall packages
unzip: Unzip individual packages
zip: Zip individual packages
Jeremy-H:~ jeremyharbinson1$

all the best,
Jeremy


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/72509c34-957d-4114-99c6-79d50a911dd3%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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/fc19854e-60be-4be0-8691-b065da6f02d9%40continuum.io.

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

I just got bitten by this too. Turns out pip used to have a bug where it fails when extracting tarballs containing symlinks. (bokehjs/demo/spectrogram/static/jquery is a symlink) Upgrading pip fixed it for me.

– (another) Jeremy

···

On Monday, March 10, 2014 6:28:33 PM UTC-4, Jeremy Harbinson wrote:

Hi Bryan,
My pip version is listed as 1.0.2:

Jeremy-H:~ jeremyharbinson1$ pip --version

pip 1.0.2 from /Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages (python 2.7)

As you suggested I downloaded the latest version of Bokeh and then ran the usual ‘python setup.py install’, and Bokeh installed fine. I tried running python glyph1.py and that also ran fine (zoom etc works as expected), so the installation seems to work.

Thanks for all your help with this.

all the best,

Jeremy

On Sunday, March 9, 2014 7:12:09 PM UTC+1, Bryan Van de ven wrote:

Jeremy, that looks like the exact same problem. What version of pip? Try “pip --version” to get the version. The bokeh source distribution is very simple, it just copies files, there are no other language compilations or anything like that, so there really should be no problems. As I said unfortunately I do not have a Canopy installation I can test against. I did find this on the Enthought site regarding “non-EPD” installers, I am not sure if it is relevant or not:

    [https://support.enthought.com/entries/22914233-Using-non-EPD-package-installers-such-as-pip](https://support.enthought.com/entries/22914233-Using-non-EPD-package-installers-such-as-pip)

It’s possible Enthought might have more information about best practices for using pip, etc. in conjunction with Canopy.

Two other things you can try:

  • download and explode the bokeh-0.4.1.tar.gz tarball, then “python setup.py install” by hand in the “bokeh” directory

  • “pip install bokeh” into a system or non-EPD python

Whether either or both of these work would be useful information.

One last possibility: it looks like maybe pip is having trouble in getting the requirements? The requirements specs in 0.4.1 were way too strict, maybe this is just a really bad error message… FYI we are planning on releasing 0.4.2 tomorrow, the requirements have been loosened up substantially, so you might wait and try with that tomorrow.

Bryan

On Mar 9, 2014, at 1:11 PM, Jeremy Harbinson [email protected] wrote:

Hi Bryan,

I re-entered the ‘–no-deps’ as you suggested and got the following response (looks much the same as first time around):

Jeremy-H:~ jeremyharbinson1$ pip install bokeh --no-deps

Downloading/unpacking bokeh

Downloading bokeh-0.4.1.tar.gz (27.8Mb): 27.8Mb downloaded

Exception:

Traceback (most recent call last):

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/basecommand.py”, line 126, in main

self.run(options, args)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/commands/install.py”, line 223, in run

requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py”, line 961, in prepare_files

self.unpack_url(url, location, self.is_download)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py”, line 1079, in unpack_url

return unpack_http_url(link, location, self.download_cache, only_download)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/download.py”, line 455, in unpack_http_url

unpack_file(temp_location, location, content_type, link)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py”, line 475, in unpack_file

untar_file(filename, location)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py”, line 442, in untar_file

shutil.copyfileobj(fp, destfp)

File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/shutil.py”, line 49, in copyfileobj

buf = fsrc.read(length)

AttributeError: ‘NoneType’ object has no attribute ‘read’

I checked Canopy to see if there were any updates (in case there was any bug in their system) and there were none available.

Are there any other tests I can do?

all the best,

Jeremy

On Sunday, March 9, 2014 3:20:55 PM UTC+1, Bryan Van de ven wrote:

Jeremy,

sorry, I made a typo, it should be “–no-deps” (with an extra dash between no and deps) at least for standard pip.

Bryan

On Mar 9, 2014, at 10:19 AM, Jeremy Harbinson [email protected] wrote:

On Saturday, March 8, 2014 11:51:19 PM UTC+1, Bryan Van de ven wrote:
Jeremy,

I"m not sure what could be going on, I just tried installing into a fresh conda environment on OSX and had no issues:

(test)bryan@laptop ~/tmp $ pip install bokeh --no-deps
Downloading/unpacking bokeh
Downloading bokeh-0.4.1.tar.gz (27.8MB): 27.8MB downloaded
Running setup.py (path:/private/var/folders/t1/48dhz2zd3jgdr0d0zss8kq4h0000gn/T/pip_build_bryan/bokeh/setup.py) egg_info for package bokeh

no previously-included directories found matching 'bokehjs/node_modules'
no previously-included directories found matching 'bokehjs/build'
no previously-included directories found matching 'examples/plotting/notebook/.ipynb_checkpoints'
no previously-included directories found matching 'examples/glyphs/.ipynb_checkpoints'

Installing collected packages: bokeh
Running setup.py install for bokeh
installing bokeh, bokeh.pth was not found, so we did not clean it
no .git in /private/var/folders/t1/48dhz2zd3jgdr0d0zss8kq4h0000gn/T/pip_build_bryan/bokeh
guessing rootdir is ‘/private/var/folders/t1/48dhz2zd3jgdr0d0zss8kq4h0000gn/T/pip_build_bryan/bokeh’, but ‘bokeh’ doesn’t start with prefix ‘Bokeh-’
got version from default None
changing mode of build/scripts-2.7/bokeh-server from 644 to 755
UPDATING build/lib/bokeh/_version.py

no previously-included directories found matching 'bokehjs/node_modules'
no previously-included directories found matching 'bokehjs/build'
no previously-included directories found matching 'examples/plotting/notebook/.ipynb_checkpoints'
no previously-included directories found matching 'examples/glyphs/.ipynb_checkpoints'
changing mode of /Users/bryan/anaconda/envs/test/bin/bokeh-server to 755

Successfully installed bokeh

Can you try installing “pip install bokeh --nodeps” just to compare as a baseline?

Unfortunately I don’t have a Canopy environment to test with. I’ve cc’ed Ilan in case he has any thoughts about what might be going on.

Bryan

On Mar 8, 2014, at 12:24 PM, Jeremy Harbinson [email protected] wrote:

Hi,
I use the most recent version of the Enthought python distribution (Python 2.7) and OS X 10.8.4. I tried to install Bokeh using pip, having (I hope) installed all the necessary dependencies, but there was a problem. The install command and the response are shown below.

the install command:
Jeremy-H:~ jeremyharbinson1$ pip install bokeh

the pip log file:
Downloading/unpacking bokeh
Getting page http://pypi.python.org/simple/bokeh

URLs to search for versions for bokeh:

Getting page http://pypi.python.org/simple/bokeh/

Analyzing links from page https://pypi.python.org/simple/bokeh/

Found link [https://pypi.python.org/packages/source/b/bokeh/bokeh-0.2.tgz#md5=fa17b2bdae75515de4ca7e01107e09f4](https://pypi.python.org/packages/source/b/bokeh/bokeh-0.2.tgz#md5=fa17b2bdae75515de4ca7e01107e09f4) (from [https://pypi.python.org/simple/bokeh/](https://pypi.python.org/simple/bokeh/)), version: 0.2
Found link [https://pypi.python.org/packages/source/b/bokeh/bokeh-0.3.tar.gz#md5=81fb90108993ad17c00805be9803478c](https://pypi.python.org/packages/source/b/bokeh/bokeh-0.3.tar.gz#md5=81fb90108993ad17c00805be9803478c) (from [https://pypi.python.org/simple/bokeh/](https://pypi.python.org/simple/bokeh/)), version: 0.3
Found link [https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.1.tar.gz#md5=c7b912d281c8e9b5a28f1edac219ed0c](https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.1.tar.gz#md5=c7b912d281c8e9b5a28f1edac219ed0c) (from [https://pypi.python.org/simple/bokeh/](https://pypi.python.org/simple/bokeh/)), version: 0.4.1
Found link [https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.tar.gz#md5=9b4c82c77e1463b044556f6ef6c7ddae](https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.tar.gz#md5=9b4c82c77e1463b044556f6ef6c7ddae) (from [https://pypi.python.org/simple/bokeh/](https://pypi.python.org/simple/bokeh/)), version: 0.4

Using version 0.4.1 (newest of versions: 0.4.1, 0.4, 0.3, 0.2)
Downloading from URL https://pypi.python.org/packages/source/b/bokeh/bokeh-0.4.1.tar.gz#md5=c7b912d281c8e9b5a28f1edac219ed0c (from https://pypi.python.org/simple/bokeh/)
Exception:
Traceback (most recent call last):
File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/basecommand.py”, line 126, in main
self.run(options, args)
File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/commands/install.py”, line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py”, line 961, in prepare_files
self.unpack_url(url, location, self.is_download)
File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/req.py”, line 1079, in unpack_url
return unpack_http_url(link, location, self.download_cache, only_download)
File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/download.py”, line 455, in unpack_http_url
unpack_file(temp_location, location, content_type, link)
File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py”, line 475, in unpack_file
untar_file(filename, location)
File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/pip/util.py”, line 442, in untar_file
shutil.copyfileobj(fp, destfp)
File “/Applications/Canopy.app/appdata/canopy-1.3.0.1715.macosx-x86_64/Canopy.app/Contents/lib/python2.7/shutil.py”, line 49, in copyfileobj
buf = fsrc.read(length)
AttributeError: ‘NoneType’ object has no attribute ‘read’

Does anyone have a suggestion to fix this? And I hope this is not due to a mistake on my part.

all the best,
Jeremy Harbinson


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/dd93d489-0528-4744-9369-c6f2ac410a14%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi Bryan,
I tried the “pip install bokeh --nodeps” option and got the following response :

Jeremy-H:~ jeremyharbinson1$ pip install bokeh --nodeps
Usage: /Users/jeremyharbinson1/Library/Enthought/Canopy_64bit/User/bin/pip install [OPTIONS] PACKAGE_NAMES…

/Users/jeremyharbinson1/Library/Enthought/Canopy_64bit/User/bin/pip install: error: no such option: --nodeps

I guess this is not what was expected and something weird is going on.

The pip options available in the Canopy pip (I’m assuming that the ‘–nodeps’ is a pip option) are:

Jeremy-H:~ jeremyharbinson1$ pip help
Usage: pip COMMAND [OPTIONS]

Options:
–version show program’s version number and exit
-h, --help Show help
-E DIR, --environment=DIR
virtualenv environment to run pip in (either give the
interpreter or the environment base directory)
-s, --enable-site-packages
Include site-packages in virtualenv if one is to be
created. Ignored if --environment is not used or the
virtualenv already exists.
-v, --verbose Give more output
-q, --quiet Give less output
–log=FILENAME Log file where a complete (maximum verbosity) record
will be kept
–proxy=PROXY Specify a proxy in the form
user:[email protected]:port. Note that the
user:password@ is optional and required only if you
are behind an authenticated proxy. If you provide
[email protected]:port then you will be prompted for a
password.
–timeout=SECONDS, --default-timeout=SECONDS
Set the socket timeout (default 15 seconds)

Commands available:
bundle: Create pybundles (archives containing multiple packages)
freeze: Output all currently installed packages (exact versions) to stdout
help: Show available commands
install: Install packages
search: Search PyPI
uninstall: Uninstall packages
unzip: Unzip individual packages
zip: Zip individual packages
Jeremy-H:~ jeremyharbinson1$

all the best,
Jeremy


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/72509c34-957d-4114-99c6-79d50a911dd3%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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/fc19854e-60be-4be0-8691-b065da6f02d9%40continuum.io.

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