Bug or oversight ? install_scripts doesn't install script for singular or mwrank

39 views
Skip to first unread message

Emmanuel Charpentier

unread,
Jul 23, 2020, 6:13:22 AM7/23/20
to sage-devel
The install-script() utility did install gap and maxima scripts invoking sage with the relevant switches and arguments. However, it did not install scripts for singular or mwrank (which used to be available the same way).

A cursory look at install_scripts source shows that have_program can find Sage's maxima and gap, but not singular nor mwrank. The reason seems that $SAGE_LOCAL/bin has both maxima and gap, but neither singular nor mwrank.

However, both can be invoked from the command line : 

charpent@zen-book-flip:~$ sage --singular
                     SINGULAR                                 /  Development
 A Computer Algebra System for Polynomial Computations       /   version 4.1.1
                                                           0<
 by: W. Decker, G.-M. Greuel, G. Pfister, H. Schoenemann     \   Feb 2018
FB Mathematik der Universitaet, D-67653 Kaiserslautern        \
> quit;
Auf Wiedersehen.
charpent@zen-book-flip:~$ sage --mwrank
Program mwrank: uses 2-descent (via 2-isogeny if possible) to
determine the rank of an elliptic curve E over Q, and list a
set of points which generate E(Q) modulo 2E(Q).
and finally saturate to obtain generating points on the curve.
For more details see the mwrank documentation.
For details of algorithms see the author's book.

Please acknowledge use of this program in published work, 
and send problems to john.c...@gmail.com.

Version compiled on Apr  5 2020 at 08:01:18 by GCC 9.3.0
using NTL bigints but no multiprecision floating point
Using multiprecision floating point with 50 bits precision.
Enter curve: 
charpent@zen-book-flip:~$ 


Is that an oversight or is there a good reason not to install the relevant binaries-or-scripts in $SAGE_LOCAL/bin ? Or at least as command-line-invocable scripts ?

Same question for other command-line-invocable optional binaries, such as Macaulay2....

Matthias Koeppe

unread,
Jul 23, 2020, 12:31:07 PM7/23/20
to sage-devel
On Thursday, July 23, 2020 at 3:13:22 AM UTC-7, Emmanuel Charpentier wrote:
The install-script() utility did install gap and maxima scripts invoking sage with the relevant switches and arguments. However, it did not install scripts for singular or mwrank (which used to be available the same way).

A cursory look at install_scripts source shows that have_program can find Sage's maxima and gap, but not singular nor mwrank. The reason seems that $SAGE_LOCAL/bin has both maxima and gap, but neither singular nor mwrank.

If Sage did not install singular or mwrank in $SAGE_LOCAL/bin, these programs were available in your system, typically in /usr/bin or /usr/local/bin.

Could you clarify how you are using install_script, in particular into what directory you were hoping scripts to be installed, and for what use?



John H Palmieri

unread,
Jul 23, 2020, 5:54:53 PM7/23/20
to sage-devel
I think the problem, or at least one problem, with Singular is that install_scripts checks for "singular" whereas it should check for "Singular".


--
John

Emmanuel Charpentier

unread,
Jul 24, 2020, 2:18:24 AM7/24/20
to sage-devel
Indeed... Hence the question : What is the "standard" name of (s|S)ingular in Unix ? Would "Singular" be an acceptable name or the command-line script ?

BTW, Singular may have another naming problem : the Jupyter kernel installs, but czn't be used :

charpent@zen-book-flip:~$ sage -n jupyter
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.2.beta5, Release Date: 2020-07-12               │
│ Using Python 3.7.3. Type "help()" for help.                        │
└────────────────────────────────────────────────────────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Warning: this is a prerelease version, and it may be unstable.     ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
Please wait while the Sage Jupyter Notebook server starts...
[I 08:13:51.909 NotebookApp] Using MathJax: nbextensions/mathjax/MathJax.js
[I 08:13:52.427 NotebookApp] Serving notebooks from local directory: /home/charpent
[I 08:13:52.427 NotebookApp] The Jupyter Notebook is running at:
[I 08:13:52.427 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 08:13:52.476 NotebookApp] 
    
    To access the notebook, open this file in a browser:
        file:///run/user/1000/jupyter/nbserver-342480-open.html
    Or copy and paste one of these URLs:
[I 08:14:01.238 NotebookApp] Creating new notebook in 
[I 08:14:03.439 NotebookApp] Kernel started: 8418e993-2a40-46fb-bc34-b0634fae837f
/usr/bin/python: No module named jupyter_kernel_singular
[I 08:14:06.427 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports
/usr/bin/python: No module named jupyter_kernel_singular
[I 08:14:09.442 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports
/usr/bin/python: No module named jupyter_kernel_singular
[I 08:14:12.455 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports
/usr/bin/python: No module named jupyter_kernel_singular
[I 08:14:15.471 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports
/usr/bin/python: No module named jupyter_kernel_singular
[W 08:14:18.484 NotebookApp] KernelRestarter: restart failed
[W 08:14:18.485 NotebookApp] Kernel 8418e993-2a40-46fb-bc34-b0634fae837f died, removing from map.
[W 08:15:03.605 NotebookApp] Timeout waiting for kernel_info reply from 8418e993-2a40-46fb-bc34-b0634fae837f
[E 08:15:03.609 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: 8418e993-2a40-46fb-bc34-b0634fae837f)

I have no clue about this one...

Emmanuel Charpentier

unread,
Jul 24, 2020, 4:32:05 AM7/24/20
to sage-devel
This one is different, and already known (see this Github issue.
Reply all
Reply to author
Forward
0 new messages