Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 594402 - jupyter_client ImportError: No module named pathlib2
Summary: jupyter_client ImportError: No module named pathlib2
Status: RESOLVED DUPLICATE of bug 593990
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-19 17:56 UTC by John Stile
Modified: 2016-09-22 06:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Stile 2016-09-19 17:56:38 UTC
I jupyter requires dev-python/pathlib2, but not automatically installed as a dependency. 

After installing pathlib2 everything works.

jupyter-console 
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/jupyter-console", line 2, in <module>
    from jupyter_console import app
  File "/usr/lib64/python2.7/site-packages/jupyter_console/app.py", line 20, in <module>
    from IPython.utils.warn import error
  File "/usr/lib64/python2.7/site-packages/IPython/__init__.py", line 49, in <module>
    from .terminal.embed import embed
  File "/usr/lib64/python2.7/site-packages/IPython/terminal/embed.py", line 15, in <module>
    from IPython.core.magic import Magics, magics_class, line_magic
  File "/usr/lib64/python2.7/site-packages/IPython/core/magic.py", line 22, in <module>
    from IPython.core import oinspect
  File "/usr/lib64/python2.7/site-packages/IPython/core/oinspect.py", line 40, in <module>
    from IPython.utils.text import indent
  File "/usr/lib64/python2.7/site-packages/IPython/utils/text.py", line 21, in <module>
    from pathlib2 import Path
ImportError: No module named pathlib2


jupyter-qtconsole
[JupyterQtConsoleApp] WARNING | Native kernel (python2) is not available
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/jupyter-qtconsole", line 5, in <module>
    main()
  File "/usr/lib64/python2.7/site-packages/qtconsole/qtconsoleapp.py", line 396, in main
    JupyterQtConsoleApp.launch_instance()
  File "/usr/lib64/python2.7/site-packages/jupyter_core/application.py", line 267, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/usr/lib64/python2.7/site-packages/traitlets/config/application.py", line 595, in launch_instance
    app.initialize(argv)
  File "<string>", line 2, in initialize
  File "/usr/lib64/python2.7/site-packages/traitlets/config/application.py", line 74, in catch_config_error
    return method(app, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/qtconsole/qtconsoleapp.py", line 367, in initialize
    JupyterConsoleApp.initialize(self,argv)
  File "/usr/lib64/python2.7/site-packages/jupyter_client/consoleapp.py", line 334, in initialize
    self.init_kernel_manager()
  File "/usr/lib64/python2.7/site-packages/jupyter_client/consoleapp.py", line 288, in init_kernel_manager
    self.kernel_manager.start_kernel(**kwargs)
  File "/usr/lib64/python2.7/site-packages/jupyter_client/manager.py", line 230, in start_kernel
    kernel_cmd = self.format_kernel_cmd(extra_arguments=extra_arguments)
  File "/usr/lib64/python2.7/site-packages/jupyter_client/manager.py", line 170, in format_kernel_cmd
    cmd = self.kernel_spec.argv + extra_arguments
  File "/usr/lib64/python2.7/site-packages/jupyter_client/manager.py", line 82, in kernel_spec
    self._kernel_spec = self.kernel_spec_manager.get_kernel_spec(self.kernel_name)
  File "/usr/lib64/python2.7/site-packages/jupyter_client/kernelspec.py", line 175, in get_kernel_spec
    raise NoSuchKernel(kernel_name)
jupyter_client.kernelspec.NoSuchKernel: No such kernel named python2


eix -I jupyter
[I] dev-python/jupyter_client
     Available versions:  (~)4.1.1 (~)4.2.2 (~)4.3.0 (~)4.4.0 {test PYTHON_TARGETS="python2_7 python3_3 python3_4 python3_5"}
     Installed versions:  4.4.0(10:43:17 AM 09/19/2016)(-test PYTHON_TARGETS="python2_7 python3_4 -python3_3 -python3_5")
     Homepage:            http://jupyter.org
     Description:         Jupyter protocol implementation and client libraries

[I] dev-python/jupyter_console
     Available versions:  (~)4.0.3 (~)4.1.0 (~)4.1.1 (~)5.0.0 {doc test PYTHON_TARGETS="python2_7 python3_3 python3_4 python3_5"}
     Installed versions:  5.0.0(07:31:02 AM 09/19/2016)(-doc -test PYTHON_TARGETS="python2_7 python3_4 -python3_3 -python3_5")
     Homepage:            http://jupyter.org
     Description:         A terminal-based console frontend for Jupyter kernels

[I] dev-python/jupyter_core
     Available versions:  (~)4.0.6 (~)4.1.0 {doc test PYTHON_TARGETS="python2_7 python3_3 python3_4 python3_5"}
     Installed versions:  4.1.0(07:26:57 AM 09/19/2016)(-doc -test PYTHON_TARGETS="python2_7 python3_4 -python3_3 -python3_5")
     Homepage:            http://jupyter.org
     Description:         Core common functionality of Jupyter projects

eix dev-python/qtconsole
[I] dev-python/qtconsole
     Available versions:  (~)4.1.1 (~)4.2.0 (~)4.2.1 {doc test PYTHON_TARGETS="python2_7 python3_3 python3_4 python3_5"}
     Installed versions:  4.2.1(07:30:22 AM 09/19/2016)(-doc -test PYTHON_TARGETS="python2_7 python3_4 -python3_3 -python3_5")
     Homepage:            http://jupyter.org
     Description:         Qt-based console for Jupyter with support for rich media output
Comment 1 Marek Szuba archtester gentoo-dev 2016-09-22 06:42:33 UTC

*** This bug has been marked as a duplicate of bug 593990 ***