triforcely / Octave.NET

📈 More than cross-platform Octave process wrapper 🔬
MIT License
32 stars 7 forks source link

Library fails with "error: : all arguments must be strings" error message. #7

Closed bemoregt closed 5 years ago

bemoregt commented 5 years ago

Hi, @CptWesley @triforcely

I met this error when run this code:

using (var octave = new OctaveContext()) { // Note: your octave-cli must support some plot backend, in case of problems investigate manually in octave-cli

            var script = @"

x = -10:0.1:10; y = sin (x); filename= 'aa.txt'; save(filename, y); handle = plot (x, y);

title (""Hello from C#""); xlabel (""x""); ylabel (""sin (x)"");

waitfor(handle); # <- without that plot window would not show "; octave.Execute(script); }

Error: "error: : all arguments must be strings\n"

What's wrong to me?

Thanks.

from @bemoregt.

bemoregt commented 5 years ago

Hi, @CptWesley @triforcely

??

triforcely commented 5 years ago

Hi @bemoregt,

Can you run tests from Octave.NET.Tests project and send us the results?

Also, tell me more about your environment (.NET version, Octave version and OS language).

bemoregt commented 5 years ago

Hi, @triforcely @CptWesley

Basic test project is well runs. There is no errors.

and My Environment is: MacOSX Mojave, Xamarin Workbooks, Octave.net, Octave for mac 4.4.1.

But Mono & .Net Core is well runs..

Thanks.

triforcely commented 5 years ago

Looks like your environment is incorrectly configured or the library does not support MacOSX. I'm closing the issue since I can't troubleshoot that.