#5295: Make Maxima not read global config files
------------------------+---------------------------------------------------
   Reporter:  mabshoff  |       Owner:  nbruin      
       Type:  defect    |      Status:  needs_review
   Priority:  major     |   Milestone:  sage-4.3.1  
  Component:  build     |    Keywords:              
Work_issues:            |      Author:              
   Upstream:  N/A       |    Reviewer:              
     Merged:            |  
------------------------+---------------------------------------------------

Comment(by mvngu):

 Here's how to replicate the errors with Sage 4.3.1.rc0. Create a hidden
 directory in your home directory called ".maxima":
 {{{
 [mv...@mod ~]$ pwd
 /home/mvngu
 [mv...@mod ~]$ mkdir .maxima
 [mv...@mod ~]$ cd .maxima/
 [mv...@mod .maxima]$ pwd
 /home/mvngu/.maxima
 }}}
 Under the hidden directory ".maxima", create the Maxima initialization
 file "maxima-init.mac" with some initialization code:
 {{{
 [mv...@mod .maxima]$ cat maxima-init.mac
 set_plot_option([gnuplot_term, aqua]);
 set_plot_option([gnuplot_pipes_term, aqua]);
 }}}
 Now load the version of Maxima that is shipped with Sage. This should
 result in some errors thrown by Maxima:
 {{{
 [mv...@mod sage-4.3.1.rc0-5295-maxima]$ pwd
 /dev/shm/mvngu/sage-4.3.1.rc0-5295-maxima
 [mv...@mod sage-4.3.1.rc0-5295-maxima]$ ./sage -maxima
 ;;; Loading
 #P"/dev/shm/mvngu/sage-4.3.1.rc0-5295-maxima/local/lib/ecl/defsystem.fas"
 ;;; Loading
 #P"/dev/shm/mvngu/sage-4.3.1.rc0-5295-maxima/local/lib/ecl/cmp.fas"
 ;;; Loading
 #P"/dev/shm/mvngu/sage-4.3.1.rc0-5295-maxima/local/lib/ecl/sysfun.lsp"
 Maxima 5.20.1 http://maxima.sourceforge.net
 using Lisp ECL 9.10.2
 Distributed under the GNU Public License. See the file COPYING.
 Dedicated to the memory of William Schelter.
 The function bug_report() provides bug reporting information.
 set_plot_option: Unknown plot option specified: gnuplot_pipes_term
  -- an error. To debug this try: debugmode(true);
 Maxima encountered a Lisp error:

  THROW: The catch MACSYMA-QUIT is undefined.

 Automatically continuing.
 To enable the Lisp debugger set *debugger-hook* to nil.
 }}}
 I might be missing something here. But after applying
 [http://trac.sagemath.org/sage_trac/attachment/ticket/5295/bug5295.patch
 bug5295.patch], I still received the same error:
 {{{
 [mv...@mod sage-4.3.1.rc0-5295-maxima]$ ./sage -b

 ----------------------------------------------------------
 sage: Building and installing modified Sage library files.


 Installing c_lib
 scons: `install' is up to date.
 Updating Cython code....
 Time to execute 0 commands: 1.50203704834e-05 seconds
 Finished compiling Cython code (time = 0.346451997757 seconds)
 running install
 running build
 running build_py
 copying sage/interfaces/maxima.py ->
 build/lib.linux-x86_64-2.6/sage/interfaces
 running build_ext
 Total time spent compiling C/C++ extensions:  0.0161008834839 seconds.
 running install_lib
 copying build/lib.linux-x86_64-2.6/sage/interfaces/maxima.py ->
 /dev/shm/mvngu/sage-4.3.1.rc0-5295-maxima/local/lib/python2.6/site-
 packages/sage/interfaces
 byte-compiling
 /dev/shm/mvngu/sage-4.3.1.rc0-5295-maxima/local/lib/python2.6/site-
 packages/sage/interfaces/maxima.py to maxima.pyc
 running install_egg_info
 Removing /dev/shm/mvngu/sage-4.3.1.rc0-5295-maxima/local/lib/python2.6
 /site-packages/sage-0.0.0-py2.6.egg-info
 Writing /dev/shm/mvngu/sage-4.3.1.rc0-5295-maxima/local/lib/python2.6
 /site-packages/sage-0.0.0-py2.6.egg-info

 real    0m1.409s
 user    0m1.050s
 sys     0m0.360s
 [mv...@mod sage-4.3.1.rc0-5295-maxima]$ ./sage -maxima
 ;;; Loading
 #P"/dev/shm/mvngu/sage-4.3.1.rc0-5295-maxima/local/lib/ecl/defsystem.fas"
 ;;; Loading
 #P"/dev/shm/mvngu/sage-4.3.1.rc0-5295-maxima/local/lib/ecl/cmp.fas"
 ;;; Loading
 #P"/dev/shm/mvngu/sage-4.3.1.rc0-5295-maxima/local/lib/ecl/sysfun.lsp"
 Maxima 5.20.1 http://maxima.sourceforge.net
 using Lisp ECL 9.10.2
 Distributed under the GNU Public License. See the file COPYING.
 Dedicated to the memory of William Schelter.
 The function bug_report() provides bug reporting information.
 set_plot_option: Unknown plot option specified: gnuplot_pipes_term
  -- an error. To debug this try: debugmode(true);
 Maxima encountered a Lisp error:

  THROW: The catch MACSYMA-QUIT is undefined.

 Automatically continuing.
 To enable the Lisp debugger set *debugger-hook* to nil.
 }}}
 It also failed when I loaded Maxima from within a Sage session:
 {{{
 [mv...@mod sage-4.3.1.rc0-5295-maxima]$ ./sage
 ----------------------------------------------------------------------
 | Sage Version 4.3.1.rc0, Release Date: 2010-01-15                   |
 | Type notebook() for the GUI, and license() for information.        |
 ----------------------------------------------------------------------
 **********************************************************************
 *                                                                    *
 * Warning: this is a prerelease version, and it may be unstable.     *
 *                                                                    *
 **********************************************************************
 sage: !maxima
 ;;; Loading
 #P"/dev/shm/mvngu/sage-4.3.1.rc0-5295-maxima/local/lib/ecl/defsystem.fas"
 ;;; Loading
 #P"/dev/shm/mvngu/sage-4.3.1.rc0-5295-maxima/local/lib/ecl/cmp.fas"
 ;;; Loading
 #P"/dev/shm/mvngu/sage-4.3.1.rc0-5295-maxima/local/lib/ecl/sysfun.lsp"
 Maxima 5.20.1 http://maxima.sourceforge.net
 using Lisp ECL 9.10.2
 Distributed under the GNU Public License. See the file COPYING.
 Dedicated to the memory of William Schelter.
 The function bug_report() provides bug reporting information.
 set_plot_option: Unknown plot option specified: gnuplot_pipes_term
  -- an error. To debug this try: debugmode(true);
 Maxima encountered a Lisp error:

  THROW: The catch MACSYMA-QUIT is undefined.

 Automatically continuing.
 To enable the Lisp debugger set *debugger-hook* to nil.
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5295#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB
-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.


Reply via email to