Bug 1422211

Summary: mycli dependency issue
Product: [Fedora] Fedora Reporter: Daniël van Eeden <redhat-bugzilla>
Component: mycliAssignee: Terje Røsten <terje.rosten>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 25CC: dick, fale, terje.rosten
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: mycli-1.8.1-4.fc24 mycli-1.8.1-4.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-26 00:18:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniël van Eeden 2017-02-14 18:30:44 UTC
Description of problem:

MyCLI doesn't work because sqlparse is newer than 0.2.1

How reproducible:

$ mycli 
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 635, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 943, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 834, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (sqlparse 0.2.2 (/usr/lib/python3.5/site-packages), Requirement.parse('sqlparse<0.2.2,>=0.2.0'), {'mycli'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/mycli", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2958, in <module>
    @_call_aside
  File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2944, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2971, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 637, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 650, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 829, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'sqlparse<0.2.2,>=0.2.0' distribution was not found and is required by mycli

Version-Release number of selected component (if applicable):

$ rpm -q mycli python3-sqlparse
mycli-1.8.1-1.fc25.noarch
python3-sqlparse-0.2.2-1.fc25.noarch

Comment 1 Terje Røsten 2017-02-14 18:47:08 UTC
Thanks for report, upstream seems to have a fix, will have look.

Comment 2 Fedora Update System 2017-02-14 20:11:08 UTC
mycli-1.8.1-4.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-9695d54eb1

Comment 3 Fedora Update System 2017-02-14 20:11:16 UTC
mycli-1.8.1-4.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-b4b288ff19

Comment 4 Dick Marinus 2017-02-15 19:38:02 UTC
This patch has a follow up commit:
https://github.com/dbcli/mycli/commit/54a8206c5187347a6a6f6ae4db994e0d7864cbcc

I'll test tomorrow if this is required, thanks for fixing this!

Comment 5 Dick Marinus 2017-02-16 08:38:51 UTC
Ok, you can skip that patch, no problems here.

Comment 6 Fedora Update System 2017-02-17 00:51:10 UTC
mycli-1.8.1-4.fc24 has been pushed to the Fedora 24 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-2017-9695d54eb1

Comment 7 Fedora Update System 2017-02-17 15:24:22 UTC
mycli-1.8.1-4.fc25 has been pushed to the Fedora 25 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-2017-b4b288ff19

Comment 8 Fedora Update System 2017-02-26 00:18:46 UTC
mycli-1.8.1-4.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2017-02-26 01:35:28 UTC
mycli-1.8.1-4.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.