Bug 1676388 - zanata-python-client cannot be install on current rawhide
Summary: zanata-python-client cannot be install on current rawhide
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: zanata-python-client
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Sundeep Anand
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-12 07:34 UTC by Vojtech Trefny
Modified: 2019-03-29 19:10 UTC (History)
9 users (show)

Fixed In Version: zanata-python-client-1.5.3-1.fc30
Clone Of:
Environment:
Last Closed: 2019-03-29 19:10:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Vojtech Trefny 2019-02-12 07:34:57 UTC
Description of problem:

Problem: cannot install the best candidate for the job
  - nothing provides python2.7dist(ordereddict) needed by python2-zanata-client-1.5.2-4.fc30.noarch

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

1.5.2-4.fc30

Comment 1 Parag Nemade 2019-03-05 16:43:42 UTC
*** Bug 1676408 has been marked as a duplicate of this bug. ***

Comment 2 Parag Nemade 2019-03-05 16:44:52 UTC
*** Bug 1685550 has been marked as a duplicate of this bug. ***

Comment 3 Parag Nemade 2019-03-06 04:44:31 UTC
As per bug 1685550, zanata-python-client will be ported to python3 code.

Comment 4 Miro Hrončok 2019-03-07 06:36:32 UTC
(In reply to Jens Petersen from comment bz1685550#8)
> Erm, how to fix bug 1676388 without fixing this bug?

The python2.7dist(ordereddict) require is generated from upstream metadata.
Python 2.7 already has OrderedDict (from collections import OrderedDict) and the Fedora package never needed anything else.

Upstream code has:

https://github.com/zanata/zanata-python-client/blob/1b23b9dcdd86241624d7b53606670cc81e01ad72/zanataclient/parseconfig.py#L37

try:
    from collections import OrderedDict
except ImportError:
    from ordereddict import OrderedDict

Yet it says it needs ordereddict:

https://github.com/zanata/zanata-python-client/blob/1b23b9dcdd86241624d7b53606670cc81e01ad72/setup.py#L30
https://github.com/zanata/zanata-python-client/blob/1b23b9dcdd86241624d7b53606670cc81e01ad72/requirements.txt#L3

A fix is to patch setup.py not to put ordereddict into install_requires on Python >= 2.7 or use PEP 508:

https://www.python.org/dev/peps/pep-0508/

Should be:

ordereddict;python_version<"2.7"

instead of orderreddict.

Comment 5 Fedora Update System 2019-03-07 11:52:59 UTC
zanata-python-client-1.5.3-1.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-0db4228f6a

Comment 6 Fedora Update System 2019-03-07 18:37:28 UTC
zanata-python-client-1.5.3-1.fc30 has been pushed to the Fedora 30 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-2019-0db4228f6a

Comment 7 Fedora Update System 2019-03-29 19:10:51 UTC
zanata-python-client-1.5.3-1.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.


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