Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 589110 - app-shells/thefuck requires pathlib2
Summary: app-shells/thefuck requires pathlib2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Manuel Rüger (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-18 19:25 UTC by kapsh
Modified: 2016-09-06 18:19 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 kapsh 2016-07-18 19:25:06 UTC
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.
Comment 1 Jonas Stein gentoo-dev 2016-07-19 12:33:37 UTC
https://pypi.python.org/pypi/pathlib2/
Comment 2 Manuel Rüger (RETIRED) gentoo-dev 2016-08-17 21:21:51 UTC
Seems like this only happens with <python3.4, right?
Comment 3 kapsh 2016-08-18 18:24:37 UTC
Yes, you are right. After rebuilding thefuck and required dependencies with PYTHON_TARGETS="python3_4" it works correctly.
Comment 4 Manuel Rüger (RETIRED) gentoo-dev 2016-09-04 14:05:10 UTC
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!
Comment 5 kapsh 2016-09-06 18:19:37 UTC
Fixed well, thanks for working this out!