SMath on Linux with Maxima

SMath on Linux with Maxima - SMath on Linux with Maxima - Messages

#1 Posted: 1/17/2022 1:28:57 PM
micky

micky

0 likes in 2 posts.

Group: User

Hi,

i like to use smath studio on linux with the maxima plugin.

I have set a link from maxima.bat to maxima but when I try to set the path for maxima i get the following error.

What can I do to solve this issue.

System.IO.DirectoryNotFoundException: Could not find a part of the path "/home/schwm/.config/SMath/extensions\plugins\44011c1e-5d0d-4533-8e68-e32b5badce41/maxima.xml".
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00164] in <533173d24dae460899d2b10975534bb0>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in <533173d24dae460899d2b10975534bb0>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean useAsync) [0x00000] in <533173d24dae460899d2b10975534bb0>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool)
at System.Xml.XmlWriterSettings.CreateWriter (System.String outputFileName) [0x00051] in <7ff8f64b3a334d14838f500f5ad27e36>:0
at System.Xml.XmlWriter.Create (System.String outputFileName, System.Xml.XmlWriterSettings settings) [0x0000a] in <7ff8f64b3a334d14838f500f5ad27e36>:0
at .. (System.String , System.Collections.Generic.List`1[T] , System.Collections.Generic.List`1[T] , System.Collections.Generic.List`1[T] , System.Collections.Generic.List`1[T] , System.Collections.Generic.List`1[T] ) [0x0002d] in :0
at .. () [0x00219] in :0
at .. (System.String ) [0x0003e] in :0
at MaximaPlugin.MForms.SettingsForm. (System.Object , System.EventArgs ) [0x000e9] in :0
at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x00019] in <6d635ac3dc1c4424ad385ded79f1e868>:0
at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x00011] in <6d635ac3dc1c4424ad385ded79f1e868>:0
at System.Windows.Forms.ButtonBase.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00069] in <6d635ac3dc1c4424ad385ded79f1e868>:0
at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00000] in <6d635ac3dc1c4424ad385ded79f1e868>:0
at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00078] in <6d635ac3dc1c4424ad385ded79f1e868>:0
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x001b4] in <6d635ac3dc1c4424ad385ded79f1e868>:0
at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m) [0x00037] in <6d635ac3dc1c4424ad385ded79f1e868>:0
at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m) [0x00000] in <6d635ac3dc1c4424ad385ded79f1e868>:0
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <6d635ac3dc1c4424ad385ded79f1e868>:0
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <6d635ac3dc1c4424ad385ded79f1e868>:0
at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00085] in <6d635ac3dc1c4424ad385ded79f1e868>:0

Thanks
#2 Posted: 1/17/2022 3:07:13 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

Hi,

i like to use smath studio on linux with the maxima plugin.

I have set a link from maxima.bat to maxima but when I try to set the path for maxima i get the following error.

What can I do to solve this issue.

Thanks



Currently, the maxima plugin doesn't work under linux. It might be possible though.

Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
overlord 1/18/2022 12:54:00 AM
#3 Posted: 1/18/2022 4:18:44 AM
micky

micky

0 likes in 2 posts.

Group: User

Hi,

you said it could be possible. What must be done to get the plugin working under Linux.

Thanks
Micky
#4 Posted: 1/18/2022 7:41:40 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

Hi,

you said it could be possible. What must be done to get the plugin working under Linux.

Thanks
Micky



The plugin runs maxima in command line mode via a local IP connection. I think under linux the system call to start maxima is different. Assuming that the problem is actually in that system call (which I am not really sure about), I see two ways to solve the problem:

- to provide an executable script maxima.bat under linux, which can be called by the plugin
- to find out what call must be made under linux and to use that in the plugin as an OS-specific command.

Feel free to play around with the source code, it is all in the SVN repository ("Code" button in the forum header).

Note that under Windows, Steel Bank Common Lisp is used because it is unicode-proof. If this is not available or behaving differently under Linux, additional problems might show up once the connection is working.

Actually, wxmaxima is an application which also runs maxima in the background, so their source code should provide hints.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#5 Posted: 1/18/2022 2:33:21 PM
overlord

overlord

551 likes in 1332 posts.

Group: Moderator

Maxima is included near every repository.
And it can evaluate expressions from terminal.
Actually it should be easier to work with it under linux.
Can maxima plugin use this to its advantage?

$ maxima --batch-string="integrate(sin(x),x);"
Maxima 5.45.1 https://maxima.sourceforge.io
using Lisp SBCL 2.2.0.void.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.
(%i1) integrate(sin(x),x)
(%o1)                              - cos(x)
#6 Posted: 1/18/2022 8:36:48 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

Maxima is included near every repository.
And it can evaluate expressions from terminal.
Actually it should be easier to work with it under linux.
Can maxima plugin use this to its advantage?



Definitely. Perhaps it is sufficient to adapt [url=smath.info:8443/!/#public/view/head/plugins/MaximaPlugin/MaximaPlugin/ControlObjects/AutoMaxima.cs]AutoMaxima.cs[/url]. However, I have no linux system and can't test.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
  • New Posts New Posts
  • No New Posts No New Posts