[yt-dev] Issue #1068: Cannot use ipython notebook with anaconda once yt is installed (yt_analysis/yt)

ggoodwin52 issues-reply at bitbucket.org
Thu Aug 20 10:44:06 PDT 2015


New issue 1068: Cannot use ipython notebook with anaconda once yt is installed
https://bitbucket.org/yt_analysis/yt/issues/1068/cannot-use-ipython-notebook-with-anaconda

ggoodwin52:

I installed the most updated version of anaconda for linux-64bit and was able to open ipython, ipython notebook, spyder, etc. without any issue. Then, I installed yt using the "conda install yt" command. The install was successful, but now when I try and start ipython notebook or spyder to use yt I get an error message. 

The following script from my terminal shows successful starting of the ipython notebook via anaconda, closing the ipython notebook, installing yt, and then trying to re-open the ipython notebook and getting an error.


```
#!bash

[ggoodwin at Omoikane ~]$ ipython notebook
[I 13:36:38.296 NotebookApp] Using MathJax from CDN: https://cdn.mathjax.org/mathjax/latest/MathJax.js
[I 13:36:38.376 NotebookApp] The port 8888 is already in use, trying another random port.
[I 13:36:38.376 NotebookApp] The port 8889 is already in use, trying another random port.
[I 13:36:38.377 NotebookApp] The port 8890 is already in use, trying another random port.
[I 13:36:38.385 NotebookApp] Serving notebooks from local directory: /home/ggoodwin
[I 13:36:38.385 NotebookApp] 0 active kernels 
[I 13:36:38.386 NotebookApp] The IPython Notebook is running at: http://localhost:8891/
[I 13:36:38.386 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
^C[I 13:36:40.027 NotebookApp] interrupted
Serving notebooks from local directory: /home/ggoodwin
0 active kernels 
The IPython Notebook is running at: http://localhost:8891/
Shutdown this notebook server (y/[n])? y
[C 13:36:41.525 NotebookApp] Shutdown confirmed
[I 13:36:41.525 NotebookApp] Shutting down kernels
[ggoodwin at Omoikane ~]$ conda install yt
Fetching package metadata: ....
Solving package specifications: .
Package plan for installation in environment /home/ggoodwin/anaconda:

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    openblas-0.2.14            |                0         6.6 MB
    conda-env-2.4.2            |           py27_0          24 KB
    decorator-4.0.2            |           py27_0          11 KB
    ipython_genutils-0.1.0     |           py27_0          32 KB
    numpy-1.9.2                |           py27_1         5.7 MB
    path.py-7.6                |           py27_0          41 KB
    pexpect-3.3                |           py27_0          60 KB
    pickleshare-0.5            |           py27_0           8 KB
    setuptools-18.1            |           py27_0         341 KB
    simplegeneric-0.8.1        |           py27_0           6 KB
    traitlets-4.0.0            |           py27_0          88 KB
    wheel-0.24.0               |           py27_0          75 KB
    conda-3.16.0               |           py27_0         172 KB
    ipython-4.0.0              |           py27_0         915 KB
    pip-7.1.0                  |           py27_1         1.4 MB
    yt-3.2                     |       np19py27_0         8.0 MB
    ------------------------------------------------------------
                                           Total:        23.3 MB

The following NEW packages will be INSTALLED:

    ipython_genutils: 0.1.0-py27_0  
    openblas:         0.2.14-0      
    path.py:          7.6-py27_0    
    pexpect:          3.3-py27_0    
    pickleshare:      0.5-py27_0    
    simplegeneric:    0.8.1-py27_0  
    traitlets:        4.0.0-py27_0  
    wheel:            0.24.0-py27_0 
    yt:               3.2-np19py27_0

The following packages will be UPDATED:

    conda:            3.14.1-py27_0 --> 3.16.0-py27_0 
    conda-env:        2.2.3-py27_0  --> 2.4.2-py27_0  
    decorator:        3.4.2-py27_0  --> 4.0.2-py27_0  
    ipython:          3.2.0-py27_0  --> 4.0.0-py27_0  
    numpy:            1.9.2-py27_0  --> 1.9.2-py27_1  
    pip:              7.0.3-py27_0  --> 7.1.0-py27_1  
    setuptools:       17.1.1-py27_0 --> 18.1-py27_0   

Proceed ([y]/n)? y

Fetching packages ...
openblas-0.2.1 100% |################################| Time: 0:00:00  18.01 MB/s
conda-env-2.4. 100% |################################| Time: 0:00:00 212.81 kB/s
decorator-4.0. 100% |################################| Time: 0:00:00  99.67 kB/s
ipython_genuti 100% |################################| Time: 0:00:00 274.77 kB/s
numpy-1.9.2-py 100% |################################| Time: 0:00:00   7.59 MB/s
path.py-7.6-py 100% |################################| Time: 0:00:00   2.65 MB/s
pexpect-3.3-py 100% |################################| Time: 0:00:00 164.63 kB/s
pickleshare-0. 100% |################################| Time: 0:00:00  68.05 kB/s
setuptools-18. 100% |################################| Time: 0:00:00   9.75 MB/s
simplegeneric- 100% |################################| Time: 0:00:00   4.05 MB/s
traitlets-4.0. 100% |################################| Time: 0:00:00 508.57 kB/s
wheel-0.24.0-p 100% |################################| Time: 0:00:00   3.54 MB/s
conda-3.16.0-p 100% |################################| Time: 0:00:00   1.66 MB/s
ipython-4.0.0- 100% |################################| Time: 0:00:00   5.93 MB/s
pip-7.1.0-py27 100% |################################| Time: 0:00:00   5.45 MB/s
yt-3.2-np19py2 100% |################################| Time: 0:00:00   8.83 MB/s
Extracting packages ...
[      COMPLETE      ]|###################################################| 100%
Unlinking packages ...
[      COMPLETE      ]|###################################################| 100%
Linking packages ...
[      COMPLETE      ]|###################################################| 100%
[ggoodwin at Omoikane ~]$ ipython notebook
Traceback (most recent call last):
  File "/home/ggoodwin/anaconda/bin/ipython", line 6, in <module>
    sys.exit(start_ipython())
  File "/home/ggoodwin/anaconda/lib/python2.7/site-packages/IPython/__init__.py", line 118, in start_ipython
    return launch_new_instance(argv=argv, **kwargs)
  File "/home/ggoodwin/anaconda/lib/python2.7/site-packages/traitlets/config/application.py", line 591, in launch_instance
    app.initialize(argv)
  File "<string>", line 2, in initialize
  File "/home/ggoodwin/anaconda/lib/python2.7/site-packages/traitlets/config/application.py", line 75, in catch_config_error
    return method(app, *args, **kwargs)
  File "/home/ggoodwin/anaconda/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 305, in initialize
    super(TerminalIPythonApp, self).initialize(argv)
  File "<string>", line 2, in initialize
  File "/home/ggoodwin/anaconda/lib/python2.7/site-packages/traitlets/config/application.py", line 75, in catch_config_error
    return method(app, *args, **kwargs)
  File "/home/ggoodwin/anaconda/lib/python2.7/site-packages/IPython/core/application.py", line 386, in initialize
    self.parse_command_line(argv)
  File "/home/ggoodwin/anaconda/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 300, in parse_command_line
    return super(TerminalIPythonApp, self).parse_command_line(argv)
  File "<string>", line 2, in parse_command_line
  File "/home/ggoodwin/anaconda/lib/python2.7/site-packages/traitlets/config/application.py", line 75, in catch_config_error
    return method(app, *args, **kwargs)
  File "/home/ggoodwin/anaconda/lib/python2.7/site-packages/traitlets/config/application.py", line 487, in parse_command_line
    return self.initialize_subcommand(subc, subargv)
  File "<string>", line 2, in initialize_subcommand
  File "/home/ggoodwin/anaconda/lib/python2.7/site-packages/traitlets/config/application.py", line 75, in catch_config_error
    return method(app, *args, **kwargs)
  File "/home/ggoodwin/anaconda/lib/python2.7/site-packages/traitlets/config/application.py", line 418, in initialize_subcommand
    subapp = import_item(subapp)
  File "/home/ggoodwin/anaconda/lib/python2.7/site-packages/ipython_genutils/importstring.py", line 31, in import_item
    module = __import__(package, fromlist=[obj])
ImportError: No module named notebook.notebookapp
[ggoodwin at Omoikane ~]$ 

```






More information about the yt-dev mailing list