Bug 1720235 - Unable to install python3-pygatt: nothing provides python3.7dist(enum-compat)
Summary: Unable to install python3-pygatt: nothing provides python3.7dist(enum-compat)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pygatt
Version: 30
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fabian Affolter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-13 13:00 UTC by Tomas Smetana
Modified: 2019-06-28 16:33 UTC (History)
1 user (show)

Fixed In Version: python-pygatt-4.0.3-2.fc30
Clone Of:
Environment:
Last Closed: 2019-06-28 16:33:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Proposed patch (389 bytes, patch)
2019-06-13 15:28 UTC, Tomas Smetana
no flags Details | Diff

Description Tomas Smetana 2019-06-13 13:00:46 UTC
Description of problem:
python3-pygatt can't be installed on Fedora 30.

Version-Release number of selected component (if applicable):
python-pygatt-4.0.3-1.fc3

How reproducible:
Always

Steps to Reproduce:
1. dnf install python3-pygatt

Actual results:

Error: 
 Problem: conflicting requests
  - nothing provides python3.7dist(enum-compat) needed by python3-pygatt-4.0.3-1.fc30.noarch
  - nothing provides python3.7dist(enum-compat) needed by python3-pygatt-3.2.0-7.fc30.noarch
(try to add '--skip-broken' to skip uninstallable packages)

Expected results:
Installation successful

Comment 1 Tomas Smetana 2019-06-13 15:25:18 UTC
This is caused by the automatic requires generator. It parses the setup.py file and turns all the install_requires into dependencies. The 'enum-compat' module should not be required for python newer than 3.4, so it should be safe to patch this out.

Comment 2 Tomas Smetana 2019-06-13 15:28:57 UTC
Created attachment 1580346 [details]
Proposed patch

Comment 3 Tomas Smetana 2019-06-14 07:51:36 UTC
And... thinking about it, maybe disabling the dependency generator (https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_automatically_generated_dependencies) would be a "cleaner" solution.

Comment 4 Fedora Update System 2019-06-25 14:24:09 UTC
FEDORA-2019-3406b0b8de has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-3406b0b8de

Comment 5 Fedora Update System 2019-06-26 02:48:02 UTC
python-pygatt-4.0.3-2.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-3406b0b8de

Comment 6 Fedora Update System 2019-06-28 16:33:38 UTC
python-pygatt-4.0.3-2.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.