After updating to thefuck 3.10 it cannot start. The error message is: Traceback (most recent call last): File "/usr/lib/python-exec/python2.7/thefuck", line 5, in <module> from pkg_resources import load_entry_point File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 2927, in <module> @_call_aside File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 2913, in _call_aside f(*args, **kwargs) File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 2940, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 635, in _build_master ws.require(__requires__) File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 943, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 829, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'pathlib2' distribution was not found and is required by thefuck But there are no pathlib2 in Gentoo portage tree.
https://pypi.python.org/pypi/pathlib2/
Seems like this only happens with <python3.4, right?
Yes, you are right. After rebuilding thefuck and required dependencies with PYTHON_TARGETS="python3_4" it works correctly.
commit 56008b715e79867a6341e5009519365fa3f89259 Author: Manuel Rüger <mrueg@gentoo.org> Date: Sun Sep 4 16:03:47 2016 +0200 app-shells/thefuck: Fix dependencies for python2.7 Gentoo-Bug: 589110 Package-Manager: portage-2.3.0 Should be fixed now. Thanks for the report!
Fixed well, thanks for working this out!