triforcely / Octave.NET

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

Does it support Octave 4.4.1 on Windows 7/10? #4

Closed 3r1k0n closed 5 years ago

3r1k0n commented 5 years ago

I am having trouble running the example project. I have Octave 4.4.1 installed as I can't find the links for 4.4.0 and have added "C:\Octave\Octave-4.4.1\bin" to the System Path variable. The path never gets loaded in the octave object and it's causing to throw an exception. If I manually specify the path to the bin, the result is the same.

image

3r1k0n commented 5 years ago

.."Also, please note that you need to restart VS for it to come into effect - took a while to figure that out! Working very well now - thanks again."

I will try this tomorrow

triforcely commented 5 years ago

image

So you need to use "C:\Octave\Octave-4.4.1\bin\octave-cli.exe" if you want to specify it in your code.

However, if you want it to be available system-wide, you need to add something like this to system PATH and remove line 10 from your code: image

3r1k0n commented 5 years ago

I did both and more. The result was always the same.

triforcely commented 5 years ago

So octave-cli.exe does not exist on your hard drive. If it doesn't work in command line, it won't work in this library.

3r1k0n commented 5 years ago

Octave gui and octave-cli.exe are both installed and work otherwise.

I will try to restart VS and/or the machine and get back with the results

3r1k0n commented 5 years ago

Just to confirm, it works after restarting Visual Studio.

Although it might have to do with Path's visibility after being updated, I don't know why setting the path directly wouldn't work. (I tried setting it directly to the exe)

CptWesley commented 5 years ago

(I tried setting it directly to the exe)

This does not work on Windows in general, not an Octave specific issue.