Bug 1530098 - entrypoints version issue
Summary: entrypoints version issue
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-entrypoints
Version: 28
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Mukundan Ragavan
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-01 23:41 UTC by Jerry James
Modified: 2018-04-08 05:53 UTC (History)
3 users (show)

Fixed In Version: python-entrypoints-0.2.3-5.fc27
Clone Of:
Environment:
Last Closed: 2018-04-08 05:53:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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