I am trying to test a bunch of ipython notebooks and I've been trying to do 
the same using the 'nbformat' and the 'nbconvert' libraries. 

I get the error - "No module named jupyter_client.manager" on the Travis CI 
tests and this does not happen when I run the tests locally.

The .travis.yml file has the following under *install:*
install:
  - conda create --yes -n gensim-test python=$TRAVIS_PYTHON_VERSION pip 
atlas numpy scipy
  - source activate gensim-test
  - pip install pyemd
  - pip install annoy
  - pip install testfixtures
  - pip install entrypoints
  - pip install .

What exactly should I do to remove the error in the CI tests? As in, do I 
have to separately install jupyter_client by specifying it in the 
.travis.yml file?

The error trace looks like this on the Travis CI logs:

======================================================================

ERROR: test_notebooks (gensim.test.test_notebooks.TestNotebooks)

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

Traceback (most recent call last):

  File 
"/home/travis/build/RaRe-Technologies/gensim/gensim/test/test_notebooks.py", 
line 50, in test_notebooks

    nb, errors = _notebook_run(notebook)

  File 
"/home/travis/build/RaRe-Technologies/gensim/gensim/test/test_notebooks.py", 
line 32, in _notebook_run

    ep.preprocess(nb, {'metadata': {'path': this_file_directory}})

  File 
"/home/travis/build/RaRe-Technologies/gensim/.eggs/nbconvert-5.0.0b1-py2.7.egg/nbconvert/preprocessors/execute.py",
 line 166, in preprocess

    from jupyter_client.manager import start_new_kernel

ImportError: No module named jupyter_client.manager

======================================================================

ERROR: test_notebooks (gensim.test.test_notebooks.TestNotebooks)

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

Traceback (most recent call last):

  File 
"/home/travis/build/RaRe-Technologies/gensim/gensim/test/test_notebooks.py", 
line 50, in test_notebooks

    nb, errors = _notebook_run(notebook)

  File 
"/home/travis/build/RaRe-Technologies/gensim/gensim/test/test_notebooks.py", 
line 32, in _notebook_run

    ep.preprocess(nb, {'metadata': {'path': this_file_directory}})

  File 
"/home/travis/build/RaRe-Technologies/gensim/.eggs/nbconvert-5.0.0b1-py2.7.egg/nbconvert/preprocessors/execute.py",
 line 166, in preprocess

    from jupyter_client.manager import start_new_kernel

ImportError: No module named jupyter_client.manager

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" 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/d/msgid/jupyter/c573cc50-cb28-4c52-8749-c9030416ec0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to