Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1636759

Summary: sage does not start: libSingular not found
Product: [Fedora] Fedora Reporter: pav
Component: sagemathAssignee: Paulo Andrade <paulo.cesar.pereira.de.andrade>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: abaa123459, hanspetersorge, mike, minimoa, paulo.cesar.pereira.de.andrade, projectu, tom.tdw
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sagemath-8.3-2.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-28 03:44:34 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 pav 2018-10-07 12:43:09 UTC
Description of problem:

When trying to run `sage` on Fedora 29:

$ sage 
Traceback (most recent call last):
  File "/usr/lib64/sagemath/local/bin/sage-ipython", line 9, in <module>
    from sage.misc.banner import banner
  File "/usr/lib64/python2.7/site-packages/sage/misc/banner.py", line 16, in <module>
    from sage.env import (SAGE_VERSION, SAGE_DATE, SAGE_VERSION_BANNER,
  File "/usr/lib64/python2.7/site-packages/sage/env.py", line 186, in <module>
    "libSingular not found--a working Singular install in $SAGE_LOCAL "
RuntimeError: libSingular not found--a working Singular install in $SAGE_LOCAL is required for Sage to work

The reason is that /usr/bin/sage contains

export SINGULAR_SO=/usr/lib64/libSingular-4.1.1.so

The Singular rpm package installed, as apparently determined by dnf
based on what `sagemath` requires is
Singular-libs-4.1.0p3-14.fc29.x86_64 

This Singular package only contains /usr/lib64/libSingular-4.1.0.so
I don't see Singular-libs 4.1.1 available in the repos.

Editing /usr/bin/sage and changing the SO name seems to fix it.

Version-Release number of selected component (if applicable):
sagemath-8.3-1.fc29.x86_64
Singular-libs-4.1.0p3-14.fc29.x86_64

How reproducible:
Appeared after upgrading from Fedora 28 -> Fedora 29 Beta
with dnf system-upgrade.

Steps to Reproduce:
See above.

Actual results:
`sage` does not start, fails with error.

Expected results:
`sage` should be able to start.

Comment 1 Thomas Wright 2018-10-15 11:33:33 UTC
I am also experiencing this error when trying to run `sage` on Fedora 29 Beta and can confirm that editing /usr/bin/sage as stated above fixes the issue.

Comment 2 Klaus Pedersen 2018-10-19 05:48:41 UTC
Yes, workaround works.

Funny though, there is already a non-functional 'fix' in .../site-packages/sage/eny.py +180:

   # library name changed from libsingular to libSingular btw 3.x and 4.x
    SINGULAR_SO = '/usr/lib64/libSingular-4.1.0.so'

Unfortunately, notebook() doesn't work. Bug 1640890

Comment 3 Martin Albion 2018-11-11 21:33:13 UTC
I just finished a clean install of Fedora 29.  Editing the Singular version from 4.1.1.so to 4.1.0.so resulted in sage launching successfully.  Additionally I needed to install python2-cypari2.

Comment 4 H.-P. Sorge 2018-11-14 23:24:06 UTC
Still fails to start sarge.


in:
/opt/SageMath/local/lib/python2.7/site-packages/sage/env.pyc

Line 182 + 184:
if not SINGULAR_SO or not os.path.exists(SINGULAR_SO):

changed to:
#_add_variable_or_fallback('SINGULAR_SO', SINGULAR_SO)
if not SINGULAR_SO or not os.path.isfile(SINGULAR_SO):

fixes it.

Comment 5 abaa123459 2018-12-31 06:02:50 UTC
I experienced the same issue and editing the /usr/bin/sage file fixed the issue. Thank you.

Comment 6 Fedora Update System 2019-01-19 21:23:49 UTC
sagemath-8.3-2.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-f51ce43c89

Comment 7 Fedora Update System 2019-01-20 02:34:01 UTC
sagemath-8.3-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-f51ce43c89

Comment 8 Fedora Update System 2019-01-28 03:44:34 UTC
sagemath-8.3-2.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.