RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1654774 - dbus-python does not provide egg metadata in RPM
Summary: dbus-python does not provide egg metadata in RPM
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: dbus-python
Version: 8.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.1
Assignee: Josh Boyer
QA Contact: Desktop QE
URL:
Whiteboard:
: 1717400 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-29 16:21 UTC by Kevin Howell
Modified: 2021-01-04 13:56 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-05 22:27:59 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1654126 0 unspecified CLOSED The 'dbus-python' distribution was not found and is required by subscription-manager 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHBA-2019:3614 0 None None None 2019-11-05 22:28:00 UTC

Internal Links: 1654126

Description Kevin Howell 2018-11-29 16:21:18 UTC
Description of problem: As seen in bug 1654126, if an application uses setuptools entrypoints and properly declares a dependency on dbus-python, then it fails to run when dbus-python is installed via RPM. The dbus-python package isn't picked up due to missing the egg metadata.

How reproducible: 100%

Steps to Reproduce: See bug 1654126

Actual results: setuptools entrypoints cannot locate dbus-python when installed via RPM.

Expected results: setuptools entrypoints can locate dbus-python when installed via RPM.

Additional info: We will workaround for now in subscription-manager by removing dbus-python from requires.txt manually, but it seems prudent to fix this anyways.

Comment 1 Till Maas 2019-05-07 09:39:39 UTC
The bug is also present in RHEL 7.

Comment 2 Till Maas 2019-05-20 19:34:36 UTC
This was fixed in Fedora Rawhide 3 months ago: https://src.fedoraproject.org/rpms/dbus-python/c/7505b46ea4a52d8ac5cdee35c4725cc5bd808aba?branch=f30

This packaging bug is making it hard for users to install packages from PyPi that require dbus-python because pip3 does cannot recognize that the python3-dbus package provides dbus-python. Therefore it tries to compile  it from source making things unnecessary complicated:


pip3 install nmstate
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting nmstate
  Using cached https://files.pythonhosted.org/packages/7d/ce/a2d877e16ec7b1cc299f38a03e8546f6b5a521e18bbcc7b86ad31820375b/nmstate-0.0.6.tar.gz
Collecting dbus-python (from nmstate)
  Using cached https://files.pythonhosted.org/packages/3f/e7/4edb582d1ffd5ac3c84188deea32e960b5c8c0fe1da56ce70224f85ce542/dbus-python-1.2.8.tar.gz
Requirement already satisfied: jsonschema in /usr/lib/python3.6/site-packages (from nmstate)
Requirement already satisfied: PyGObject in /usr/lib64/python3.6/site-packages (from nmstate)
Requirement already satisfied: PyYAML in /usr/lib64/python3.6/site-packages (from nmstate)
Requirement already satisfied: setuptools in /usr/lib/python3.6/site-packages (from nmstate)
Requirement already satisfied: six in /usr/lib/python3.6/site-packages (from nmstate)
Installing collected packages: dbus-python, nmstate
  Running setup.py install for dbus-python ... error
    Complete output from command /usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-dg0heacj/dbus-python/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-7wrw0qrs-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    creating /tmp/pip-build-dg0heacj/dbus-python/build
    creating /tmp/pip-build-dg0heacj/dbus-python/build/temp.linux-x86_64-3.6
    checking whether make supports nested variables... no
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking for gcc... no
    checking for cc... no
    checking for cl.exe... no
    configure: error: in `/tmp/pip-build-dg0heacj/dbus-python/build/temp.linux-x86_64-3.6':
    configure: error: no acceptable C compiler found in $PATH
    See `config.log' for more details
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
[...]
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['/tmp/pip-build-dg0heacj/dbus-python/configure', '--disable-maintainer-mode', 'PYTHON=/usr/bin/python3.6', '--prefix=/tmp/pip-build-dg0heacj/dbus-python/build/temp.linux-x86_64-3.6/prefix']' returned non-zero exit status 1.

Comment 3 Till Maas 2019-06-05 12:33:30 UTC
*** Bug 1717400 has been marked as a duplicate of this bug. ***

Comment 9 errata-xmlrpc 2019-11-05 22:27:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:3614


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