Bug 1636447

Summary: [abrt] radicale: resolve(): __init__.py:781:resolve:pkg_resources.DistributionNotFound: The 'python-dateutil==2.6.1' distribution was not found and is required by Radicale
Product: [Fedora] Fedora Reporter: Christian Stadelmann <fedora>
Component: radicaleAssignee: Juan Orti Alcaine <jorti>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: jorti, opensource, pb
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/f67b8b8ed3e2a7bf45eafe21e2d402f9b3beca7a
Whiteboard: abrt_hash:25e36c26fdf1f49330b8182fbe40f59bb6ea0836;VARIANT_ID=workstation;
Fixed In Version: radicale-2.1.9-6.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 17:24:45 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: cpuinfo
none
File: namespaces none

Description Christian Stadelmann 2018-10-05 12:19:12 UTC
Description of problem:
Every time I start radicale (i.e. on every boot because it is set to auto-start on boot), radicale crashes.

Please do not use exact versions in the code. If you insist on doing so, please also use exact versions in RPM dependencies.

Version-Release number of selected component:
radicale-2.1.9-5.fc29

Additional info:
reporter:       libreport-2.9.5
cmdline:        /usr/bin/python3 /usr/bin/radicale --daemon --pid=/var/run/radicale/radicale.pid
crash_function: resolve
exception_type: pkg_resources.ContextualVersionConflict
executable:     /usr/bin/radicale
interpreter:    python3-3.7.0-9.fc29.x86_64
kernel:         4.18.11-301.fc29.x86_64
runlevel:       unknown
type:           Python3

Truncated backtrace:
__init__.py:781:resolve:pkg_resources.DistributionNotFound: The 'python-dateutil==2.6.1' distribution was not found and is required by Radicale

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 578, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 895, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (python-dateutil 2.7.0 (/usr/lib/python3.7/site-packages), Requirement.parse('python-dateutil==2.6.1'), {'Radicale'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/radicale", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3112, in <module>
    @_call_aside
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3096, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3125, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 580, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 593, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 781, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'python-dateutil==2.6.1' distribution was not found and is required by Radicale

Local variables in innermost frame:
self: <pkg_resources.WorkingSet object at 0x7fa88a9956d8>
requirements: [Requirement.parse('vobject==0.9.5')]
env: <pkg_resources.Environment object at 0x7fa88a977ef0>
installer: None
replace_conflicting: False
extras: None
processed: {Requirement.parse('Radicale==2.1.9'): True}
best: {'radicale': Radicale 2.1.9 (/usr/lib/python3.7/site-packages), 'python-dateutil': None}
to_activate: [Radicale 2.1.9 (/usr/lib/python3.7/site-packages)]
req_extras: {Requirement.parse('python-dateutil==2.6.1'): (), Requirement.parse('vobject==0.9.5'): ()}
required_by: defaultdict(<class 'set'>, {Requirement.parse('python-dateutil==2.6.1'): {'Radicale'}, Requirement.parse('vobject==0.9.5'): {'Radicale'}})
req: Requirement.parse('python-dateutil==2.6.1')
dist: None
ws: <pkg_resources.WorkingSet object at 0x7fa88a9956d8>
requirers: {'Radicale'}
new_requirements: [Requirement.parse('python-dateutil==2.6.1'), Requirement.parse('vobject==0.9.5')]
new_requirement: Requirement.parse('vobject==0.9.5')

Comment 1 Christian Stadelmann 2018-10-05 12:19:17 UTC
Created attachment 1490822 [details]
File: backtrace

Comment 2 Christian Stadelmann 2018-10-05 12:19:19 UTC
Created attachment 1490823 [details]
File: cpuinfo

Comment 3 Christian Stadelmann 2018-10-05 12:19:20 UTC
Created attachment 1490824 [details]
File: namespaces

Comment 4 Christian Stadelmann 2018-10-05 12:20:15 UTC
Installed versions of dateutil:

$ rpm -qa | grep dateutil
python3-dateutil-2.7.0-3.fc29.noarch
python2-dateutil-2.7.0-3.fc29.noarch

Comment 5 Christian Stadelmann 2018-10-08 08:02:00 UTC
Similar problem has been detected:

I was running a third instance of dnf as user root and got this backtrace.

reporter:       libreport-2.9.5
cmdline:        /usr/bin/python3 /usr/bin/radicale --daemon --pid=/var/run/radicale/radicale.pid
crash_function: resolve
exception_type: pkg_resources.ContextualVersionConflict
executable:     /usr/bin/radicale
interpreter:    python3-3.7.0-9.fc29.x86_64
kernel:         4.18.12-300.fc29.x86_64
package:        radicale-2.1.9-5.fc29
reason:         __init__.py:781:resolve:pkg_resources.DistributionNotFound: The 'python-dateutil==2.6.1' distribution was not found and is required by Radicale
runlevel:       unknown
type:           Python3

Comment 6 Christian Stadelmann 2018-10-08 08:03:30 UTC
(In reply to Christian Stadelmann from comment #5)
> Similar problem has been detected:
> 
> I was running a third instance of dnf as user root and got this backtrace.
> 
> reporter:       libreport-2.9.5
> cmdline:        /usr/bin/python3 /usr/bin/radicale --daemon
> --pid=/var/run/radicale/radicale.pid
> crash_function: resolve
> exception_type: pkg_resources.ContextualVersionConflict
> executable:     /usr/bin/radicale
> interpreter:    python3-3.7.0-9.fc29.x86_64
> kernel:         4.18.12-300.fc29.x86_64
> package:        radicale-2.1.9-5.fc29
> reason:         __init__.py:781:resolve:pkg_resources.DistributionNotFound:
> The 'python-dateutil==2.6.1' distribution was not found and is required by
> Radicale
> runlevel:       unknown
> type:           Python3

Wrong comment, please ignore.

The crash still happens every time I start radicale.

Comment 7 Christian Stadelmann 2018-10-11 11:34:39 UTC
An update to radicale 2.1.10 would fix this bug for the other dependency (vobject) at least. Sadly, radicale 2.1.10 is currently blocked by missing python-dateutil updates (bug #1560212) which is in turn blocked by an unresponsive maintainer.

Comment 8 Fedora Update System 2018-10-11 12:05:58 UTC
radicale-2.1.9-6.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-8814670759

Comment 9 Juan Orti Alcaine 2018-10-11 12:07:15 UTC
I've patched radicale to not be so strict about the versions. Could you try the update to see if it works correctly?

Comment 10 Fedora Update System 2018-10-11 19:00:09 UTC
radicale-2.1.9-6.fc29 has been pushed to the Fedora 29 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-8814670759

Comment 11 Fedora Update System 2018-10-30 17:24:45 UTC
radicale-2.1.9-6.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.