Bug 1585120 - python2-futures is needed by python2-isort but it's not required
Summary: python2-futures is needed by python2-isort but it's not required
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-isort
Version: 28
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-01 10:17 UTC by Sandro Bonazzola
Modified: 2018-06-05 13:44 UTC (History)
2 users (show)

Fixed In Version: python-isort-4.3.4-2.fc28
Clone Of:
Environment:
Last Closed: 2018-06-05 13:44:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Sandro Bonazzola 2018-06-01 10:17:07 UTC
python2-futures is needed by python2-isort but it's not required:


$ rpm -q --requires python2-isort
/usr/bin/python2
python(abi) = 2.7
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1

$ isort test.py 
Traceback (most recent call last):
  File "/usr/bin/isort", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3095, in <module>
    @_call_aside
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3079, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3108, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 570, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 888, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 774, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'futures' distribution was not found and is required by isort


$ cat test.py
#!/usr/bin/python

import os
print("Test")



# dnf install python2-futures solves the issue.

Comment 1 Sandro Bonazzola 2018-06-01 10:31:19 UTC
Patch already pushed at
https://src.fedoraproject.org/rpms/python-isort/pull-request/2

Comment 2 Fedora Update System 2018-06-01 16:13:22 UTC
python-isort-4.3.4-2.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-809754f12f

Comment 3 Fedora Update System 2018-06-02 22:33:31 UTC
python-isort-4.3.4-2.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-809754f12f

Comment 4 Fedora Update System 2018-06-05 13:44:05 UTC
python-isort-4.3.4-2.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.