Bug 1577286 - pyasn1-modules dependency missing
Summary: pyasn1-modules dependency missing
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-google-auth
Version: 28
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alfredo Moralejo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-11 15:38 UTC by Jason Montleon
Modified: 2018-08-24 08:03 UTC (History)
2 users (show)

Fixed In Version: python-google-auth-1.1.1-1.fc28
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-08-24 08:03:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jason Montleon 2018-05-11 15:38:54 UTC
Description of problem:
google-auth requires pyasn1-modules>=0.2.1

Even though the package version is newer, it looks like pyasn1-modules package provides 0.1.5. I believe this is because the package version is tied to the parent packages python-pyasn1 version.

rpm -ql python2-pyasn1-modules
/usr/lib/python2.7/site-packages/pyasn1_modules
/usr/lib/python2.7/site-packages/pyasn1_modules-0.1.5-py2.7.egg-info

pyasn1 (0.3.7)
pyasn1-modules (0.1.5)

https://koji.fedoraproject.org/koji/buildinfo?buildID=1000474
Changelog 	* Thu Nov 16 2017 Christian Heimes <cheimes> - 0.3.7-1
- Update to upstream release 0.3.7 (#1492446)
- Update modules to 0.1.5


Version-Release number of selected component (if applicable):
yum list installed python2-google-auth python2-pyasn1 python2-pyasn1-modules 
Installed Packages
python2-google-auth.noarch                               1.3.0-2.fc28                             @fedora
python2-pyasn1.noarch                                    0.3.7-2.fc28                             @fedora
python2-pyasn1-modules.noarch                            0.3.7-2.fc28                             @fedora

How reproducible:
Always

Actual results:
Traceback (most recent call last):
  File "/usr/bin/apb", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3088, in <module>
    @_call_aside
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3072, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3101, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 576, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 589, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 778, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pyasn1-modules>=0.2.1' distribution was not found and is required by google-auth

Expected results:
python google auth dependencies are satisfied.

Additional info:
For Release 1.3.0 dependencies in the setup.py are listed here:
https://github.com/GoogleCloudPlatform/google-auth-library-python/blob/dcbf1e0af0c79f1424f03ad27b071eccfdbc80d3/setup.py#L22

Comment 1 Alfredo Moralejo 2018-08-09 14:58:15 UTC
pyasn1 build includes two different modules from different repos with different releases. the pyasn1-modules version actually included in python2-pyasn1-modules- 0.3.7-2.fc28 is 0.1.5:

https://src.fedoraproject.org/rpms/python-pyasn1/blob/5f0ec2781f84ed16a471ab1a1f8d2778c5a98e18/f/python-pyasn1.spec#_2

Updating python-pyasn1-modules to >= 0.2.1 requires bumping python-pyasn1 to >= 0.4.1 which is not yet even in rawhide and I'm pretty sure it will not be bumped in fc28, so i think the best solution is moving python-google-auth to 1.1.1 which doesn't require pyasn1-modules >= 0.2.1 and has previously tested with python-kubernetes.

Comment 2 Fedora Update System 2018-08-13 17:58:34 UTC
python-google-auth-1.1.1-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-46f231d5c8

Comment 3 Alfredo Moralejo 2018-08-13 18:01:03 UTC
I've reverted to 1.1.1 in rawhide python-google-auth-1.1.1-1.fc29 and bumped epoch https://koji.fedoraproject.org/koji/taskinfo?taskID=29052712.

I'm also updating it in fedora28 https://koji.fedoraproject.org/koji/taskinfo?taskID=29052766. Update requested in https://bodhi.fedoraproject.org/updates/FEDORA-2018-46f231d5c8 . Feel free to add feedback.

Comment 4 Fedora Update System 2018-08-14 22:41:54 UTC
python-google-auth-1.1.1-1.fc28 has been pushed to the Fedora 28 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-2018-46f231d5c8

Comment 5 Fedora Update System 2018-08-24 08:03:50 UTC
python-google-auth-1.1.1-1.fc28 has been pushed to the Fedora 28 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.