Bug 1530098

Summary: entrypoints version issue
Product: [Fedora] Fedora Reporter: Jerry James <loganjerry>
Component: python-entrypointsAssignee: Mukundan Ragavan <nonamedotc>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: jan.vesely, nonamedotc, quantum.analyst
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-entrypoints-0.2.3-5.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-08 05:53:12 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 Jerry James 2018-01-01 23:41:11 UTC
Description of problem:
The entrypoints package does not make its version number known to setuptools somehow.  I admit that I don't understand the mechanism at work here, but it prevents python-nbconvert from working:

$ jupyter nbconvert --to html example_notebook.ipynb --stdout > _build/html/example_notebook.html
Traceback (most recent call last):
  File "/usr/bin/jupyter-nbconvert", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3141, in <module>
    @_call_aside
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3125, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3154, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 666, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 984, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 870, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'entrypoints>=0.2.2' distribution was not found and is required by nbconvert

Version-Release number of selected component (if applicable):
python-entrypoints-0.2.3-2.fc27

How reproducible:
Always

Steps to Reproduce:
1. Attempt to use nbconvert
2.
3.

Actual results:
The nbconvert invocation fails with the traceback shown above.

Expected results:
Since entrypoints 0.2.3 is >= 0.2.2, this should work.

Additional info:

Comment 1 Jerry James 2018-01-01 23:49:09 UTC
It seems that the egg-info is missing.  See a related bug filed on another Linux distribution: https://bugs.archlinux.org/task/52477.

Comment 2 Mukundan Ragavan 2018-01-02 22:17:41 UTC
Thanks for the Arch bug report. I will try to fix it or report upstream.

Comment 3 Elliott Sales de Andrade 2018-01-03 04:14:27 UTC
It's caused by missing *.dist-info directory.

https://src.fedoraproject.org/rpms/python-entrypoints/pull-request/1

Comment 4 Mukundan Ragavan 2018-01-04 02:27:02 UTC
(In reply to Elliott Sales de Andrade from comment #3)
> It's caused by missing *.dist-info directory.
> 
> https://src.fedoraproject.org/rpms/python-entrypoints/pull-request/1

Thank you Elliot!

Jerry, can you test this?

https://koji.fedoraproject.org/koji/buildinfo?buildID=1013159

If this works, I will push this as update.

Comment 5 Jerry James 2018-01-04 05:07:53 UTC
Yes, indeed, that works.  Thank you, Elliott!

Comment 6 Fedora End Of Life 2018-02-20 15:26:35 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.

Comment 7 Elliott Sales de Andrade 2018-02-26 05:46:01 UTC
This is fixed in Fedora 27+; don't know if it needs to be fixed in 26.

Comment 8 Jan Vesely 2018-03-29 17:47:35 UTC
Any ETA of when this reaches F27? the latest version is still entrypoints-0.2.3-2.fc27.

Thank you.

Comment 9 Fedora Update System 2018-03-29 22:17:27 UTC
python-entrypoints-0.2.3-5.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-13b54a0aba

Comment 10 Fedora Update System 2018-03-30 14:48:22 UTC
python-entrypoints-0.2.3-5.fc27 has been pushed to the Fedora 27 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-13b54a0aba

Comment 11 Fedora Update System 2018-04-08 05:53:12 UTC
python-entrypoints-0.2.3-5.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.