wxMaxima-developers / wxmaxima

A gui for the computer algebra system Maxima built with wxWidgets
https://wxMaxima-developers.github.io/wxmaxima/
Other
474 stars 98 forks source link

Maxima Portable does not plot #1028

Open BenLis213 opened 6 years ago

BenLis213 commented 6 years ago

Hello,

I'm new to portable programs, but I just installed Maxima to my USB stick and was testing its plotting features. I encountered an error, notifying me of the following:

Maxima encountered a Lisp error: OPEN: Directory #P"C:\Users\UsernameHere\AppData\Local\Temp\MaximaPortableTemp\" does not exist Automatically continuing. To enable the Lisp debugger set debugger-hook to nil.

This concerns me for a couple of reasons:

  1. I checked my PC and was able to access the folder which it says does not exist

  2. I thought that the files which a portable app could make would be via the portable drive, and not on the actual computer. Isn't that the point of the portability?

At any rate I'm hoping to get a fix soon, because I really only use Maxima for plotting purposes. Is there something incorrect in the installation? Is there a way to set up a temp folder on the USB stick so that it doesn't write on the PC?

TIA

PS: Forgot to mention

wxMaxima version: 17.10.1 Maxima version: 5.41.0a_dirty Maxima build date: 2017-10-23 00:00:36 Host type: i686-w64-mingw32 System type: gcc -mno-cygwin -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2 -fexpensive-optimizations -falign-functions=4 -D_WIN32 -DENABLE_UNICODE -I/usr/local/include -DDYNAMIC_FFI -I. -L/usr/local/lib -lintl /usr/local/lib/libreadline.dll.a -L/usr/local/lib -ltermcap /usr/local/lib/libavcall.a /usr/local/lib/libcallback.a -luser32 -lws2_32 -lole32 -loleaut32 -luuid -liconv -L/usr/local/lib -lsigsegv libgnu_cl.a SAFETY=0 HEAPCODES STANDARD_HEAPCODES GENERATIONAL_GC SPVW_BLOCKS SPVW_MIXED TRIVIALMAP_MEMORY libsigsegv 2.8 libiconv 1.13 libreadline 6.0 GNU C 3.4.5 (mingw-vista special r3) PC/386

gunterkoenigsmann commented 6 years ago

That is a bug in the clisp compiler the next maxima version will ship around.

In wxMaxima's config dialogue you can add additional command-line parameters. If you are lucky Maxima portable is shipped with a Maxima version compiled with sbcl, as well. If it is the command line parameter

 -l sbcl

will work around the problem.

Kind regards,

Gunter.

Am 1. September 2018 02:46:59 MESZ schrieb BenLis213 notifications@github.com:

Hello,

I'm new to portable programs, but I just installed Maxima to my USB stick and was testing its plotting features. I encountered an error, notifying me of the following:

Maxima encountered a Lisp error: OPEN: Directory

P"C:\Users\UsernameHere\AppData\Local\Temp\MaximaPortableTemp\"

does not exist Automatically continuing. To enable the Lisp debugger set debugger-hook to nil.

This concerns me for a couple of reasons:

  1. I checked my PC and was able to access the folder which it says does not exist

  2. I thought that the files which a portable app could make would be via the portable drive, and not on the actual computer. Isn't that the point of the portability?

At any rate I'm hoping to get a fix soon, because I really only use Maxima for plotting purposes. Is there something incorrect in the installation? Is there a way to set up a temp folder on the USB stick so that it doesn't write on the PC?

TIA

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/andrejv/wxmaxima/issues/1028

-- Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.

gunterkoenigsmann commented 6 years ago

Ok... ...with any luck I now have found a 2nd way to avoid the problem.

BenLis213 commented 6 years ago

Hello,

Thanks for your help. After digging I found the config file and added the parameter. Now it plots like a charm.

Thanks again!

BenLis213 commented 6 years ago

Actually, scratch that. It seemed to work once, but I can't get the results to replicate. I still get the same error issue.

gunterkoenigsmann commented 6 years ago

Does maxima portable forget the "-l sbcl"? If that isn't the case I guess the directory doesn't exist any more.

What does build_info() output when the problem reoccurs?

If nothing works an ugly workaround would be a

  maxima_tempdir:"<a path to a writable directory that has shorter names>"

before doing a plot. In the config dialogue there should be a tab with startup commands. One could add the maxima_tempdir line here.


We really need a new maxima release as many issues have been resolved since the last one.

KubaO commented 4 years ago

We really need to default to sbcl on Windows I think! #1043 was another fallout from this. And does this still happen is the question. Where does this portable Maxima come from, and is there a nightly of it?