First time I've had a problem with this. nb_anacondacloud won't install. Turns out it is an anaconda-client version issue, so it looks like the package's dependencies should specify anaconda-client>=1.4.0:
$ conda update anaconda-client
Using Anaconda Cloud api site https://api.anaconda.org
Fetching package metadata: ......
Solving package specifications: .........
Package plan for installation in environment /Users/ijstokes/anaconda/envs/trialbox:
The following packages will be UPDATED:
anaconda-client: 1.2.1-py27_0 --> 1.4.0-py27_0
That solved the problem, but the issue I had you can see in the trace below.
$ conda install -y -c anaconda-nb-ext
ensions nb_anacondacloud nb_conda nb_conda_kernels
Using Anaconda Cloud api site https://api.anaconda.org
Fetching package metadata: ........
Solving package specifications: .........
Package plan for installation in environment /Users/ijstokes/anaconda/envs/trialbox:
The following NEW packages will be INSTALLED:
nb_anacondacloud: 1.0.0-py27_0
nb_conda: 1.0.0-py27_0
nb_conda_kernels: 1.0.0-py27_0
Linking packages ...
Traceback (most recent call last):
File "/Users/ijstokes/anaconda/envs/trialbox/bin/jupyter-nbextension", line 6, in <module>
sys.exit(notebook.nbextensions.main())
File "/Users/ijstokes/anaconda/envs/trialbox/lib/python2.7/site-packages/jupyter_core/application.py", line 267, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/Users/ijstokes/anaconda/envs/trialbox/lib/python2.7/site-packages/traitlets/config/application.py", line 592, in launch_instance
app.start()
File "/Users/ijstokes/anaconda/envs/trialbox/lib/python2.7/site-packages/notebook/nbextensions.py", line 952, in start
super(NBExtensionApp, self).start()
File "/Users/ijstokes/anaconda/envs/trialbox/lib/python2.7/site-packages/jupyter_core/application.py", line 256, in start
self.subapp.start()
File "/Users/ijstokes/anaconda/envs/trialbox/lib/python2.7/site-packages/notebook/nbextensions.py", line 860, in start
self.toggle_nbextension_python(self.extra_args[0])
File "/Users/ijstokes/anaconda/envs/trialbox/lib/python2.7/site-packages/notebook/nbextensions.py", line 836, in toggle_nbextension_python
logger=self.log)
File "/Users/ijstokes/anaconda/envs/trialbox/lib/python2.7/site-packages/notebook/nbextensions.py", line 459, in enable_nbextension_python
logger=logger)
File "/Users/ijstokes/anaconda/envs/trialbox/lib/python2.7/site-packages/notebook/nbextensions.py", line 374, in _set_nbextension_state_python
m, nbexts = _get_nbextension_metadata(module)
File "/Users/ijstokes/anaconda/envs/trialbox/lib/python2.7/site-packages/notebook/nbextensions.py", line 1114, in _get_nbextension_metadata
m = import_item(module)
File "/Users/ijstokes/anaconda/envs/trialbox/lib/python2.7/site-packages/traitlets/utils/importstring.py", line 39, in import_item
return __import__(parts[0])
File "/Users/ijstokes/anaconda/envs/trialbox/lib/python2.7/site-packages/nb_anacondacloud/__init__.py", line 3, in <module>
from .handlers import load_jupyter_server_extension
File "/Users/ijstokes/anaconda/envs/trialbox/lib/python2.7/site-packages/nb_anacondacloud/handlers.py", line 12, in <module>
from .uploader import Uploader, AccountManager
File "/Users/ijstokes/anaconda/envs/trialbox/lib/python2.7/site-packages/nb_anacondacloud/uploader.py", line 10, in <module>
from binstar_client.utils import get_server_api, store_token
ImportError: cannot import name get_server_api
Traceback (most recent call last):
File "/Users/ijstokes/anaconda/envs/trialbox/bin/jupyter-serverextension", line 6, in <module>
sys.exit(notebook.serverextensions.main())
File "/Users/ijstokes/anaconda/envs/trialbox/lib/python2.7/site-packages/jupyter_core/application.py", line 267, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/Users/ijstokes/anaconda/envs/trialbox/lib/python2.7/site-packages/traitlets/config/application.py", line 592, in launch_instance
app.start()
File "/Users/ijstokes/anaconda/envs/trialbox/lib/python2.7/site-packages/notebook/serverextensions.py", line 301, in start
super(ServerExtensionApp, self).start()
File "/Users/ijstokes/anaconda/envs/trialbox/lib/python2.7/site-packages/jupyter_core/application.py", line 256, in start
self.subapp.start()
File "/Users/ijstokes/anaconda/envs/trialbox/lib/python2.7/site-packages/notebook/serverextensions.py", line 218, in start
self.toggle_server_extension_python(arg)
File "/Users/ijstokes/anaconda/envs/trialbox/lib/python2.7/site-packages/notebook/serverextensions.py", line 207, in toggle_server_extension_python
m, server_exts = _get_server_extension_metadata(package)
File "/Users/ijstokes/anaconda/envs/trialbox/lib/python2.7/site-packages/notebook/serverextensions.py", line 335, in _get_server_extension_metadata
m = import_item(module)
File "/Users/ijstokes/anaconda/envs/trialbox/lib/python2.7/site-packages/traitlets/utils/importstring.py", line 39, in import_item
return __import__(parts[0])
File "/Users/ijstokes/anaconda/envs/trialbox/lib/python2.7/site-packages/nb_anacondacloud/__init__.py", line 3, in <module>
from .handlers import load_jupyter_server_extension
File "/Users/ijstokes/anaconda/envs/trialbox/lib/python2.7/site-packages/nb_anacondacloud/handlers.py", line 12, in <module>
from .uploader import Uploader, AccountManager
File "/Users/ijstokes/anaconda/envs/trialbox/lib/python2.7/site-packages/nb_anacondacloud/uploader.py", line 10, in <module>
from binstar_client.utils import get_server_api, store_token
ImportError: cannot import name get_server_api
Error: Error: post-link failed for: nb_anacondacloud-1.0.0-py27_0 | 0%
This is probably stale by now... we are now in nb_ancondaclould 1.4.0 and anaconda-client 1.6.3. Let's close it for now and re-open if somebody else reproduce it.
First time I've had a problem with this.
nb_anacondacloud
won't install. Turns out it is ananaconda-client
version issue, so it looks like the package's dependencies should specifyanaconda-client>=1.4.0
:That solved the problem, but the issue I had you can see in the trace below.
Conda details: