Bug 1432165

Summary: doesn't this package need a python "enum-compat"?
Product: [Fedora] Fedora Reporter: Brian J. Murrell <brian>
Component: python-zeroconfAssignee: Miro Hrončok <mhroncok>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: brian, mhroncok, pbrobinson, python-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-zeroconf-0.18.0-2.fc27 python-zeroconf-0.18.0-2.fc25 python-zeroconf-0.18.0-2.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-24 18:55:11 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 Brian J. Murrell 2017-03-14 17:05:14 UTC
I'm certainly not a python expert, but when trying to use a package that requires python-zeroconf, I'm getting an error:

Traceback (most recent call last):
  File "/bin/pulseaudio-dlna", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2958, in <module>
    @_call_aside
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2944, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2971, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 635, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 943, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 829, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'enum-compat' distribution was not found and is required by zeroconf

This is happening with python2-zeroconf-0.18.0-1.fc25.noarch which is a rebuild of https://admin.fedoraproject.org/pkgdb/package/rpms/python-zeroconf/ on F25.

The setup.py for zeroconf-0.18.0.tar.gz certainly does say:

    install_requires=[
        'enum-compat',
        'netifaces',
        'six',
    ],

Comment 1 Miro Hrončok 2017-03-14 19:05:55 UTC
We don't have enum-compat in Fedora, because it's just a no-op for python3 and just brings enum34 for python2. I guess we'll need to patch it out from setup.py.

Comment 2 Miro Hrončok 2017-03-14 19:15:04 UTC
Try:

    sudo dnf update https://kojipkgs.fedoraproject.org//work/tasks/4605/18384605/python2-zeroconf-0.18.0-2.fc25.noarch.rpm

Does it fix your problem?

Comment 3 Brian J. Murrell 2017-03-14 19:20:16 UTC
Yes, it seems to.  Thanks!

Comment 4 Miro Hrončok 2017-03-14 20:32:35 UTC
Shall I build this in F25 as well, so you don't need to rebuild it yourself?

Comment 5 Fedora Update System 2017-03-14 20:37:49 UTC
python-zeroconf-0.18.0-2.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-b2807eddcd

Comment 6 Fedora Update System 2017-03-15 04:24:38 UTC
python-zeroconf-0.18.0-2.fc26 has been pushed to the Fedora 26 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-b2807eddcd

Comment 7 Brian J. Murrell 2017-03-15 10:50:05 UTC
(In reply to Miro Hrončok from comment #4)
> Shall I build this in F25 as well, so you don't need to rebuild it yourself?

I got it from the koji build in comment #2, but it might be nice to have it in F25 for others.

Comment 8 Fedora Update System 2017-03-15 12:51:55 UTC
python-zeroconf-0.18.0-2.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-7ea7818e6e

Comment 9 Fedora Update System 2017-03-16 23:20:26 UTC
python-zeroconf-0.18.0-2.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-7ea7818e6e

Comment 10 Miro Hrončok 2017-03-18 13:10:59 UTC
Could you test and add karma? https://bodhi.fedoraproject.org/updates/FEDORA-2017-7ea7818e6e

Comment 11 Fedora Update System 2017-03-24 18:55:11 UTC
python-zeroconf-0.18.0-2.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2017-04-01 17:05:56 UTC
python-zeroconf-0.18.0-2.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.