Bug 1694426

Summary: [abrt] borgbackup: resolve(): __init__.py:786:resolve:pkg_resources.DistributionNotFound: The 'msgpack!=0.5.0,!=0.5.1,!=0.5.2,!=0.5.3,!=0.5.4,!=0.5.5,<=0.5.6,>=0.4.6' distribution was not found and is required by borgbackup
Product: [Fedora] Fedora Reporter: Jonathan Haas <jonha87>
Component: borgbackupAssignee: Persona non grata <nobody+366555>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 30CC: brett.salemink, fschwarz, leander, nobody+366555, peter.hutterer
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/01387781fdef29ccbef94149dbc14f08b14f12ec
Whiteboard: abrt_hash:e6925257fdb893afb3006d543b3d845d913b6ae5;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-04 04:41:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Jonathan Haas 2019-03-31 11:11:14 UTC
Description of problem:
Botting up system, triggering regular borgbackup script. Issue appeared after upgrading to Fedora 30 beta.

Version-Release number of selected component:
borgbackup-1.1.7-2.fc30

Additional info:
reporter:       libreport-2.10.0
cmdline:        /usr/bin/python3 /usr/bin/borg create -v --stats nasbox:/data/borg/::{hostname}-{now:%Y-%m-%d} /home/jh/
crash_function: resolve
exception_type: pkg_resources.ContextualVersionConflict
executable:     /usr/bin/borg
interpreter:    python3-3.7.2-7.fc30.x86_64
kernel:         5.0.0-300.fc30.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
__init__.py:786:resolve:pkg_resources.DistributionNotFound: The 'msgpack!=0.5.0,!=0.5.1,!=0.5.2,!=0.5.3,!=0.5.4,!=0.5.5,<=0.5.6,>=0.4.6' distribution was not found and is required by borgbackup

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 791, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (msgpack 0.6.1 (/usr/lib64/python3.7/site-packages), Requirement.parse('msgpack!=0.5.0,!=0.5.1,!=0.5.2,!=0.5.3,!=0.5.4,!=0.5.5,<=0.5.6,>=0.4.6'), {'borgbackup'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/borg", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3191, in <module>
    @_call_aside
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3175, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3204, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 585, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'msgpack!=0.5.0,!=0.5.1,!=0.5.2,!=0.5.3,!=0.5.4,!=0.5.5,<=0.5.6,>=0.4.6' distribution was not found and is required by borgbackup

Local variables in innermost frame:
self: <pkg_resources.WorkingSet object at 0x7f0ab87a07b8>
requirements: []
env: <pkg_resources.Environment object at 0x7f0ab87a0860>
installer: None
replace_conflicting: False
extras: None
processed: {Requirement.parse('borgbackup==1.1.7'): True}
best: {'borgbackup': borgbackup 1.1.7 (/usr/lib64/python3.7/site-packages), 'msgpack': None}
to_activate: [borgbackup 1.1.7 (/usr/lib64/python3.7/site-packages)]
req_extras: {Requirement.parse('msgpack!=0.5.0,!=0.5.1,!=0.5.2,!=0.5.3,!=0.5.4,!=0.5.5,<=0.5.6,>=0.4.6'): ()}
required_by: defaultdict(<class 'set'>, {Requirement.parse('msgpack!=0.5.0,!=0.5.1,!=0.5.2,!=0.5.3,!=0.5.4,!=0.5.5,<=0.5.6,>=0.4.6'): {'borgbackup'}})
req: Requirement.parse('msgpack!=0.5.0,!=0.5.1,!=0.5.2,!=0.5.3,!=0.5.4,!=0.5.5,<=0.5.6,>=0.4.6')
dist: None
ws: <pkg_resources.WorkingSet object at 0x7f0ab87a07b8>
requirers: {'borgbackup'}
new_requirements: [Requirement.parse('msgpack!=0.5.0,!=0.5.1,!=0.5.2,!=0.5.3,!=0.5.4,!=0.5.5,<=0.5.6,>=0.4.6')]
new_requirement: Requirement.parse('msgpack!=0.5.0,!=0.5.1,!=0.5.2,!=0.5.3,!=0.5.4,!=0.5.5,<=0.5.6,>=0.4.6')

Comment 1 Jonathan Haas 2019-03-31 11:11:16 UTC
Created attachment 1550097 [details]
File: backtrace

Comment 2 Jonathan Haas 2019-03-31 11:11:18 UTC
Created attachment 1550098 [details]
File: cgroup

Comment 3 Jonathan Haas 2019-03-31 11:11:19 UTC
Created attachment 1550099 [details]
File: cpuinfo

Comment 4 Jonathan Haas 2019-03-31 11:11:20 UTC
Created attachment 1550100 [details]
File: environ

Comment 5 Jonathan Haas 2019-03-31 11:11:22 UTC
Created attachment 1550101 [details]
File: mountinfo

Comment 6 Jonathan Haas 2019-03-31 11:11:23 UTC
Created attachment 1550102 [details]
File: namespaces

Comment 7 Jonathan Haas 2019-03-31 11:11:24 UTC
Created attachment 1550103 [details]
File: open_fds

Comment 8 Peter Hutterer 2019-04-04 04:41:48 UTC

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

Comment 9 brett.salemink 2019-05-02 09:11:52 UTC
*** Bug 1705424 has been marked as a duplicate of this bug. ***

Comment 10 Leander 2019-05-08 18:31:03 UTC
*** Bug 1707951 has been marked as a duplicate of this bug. ***