emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [babel] Maxima code blocks do not work


From: Bernd Weiss
Subject: Re: [O] [babel] Maxima code blocks do not work
Date: Mon, 27 Jun 2011 08:22:52 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11

Am 27.06.2011 04:34, schrieb Eric S Fraga:
> Bernd Weiss <address@hidden> writes:
> 
>> Dear all,
>>
>> The follwing Maxima code block does not work:
>>
>> #+begin_src maxima
>> 1+1;
>> #+end_src
>> #+results:
>> #+begin_example
>> incorrect syntax: / is not a prefix operator
>> incorrect syntax: GuM is not an infix operator
>> parser: incomplete number; missing exponent?
>>  -- an error. To debug this try: debugmode(true);
>> incorrect syntax: Too many )'s
>> incorrect syntax: Premature termination of input at $.
>> Maxima encountered a Lisp error:
>>  parser: end of file while scanning expression.
>> Automatically continuing.
>> To enable the Lisp debugger set *debugger-hook* to nil.
>> #+end_example
> 
> Strange.  I don't get this at all.  In fact, I get no output at all with
> your example.  If I change the code to:


Hi Eric,

Thanks for your answer!


> #+begin_src maxima
> a: 1+1;
> print(a);
> #+end_src
> 
> then I get:
> 
> #+results:
> : 2 
> 
> 
>> Package: Org-mode version 7.5 (release_7.5.435.gd3100)
> 
> I am running a newer version of org than you are so maybe update?  I am
> also on emacs 24.

I updated org (again, now it's Org-mode version 7.5
(release_7.5.461.g6d18)), I switched to Emacs 24 but to no avail. I also
tried to use the debugger but this does not seem to be an error...

Debug on Error enabled globally
executing Maxima code block...
executing Maxima source code block
maxima --very-quiet -r
'batchload("c:/Users/weiss/AppData/Local/Temp/babel-209000BH/maxima-20900VN1")$'
nil
Code block evaluation complete.

I also realized that the 'error message' changes every time I try to run
the code block:

#+results:
: incorrect syntax: / is not a prefix operator
: incorrect syntax: aLH is not an infix operator
: incorrect syntax: hCp is not an infix operator
: incorrect syntax: Premature termination of input at $.
: Maxima encountered a Lisp error:
:  parser: end of file while scanning expression.
: Automatically continuing.
: To enable the Lisp debugger set *debugger-hook* to nil.

This message is 'related' (see lines 3 "aLH is not an infix operator"
and 4 "hCp is not an infix operator") to the following Maxima call
("aLH/maxima-17716hCp"):

maxima --very-quiet -r
'batchload("c:/Users/weiss/AppData/Local/Temp/babel-17716aLH/maxima-17716hCp")$'
nil

Unfortunately, my elisp knowledge is too low to understand what's going
on in ob-maxima.el. Is it a MS-Windows-thing ('/' vs '\')?

To be honest, running Maxima in org in not so important for me. As long
as R works, everything is fine :-)

Thanks,

Bernd



reply via email to

[Prev in Thread] Current Thread [Next in Thread]