RE: Octave does not start

David Remans <[email protected]> Wed, 22 Sep 2021 10:35:11 +0000
Newsgroups gmane.comp.gnu.octave.general
Message-ID <AM9P194MB12814DB7839B7EA0653C2FDAF1A29@AM9P194MB1281.EURP194.PROD.OUTLOOK.COM>
Hi Markus,

Here is small recap of the current status, still the GUI does not show:

I uninstalled Octave 6.2.0, and deleted all remaining files and rebooted the computer.
I downloaded the installer for Octave 6.3.0 and installed this version (installation for all users)
I do have admin rights on my machine.
For antivirus I use default windows defender. I tried all steps below with and without deactivating windows defender.

- I can run a general VBA scrip like  "hello world", I can also run this script from the Octave directory : C:\Program Files\GNU Octave\Octave-6.3.0
- When I start the GUI from the start menu shortcut, nothing happens
- When I start the GUI from the start menu shortcut as administrator, I get a pop-up from windows to allow execution of the octave.vbs --gui script. After I allow execution, nothing happends
- When I run Octave.bat in command window, this runs well (see attached screenshot), I can create variables etc in command line
- When I use CMD to run the octave.vbs script It seems to run the script (but GUI does not open). To test I added a line at the end of the script to show GUI MODE, and I get proper output.
- When I open Octave CLI from the start menu a command window opens with only a blinking cursor. (see attached screenshot) in the title balk it mentions "Octave-gui.exe"
- Using CMD I search for GNU file see attached screenshot for returned info. (I also attached the content of the file, changed the extension to .txt to allow transfer)

Still no clue as to why the GUI does not show

Best regards,
David




-----Original Message-----
From: Markus Mützel <[email protected]> 
Sent: woensdag 22 september 2021 10:03
To: David Remans <[email protected]>
Cc: [email protected]
Subject: RE: Octave does not start

Am 22. September 2021 um 09:43 Uhr schrieb "David Remans":
> HI Markus,
> 
>  See comments below. Unfortunately Gui does not show Yet.
> 
> Best regards,
> 
> David Remans
> 
> 
> -----Original Message-----
> From: Markus Mützel <[email protected]> 
> Sent: woensdag 22 september 2021 09:36
> To: David Remans <[email protected]>
> Cc: [email protected]
> Subject: RE: Octave does not start
> 
> Am 21. September 2021 um 19:48 Uhr schrieb "David Remans":
> > > Since you are writing about "octave.vbs", I am assuming you are using Windows. Which version of it?
> > [DRE] Yes, Windows 10
> >
> > > How did you install Octave?
> > [DRE] I ran the installer .exe file: octave-6.2.0-w64-installer.
> 
> Did you install for all users (i.e. in "C:\Program Files\...") or for the current user only (i.e. in your AppData folder)?
> 		[DRE] First I installed for all users, now I installed for current user only, I get the same behaviour.
> Depending on the answer to that question, you'll find an "octave.bat" file at a path like this one:
> "C:\Program Files\GNU Octave\Octave-6.3.0\mingw64\bin\octave.bat"
> 
> Does executing that .bat file (e.g. by double-clicking) open a command line interface with an Octave prompt?
> 		[DRE] Yes this works fine, I get a command Prompt with text in it

That is good news. So, Octave per se seems to work. But for some reason the GUI doesn't start.

Some GUI related packages have been updated in our build system for Windows since Octave 6.3.0 has been released. Could you please check if a nightly build from octave.space works for you?
https://buildbot.octave.space/#/download


> Additionally, you'll find the .vbs file (that looks like it's not doing the right thing for you) at a path similar to this one:
> "C:\Program Files\GNU Octave\Octave-6.3.0\octave.vbs"
> 
> Does executing that .vbs file directly (instead of through the link in the start menu) open the Octave GUI for you?
> 		[DRE] No it does not solve the problem
> > > Does starting the CLI work?
> > When I select CLI I get a command screen, with a blinking cursor
> 
> Do I understand correctly? You only see a command screen with blinking cursor? No text at all?
> 		[DRE] 	Yes I do not see any text on my screen

So, there might be two unrelated issues here:
1. The GUI doesn't open.
2. The .vbs file doesn't open the CLI.


> > > Which anti-virus software are you using? Does it work if you temporarily(!) de-activate that software?
> > Windows defender, I tried opening Octave after disabling the app & browser control and the real time virus & threst protection, but so far no success.
> > > Please check if your anti-virus software quarantined some of Octave's files.
> > I checked, but did not find any quaranteened files
> > > Are you on an administrated machine? Do the policy settings allow executing .vbs files?
> > I do use a administrated machine,  I do not have a policy in place to prevent .vbs scripts from running.
> 
> Some users reported that they had problems when Octave was installed in paths containing spaces because short file names were deactivated for them. (IIRC, they were able to start Octave though.) Anyway, could you please open a CMD prompt, execute the following commands and show what you see? Might need to be adapted if Octave was installed to a different location:
> C:
> cd "\Program Files"
> dir /x GNU*
> 		[DRE] I did, see attached (second) screenshot
> 

If I'm not mistaken, you forgot to add the asterisk at the end of the last command. Could you please execute the command as shown?

At the installation location that you've shown in the last screenshot, the corresponding commands would be:
C:
cd "\Users\d.remans\AppData\Local\Programs"
dir /x GNU*


----------
We are transitioning to a web based forum
for community help discussions at
https://octave.discourse.group/c/help
Screenshot 2021-09-22 112923.png (image/png, 49.6 KB) - not displayed
Open CLI from start menu Screenshot 2021-09-22 121117.png (image/png, 22.8 KB) - not displayed
GNU fiel Screenshot 2021-09-22 121834.png (image/png, 13.5 KB) - not displayed
GNU.txt (text/plain, 388 B)
[Paths]  Octave\Octave-6.3.0\\bin\qt.conf
Prefix=C:/PROGRA~1/GNU Octave/Octave-6.3.0/  Octave\Octave-6.3.0\\bin\qt.conf
Documentation=doc  Octave\Octave-6.3.0\\bin\qt.conf
Headers=include  Octave\Octave-6.3.0\\bin\qt.conf
Libraries=libs  Octave\Octave-6.3.0\\bin\qt.conf
Plugins=plugins  Octave\Octave-6.3.0\\bin\qt.conf
Translations=translations  Octave\Octave-6.3.0\\bin\qt.conf
qt.txt (text/plain, 181 B)
[Paths]
Prefix=C:/Program Files/GNU Octave/Octave-6.3.0/mingw64
Documentation=qt5/doc
Headers=qt5/include
Libraries=qt5/lib
Plugins=qt5/plugins
Translations=qt5/translations