Changes between Initial Version and Version 52 of Ticket #5994


Ignore:
Timestamp:
10/24/16 09:23:56 (6 years ago)
Author:
jmantysalo
Comment:

Error has gone away with Singular 4.

I added doctest.

What goes to output format, I think this should be changed in all *_version() commands at once. (Assuming somebody would care, which is propably not true.)


New commits:

87c73acDoctest singular_version().

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5994

    • Property Status changed from new to needs_review
    • Property Authors changed from to Jori Mäntysalo
    • Property Cc kedlaya added
    • Property Report Upstream changed from to Completely fixed; Fix reported upstream
    • Property Priority changed from major to minor
    • Property Branch changed from to u/jmantysalo/singular_version_yielding_error
    • Property Milestone changed from sage-5.11 to sage-7.5
    • Property Keywords help.cnf added
    • Property Commit changed from to 87c73ac3a8a19d0779b9f31f21b23b629a0fe82e
  • Ticket #5994 – Description

    initial v52  
    11First of all, {{{singular.version()}}} does not work. When one starts sage and calls it, there is an error:
    2 {{{
    3 ----------------------------------------------------------------------
    4 | Sage Version 3.4.1, Release Date: 2009-04-21                       |
    5 | Type notebook() for the GUI, and license() for information.        |
    6 ----------------------------------------------------------------------
    7 sage: singular.version()
    8 ERROR: An unexpected error occurred while tokenizing input
    9 The following traceback may be corrupted or invalid
    10 The error message is: ('EOF in multi-line statement', (795, 0))
    112
    12 ---------------------------------------------------------------------------
    13 RuntimeError                              Traceback (most recent call last)
    14 
    15 /home/SimonKing/.sage/temp/sage.math.washington.edu/10897/_home_SimonKing__sage_init_sage_0.py in <module>()
    16 
    17 /usr/local/sage/local/lib/python2.5/site-packages/sage/interfaces/singular.pyc in version(self)
    18    1012         EXAMPLES:
    19    1013         """
    20 -> 1014         return singular_version()
    21    1015
    22    1016     def _function_class(self):
    23 
    24 /usr/local/sage/local/lib/python2.5/site-packages/sage/interfaces/singular.pyc in singular_version()
    25    1807     EXAMPLES:
    26    1808     """
    27 -> 1809     return singular.eval('system("--version");')
    28    1810
    29    1811
    30 
    31 /usr/local/sage/local/lib/python2.5/site-packages/sage/interfaces/singular.pyc in eval(self, x, allow_semicolon, strip, **kwds)
    32     541
    33     542         if s.find("error") != -1 or s.find("Segment fault") != -1:
    34 --> 543             raise RuntimeError, 'Singular error:\n%s'%s
    35     544
    36     545         if get_verbose() > 0:
    37 
    38 RuntimeError: Singular error:
    39    ? cannot open `help.cnf`
    40 Singular for x86_64-Linux version 3-0-4 (3044-2009031122)  Mar 11 2009 22:29:08
    41 with
    42         factory(@(#) factoryVersion = 3.0.4),libfac(3.0.4,Mar 2008),
    43         GMP(4.2),NTL(5.4.2),static readline,Plural,DBM,
    44         namespaces,dynamic modules,dynamic p_Procs,OM_CHECK=0,OM_TRACK=0,random=1241602325
    45         CC= gcc -O3 -g -fPIC -pipe -DNDEBUG -DOM_NDEBUG -Dx86_64_Linux -DHAVE_CONFIG_H,
    46         CXX= g++ -O3 -g -fPIC -pipe -DNDEBUG -DOM_NDEBUG -Dx86_64_Linux -DHAVE_CONFIG_H (4.2.4 (Ubuntu 4.2.4-1ubuntu3))
    47 argv[0]   :     Singular-3-0-4
    48 SearchPath:     /usr/local/sage/local/LIB
    49 Singular  :     /usr/local/sage/local/bin/Singular-3-0-4
    50 BinDir    :     /usr/local/sage/local/bin
    51 RootDir   :     /usr/local/sage/local
    52 DefaultDir:     /usr/local/sage/local
    53 InfoFile  :
    54 IdxFile   :
    55 HtmlDir   :
    56 ManualUrl :     http://www.singular.uni-kl.de/Manual/3-0-4
    57 ExDir     :
    58 Path      :     /usr/local/sage/local/bin:/usr/local/sage/local/polymake/bin:/usr/local/sage:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
    59 EmacsDir  :
    60 Available HelpBrowsers: dummy, emacs,
    61 Current HelpBrowser: dummy
    62    ? error occurred in STDIN line 3: `system("--version");`
    63 }}}
     3E: There was an error that is corrected with Singular 4.
    644
    655Secondly, neither {{{singular.version}}} nor {{{singular_version}}} have doc tests.