Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 598448 - dev-python/jupyter-1.0.0::gentoo ImportError: No module named 'IPython.paths'
Summary: dev-python/jupyter-1.0.0::gentoo ImportError: No module named 'IPython.paths'
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-29 14:44 UTC by MT
Modified: 2017-08-30 09:08 UTC (History)
1 user (show)

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 MT 2016-10-29 14:44:03 UTC
I have installed jupyter via Portage, but when I try to launch a new notebook, using the command 'jupyter notebook', I am getting this error: "ImportError: No module named 'IPython.paths'".

Here is the full trackback:

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.4/jupyter-notebook", line 9, in <module>
    load_entry_point('notebook==4.0.6', 'console_scripts', 'jupyter-notebook')()
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 542, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 2542, in load_entry_point
    return ep.load()
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 2202, in load
    return self.resolve()
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 2208, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib64/python3.4/site-packages/notebook/notebookapp.py", line 83, in <module>
    from IPython.paths import get_ipython_dir
ImportError: No module named 'IPython.paths'

I'm not sure how to fix the issue, but it seems related to this bug report from upstream: https://github.com/ipython/ipykernel/issues/22

In short, jupyter-1.0.0 requires IPython <=v3.1.0, while Portage provides only v3.2.1+.
Comment 1 Marius Brehler 2016-10-30 21:39:02 UTC
Currently the jupyter-1.0.0 metapacke isn't really functional (see bug #589750). I would recommend to install dev-python/ipython[notebook] or dev-python/notebook instead.
Comment 2 Benda Xu gentoo-dev 2017-08-30 09:08:17 UTC
Hi Toffanin, I think it is fixed in jupyter 1.0.0-r1.  Please have a test.