Bug 1520765 - [abrt] python3-twine: resolve(): __init__.py:857:resolve:pkg_resources.DistributionNotFound: The 'tqdm>=4.11' distribution was not found and is required by twine
Summary: [abrt] python3-twine: resolve(): __init__.py:857:resolve:pkg_resources.Distri...
Keywords:
Status: CLOSED DUPLICATE of bug 1517415
Alias: None
Product: Fedora
Classification: Fedora
Component: python-twine
Version: 27
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jeremy Cline
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:87f8455afd7e7ec46d296be61f7...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-05 05:44 UTC by Ed Marshall
Modified: 2017-12-05 16:59 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-12-05 16:59:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (3.20 KB, text/plain)
2017-12-05 05:44 UTC, Ed Marshall
no flags Details
File: cgroup (355 bytes, text/plain)
2017-12-05 05:44 UTC, Ed Marshall
no flags Details
File: cpuinfo (1.35 KB, text/plain)
2017-12-05 05:44 UTC, Ed Marshall
no flags Details
File: environ (5.32 KB, text/plain)
2017-12-05 05:44 UTC, Ed Marshall
no flags Details
File: mountinfo (3.67 KB, text/plain)
2017-12-05 05:44 UTC, Ed Marshall
no flags Details
File: namespaces (129 bytes, text/plain)
2017-12-05 05:44 UTC, Ed Marshall
no flags Details
File: open_fds (246 bytes, text/plain)
2017-12-05 05:44 UTC, Ed Marshall
no flags Details

Description Ed Marshall 2017-12-05 05:44:50 UTC
Description of problem:
Was trying to upload a release to PyPI with python3-twine, and had to manually install python3-tqdm before it would succeed. Looks like there's a spec dependency missing?

Version-Release number of selected component:
python3-twine-1.9.1-2.fc27

Additional info:
reporter:       libreport-2.9.3
cmdline:        /usr/bin/python3 /usr/bin/twine-3 upload dist/sh2dis-1.0.linux-x86_64.tar.gz
crash_function: resolve
exception_type: pkg_resources.DistributionNotFound
executable:     /usr/bin/twine-3
kernel:         4.13.16-300.fc27.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
__init__.py:857:resolve:pkg_resources.DistributionNotFound: The 'tqdm>=4.11' distribution was not found and is required by twine

Traceback (most recent call last):
  File "/usr/bin/twine-3", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3038, in <module>
    @_call_aside
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3022, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3051, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 657, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 971, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 857, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'tqdm>=4.11' distribution was not found and is required by twine

Local variables in innermost frame:
new_requirement: Requirement.parse('chardet<3.1.0,>=3.0.2')
new_requirements: []
requirers: {'twine'}
ws: <pkg_resources.WorkingSet object at 0x7f42c82c2898>
dist: None
req: Requirement.parse('tqdm>=4.11')
required_by: defaultdict(<class 'set'>, {Requirement.parse('setuptools>=0.7.0'): {'twine'}, Requirement.parse('requests-toolbelt>=0.8.0'): {'twine'}, Requirement.parse('requests!=2.15,!=2.16,>=2.5.0'): {'twine'}, Requirement.parse('pkginfo>=1.0'): {'twine'}, Requirement.parse('tqdm>=4.11'): {'twine'}, Requirement.parse('requests<3.0.0,>=2.0.1'): {'requests-toolbelt'}, Requirement.parse('urllib3<1.23,>=1.21.1'): {'requests'}, Requirement.parse('idna<2.7,>=2.5'): {'requests'}, Requirement.parse('chardet<3.1.0,>=3.0.2'): {'requests'}})
req_extras: {Requirement.parse('setuptools>=0.7.0'): (), Requirement.parse('requests-toolbelt>=0.8.0'): (), Requirement.parse('requests!=2.15,!=2.16,>=2.5.0'): (), Requirement.parse('pkginfo>=1.0'): (), Requirement.parse('tqdm>=4.11'): (), Requirement.parse('requests<3.0.0,>=2.0.1'): (), Requirement.parse('urllib3<1.23,>=1.21.1'): (), Requirement.parse('idna<2.7,>=2.5'): (), Requirement.parse('chardet<3.1.0,>=3.0.2'): ()}
to_activate: [twine 1.9.1 (/usr/lib/python3.6/site-packages), setuptools 36.2.0 (/usr/lib/python3.6/site-packages), requests-toolbelt 0.8.0 (/usr/lib/python3.6/site-packages), requests 2.18.4 (/usr/lib/python3.6/site-packages), pkginfo 1.3.2 (/usr/lib/python3.6/site-packages)]
best: {'tqdm': None}
processed: {Requirement.parse('twine==1.9.1'): True, Requirement.parse('setuptools>=0.7.0'): True, Requirement.parse('requests-toolbelt>=0.8.0'): True, Requirement.parse('requests!=2.15,!=2.16,>=2.5.0'): True, Requirement.parse('pkginfo>=1.0'): True}
extras: None
replace_conflicting: False
installer: None
env: <pkg_resources.Environment object at 0x7f42c82c2828>
requirements: [Requirement.parse('requests<3.0.0,>=2.0.1'), Requirement.parse('urllib3<1.23,>=1.21.1'), Requirement.parse('idna<2.7,>=2.5'), Requirement.parse('chardet<3.1.0,>=3.0.2')]
self: <pkg_resources.WorkingSet object at 0x7f42c82c2898>

Comment 1 Ed Marshall 2017-12-05 05:44:54 UTC
Created attachment 1363008 [details]
File: backtrace

Comment 2 Ed Marshall 2017-12-05 05:44:55 UTC
Created attachment 1363009 [details]
File: cgroup

Comment 3 Ed Marshall 2017-12-05 05:44:55 UTC
Created attachment 1363010 [details]
File: cpuinfo

Comment 4 Ed Marshall 2017-12-05 05:44:56 UTC
Created attachment 1363011 [details]
File: environ

Comment 5 Ed Marshall 2017-12-05 05:44:57 UTC
Created attachment 1363012 [details]
File: mountinfo

Comment 6 Ed Marshall 2017-12-05 05:44:58 UTC
Created attachment 1363013 [details]
File: namespaces

Comment 7 Ed Marshall 2017-12-05 05:44:59 UTC
Created attachment 1363014 [details]
File: open_fds

Comment 8 Jeremy Cline 2017-12-05 16:59:18 UTC
Hi,

Thanks for the report. There should be an update[0] in updates-testing that fixes this issue. Mind giving it a test? 

[0] https://bodhi.fedoraproject.org/updates/FEDORA-2017-d3f49dedb3

*** This bug has been marked as a duplicate of bug 1517415 ***


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