Bug 1537870 - [abrt] python3-mypy: resolve(): __init__.py:870:resolve:pkg_resources.DistributionNotFound: The 'psutil<5.5.0,>=5.4.0' distribution was not found and is required by mypy
Summary: [abrt] python3-mypy: resolve(): __init__.py:870:resolve:pkg_resources.Distrib...
Keywords:
Status: CLOSED DUPLICATE of bug 1534333
Alias: None
Product: Fedora
Classification: Fedora
Component: python3-mypy
Version: 27
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:69a203ce9fd488384c2f9a6f325...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-24 03:07 UTC by Ed Marshall
Modified: 2018-04-11 07:33 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-01-24 12:09:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (2.84 KB, text/plain)
2018-01-24 03:07 UTC, Ed Marshall
no flags Details
File: cgroup (355 bytes, text/plain)
2018-01-24 03:07 UTC, Ed Marshall
no flags Details
File: cpuinfo (1.38 KB, text/plain)
2018-01-24 03:07 UTC, Ed Marshall
no flags Details
File: environ (5.21 KB, text/plain)
2018-01-24 03:07 UTC, Ed Marshall
no flags Details
File: mountinfo (3.67 KB, text/plain)
2018-01-24 03:07 UTC, Ed Marshall
no flags Details
File: namespaces (129 bytes, text/plain)
2018-01-24 03:07 UTC, Ed Marshall
no flags Details
File: open_fds (242 bytes, text/plain)
2018-01-24 03:07 UTC, Ed Marshall
no flags Details

Description Ed Marshall 2018-01-24 03:07:19 UTC
Description of problem:
I ran "mypy" at a terminal command line, and it threw an error:

$ mypy 
Traceback (most recent call last):      
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 666, in _build_master
    ws.require(__requires__)            
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 984, in require
    needed = self.resolve(parse_requirements(requirements))                     
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 875, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)                
pkg_resources.ContextualVersionConflict: (psutil 5.2.2 (/usr/lib64/python3.6/site-packages), Requirement.parse('psutil<5.5.0,>=5.4.0'), {'mypy'})

During handling of the above exception, another exception occurred:             

Traceback (most recent call last):      
  File "/usr/bin/mypy", line 6, in <module>                                     
    from pkg_resources import load_entry_point                                  
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3141, in <module>
    @_call_aside    
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3125, in _call_aside
    f(*args, **kwargs)                  
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3154, in _initialize_master_working_set
    working_set = WorkingSet._build_master()                                    
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 668, in _build_master
    return cls._build_from_requirements(__requires__)                           
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 681, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())                                     
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 870, in resolve
    raise DistributionNotFound(req, requirers)                                  
pkg_resources.DistributionNotFound: The 'psutil<5.5.0,>=5.4.0' distribution was not found and is required by mypy

The error message isn't wrong, the version of python3-psutil that I have is:

$ rpm -q python3-psutil
python3-psutil-5.2.2-1.fc27.x86_64

Version-Release number of selected component:
python3-mypy-0.560-1.fc27

Additional info:
reporter:       libreport-2.9.3
cmdline:        /usr/bin/python3 /usr/bin/mypy
crash_function: resolve
exception_type: pkg_resources.ContextualVersionConflict
executable:     /usr/bin/mypy
kernel:         4.14.14-300.fc27.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
__init__.py:870:resolve:pkg_resources.DistributionNotFound: The 'psutil<5.5.0,>=5.4.0' distribution was not found and is required by mypy

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 666, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 984, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 875, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (psutil 5.2.2 (/usr/lib64/python3.6/site-packages), Requirement.parse('psutil<5.5.0,>=5.4.0'), {'mypy'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/mypy", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3141, in <module>
    @_call_aside
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3125, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3154, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 668, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 681, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 870, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'psutil<5.5.0,>=5.4.0' distribution was not found and is required by mypy

Local variables in innermost frame:
new_requirement: Requirement.parse('typed-ast<1.2.0,>=1.1.0')
new_requirements: [Requirement.parse('psutil<5.5.0,>=5.4.0'), Requirement.parse('typed-ast<1.2.0,>=1.1.0')]
requirers: {'mypy'}
ws: <pkg_resources.WorkingSet object at 0x7f284147c320>
dist: None
req: Requirement.parse('psutil<5.5.0,>=5.4.0')
required_by: defaultdict(<class 'set'>, {Requirement.parse('psutil<5.5.0,>=5.4.0'): {'mypy'}, Requirement.parse('typed-ast<1.2.0,>=1.1.0'): {'mypy'}})
req_extras: {Requirement.parse('psutil<5.5.0,>=5.4.0'): (), Requirement.parse('typed-ast<1.2.0,>=1.1.0'): ()}
to_activate: [mypy 0.560 (/usr/lib/python3.6/site-packages)]
best: {'mypy': mypy 0.560 (/usr/lib/python3.6/site-packages), 'psutil': None}
processed: {Requirement.parse('mypy==0.560'): True}
extras: None
replace_conflicting: False
installer: None
env: <pkg_resources.Environment object at 0x7f284147c240>
requirements: [Requirement.parse('typed-ast<1.2.0,>=1.1.0')]
self: <pkg_resources.WorkingSet object at 0x7f284147c320>

Comment 1 Ed Marshall 2018-01-24 03:07:23 UTC
Created attachment 1385154 [details]
File: backtrace

Comment 2 Ed Marshall 2018-01-24 03:07:24 UTC
Created attachment 1385155 [details]
File: cgroup

Comment 3 Ed Marshall 2018-01-24 03:07:25 UTC
Created attachment 1385156 [details]
File: cpuinfo

Comment 4 Ed Marshall 2018-01-24 03:07:26 UTC
Created attachment 1385157 [details]
File: environ

Comment 5 Ed Marshall 2018-01-24 03:07:27 UTC
Created attachment 1385158 [details]
File: mountinfo

Comment 6 Ed Marshall 2018-01-24 03:07:28 UTC
Created attachment 1385159 [details]
File: namespaces

Comment 7 Ed Marshall 2018-01-24 03:07:29 UTC
Created attachment 1385160 [details]
File: open_fds

Comment 8 Gwyn Ciesla 2018-01-24 12:09:16 UTC

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


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