Bug 1663158

Summary: sage -n export --list throw DistributionNotFound exception
Product: [Fedora] Fedora Reporter: Klaus Pedersen <projectu>
Component: python-entrypointsAssignee: Mukundan Ragavan <nonamedotc>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 29CC: loganjerry, nonamedotc, paulo.cesar.pereira.de.andrade
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-04 00:51:15 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 Klaus Pedersen 2019-01-03 10:30:03 UTC
Description of problem:

sagemath's classic notebook doens't work on Fedora 29 (bug 1640890). And to
use the newer Jupyter based notebook, the classic notebooks have to be
'exported'.

Unfortunately export doesn't work either.


Version-Release number of selected component (if applicable):

sagemath.x86_64                        8.3-1.fc29


How reproducible:

Every time.


Steps to Reproduce:
1. Install sagemath and all missing dependencies (bugs 1464520, 1636759, 1657825)
2. Then enter "sage -n export --list" or "sage-export"


Actual results:
[...]
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 781, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'configparser>=3.5; python_version == "2.7"' distribution was not found and is required by entrypoints


Expected results:
admin:0         | Near-field coil OBW
admin:1         | UV auto flow
admin:2         | Band gap vs temperature
[...]


Additional info:
After many days of archlinux forums, bing, stackoverflow, etc - only one
generally approved solution was found: uninstall all python backports
packages and the configparser. 

That would uninstall half the world, including texlive, python2, etc. Anyway
I tried of desperation :-(

> $ dnf erase python2-configparser
> [...]
> Remove  286 Packages
> Freed space: 1.7 G

But is still didn't fix the problem...


This one crazy hack worked:

It occured that the error message looked strange:

>    'configparser>=3.5; python_version == "2.7"' distribution was not found
    
True enough, that exact string is found in: []/entrypoints-0.2.3.dist-info/METADATA, file:

> Requires-Python: >=2.7
> Classifier: License :: OSI Approved :: MIT License
> Requires-Dist:  configparser (>=3.5); python_version == '2.7'

Removing the Requires-Dist parameter fix the problem:

- Requires-Dist:  configparser (>=3.5); python_version == '2.7'
+ Requires-Dist:
+ # configparser (>=3.5); python_version == '2.7'

Comment 1 Jerry James 2019-01-18 21:35:21 UTC
This is not a sagemath bug.  The problem is that python2-entrypoints requires version 3.5 or greater of python2-configparser, but Fedora provides only a beta version: 3.5.0b2.  Either the entrypoints package needs to relax its version requirement on configparser or (ideally) configparser must be upgraded to the final 3.5 release or later.  See bug 1588035.

Comment 2 Fedora Update System 2019-02-22 02:48:53 UTC
python-configparser-3.7.1-1.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-b32fdf6f0a

Comment 3 Fedora Update System 2019-02-22 02:49:00 UTC
python-configparser-3.7.1-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2019-fbba0448e2

Comment 4 Fedora Update System 2019-02-23 02:02:43 UTC
python-configparser-3.7.1-1.fc29 has been pushed to the Fedora 29 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-2019-b32fdf6f0a

Comment 5 Fedora Update System 2019-02-23 02:44:55 UTC
python-configparser-3.7.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-2019-fbba0448e2

Comment 6 Fedora Update System 2019-02-23 04:55:26 UTC
python-configparser-3.7.1-2.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-b32fdf6f0a

Comment 7 Fedora Update System 2019-02-23 04:56:38 UTC
python-configparser-3.7.1-2.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2019-fbba0448e2

Comment 8 Fedora Update System 2019-02-24 01:54:06 UTC
python-configparser-3.7.1-2.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-2019-fbba0448e2

Comment 9 Fedora Update System 2019-02-24 03:25:26 UTC
python-configparser-3.7.1-2.fc29 has been pushed to the Fedora 29 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-2019-b32fdf6f0a

Comment 10 Fedora Update System 2019-03-04 00:51:15 UTC
python-configparser-3.7.1-2.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2019-03-04 01:50:56 UTC
python-configparser-3.7.1-2.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.