In dev-python/ipython-5.1.0, trying to run ipython2 gave the standard import error for a missing module, "pathlib2". Just emerging virtual/python-pathlib-1.0 which pulled in stable dev-python/pathlib-1.0.1-r1 did the trick. Nothing in ipython-5.1.0.ebuild about pathlib. The python3 version worked fine.
I got to this issue because the matplotlib-1.5.3 ebuild was trying to build its docs for the python2 target and complained that ipython was not installed.
Steps to Reproduce:
1. don't install dev-python/pathlib
2. try to run ipython2
import error for pathlib2
*** Bug 594402 has been marked as a duplicate of this bug. ***
Thanks Tim for the report. pathlib is imported in IPython/utils/text.py . Will add it soon to the deps (currently very little time).
Author: Marius Brehler <firstname.lastname@example.org>
Date: Mon Feb 6 08:18:55 2017 +0100
dev-python/ipython: Add dependecy on pathlib