sandialabs / snl-quest

An open source, Python-based software platform for energy storage simulation and analysis developed by Sandia National Laboratories.
Other
128 stars 38 forks source link

No GUI pops up when main.py is run #5

Open nelha opened 5 years ago

nelha commented 5 years ago

New issues upon installation. I was expecting a GUI to pop up when python main.py command was run. No GUI. This is what was returned: (base) Y:\Energy\Energy Storage\SNL Tools\snl-quest-1.2.a>python main.py [INFO ] [Logger ] Record log in C:\Users\laurences.kivy\logs\kivy_19-04-30_1.txt [INFO ] [Kivy ] v1.10.1 [INFO ] [Python ] v3.7.3 (default, Mar 27 2019, 17:13:21) [MSC v.1915 64 bit (AMD64)] [INFO ] [Factory ] 194 symbols loaded [INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored) [INFO ] [Text ] Provider: sdl2 [INFO ] [Window ] Provider: sdl2

Any insight on how to proceed would be helpful. Thank you!

rconcep commented 5 years ago

Hello,

You are correct in your expectation. From my understanding, you had not experienced any fatal crashes/exceptions. Based on that startup log, it seems that the graphics system (OpenGL) has not yet initialized. It would look something like this:

(base) D:\workspace\snl-quest>python main.py [INFO ] [Logger ] Record log in C:\Users\rconcep.kivy\logs\kivy_19-05-01_0.txt [INFO ] [Kivy ] v1.10.1 [INFO ] [Python ] v3.7.3 (default, Mar 27 2019, 17:13:21) [MSC v.1915 64 bit (AMD64)] [INFO ] [Factory ] 194 symbols loaded [INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored) [INFO ] [Text ] Provider: sdl2 [INFO ] [Window ] Provider: sdl2 [INFO ] [GL ] Using the "OpenGL" graphics system [INFO ] [GL ] GLEW initialization succeeded [INFO ] [GL ] Backend used [INFO ] [GL ] OpenGL version <b'4.5.0 NVIDIA 382.59'> [INFO ] [GL ] OpenGL vendor <b'NVIDIA Corporation'> [INFO ] [GL ] OpenGL renderer <b'Quadro P1000/PCIe/SSE2'> [INFO ] [GL ] OpenGL parsed version: 4, 5 [INFO ] [GL ] Shading version <b'4.50 NVIDIA'> [INFO ] [GL ] Texture max size <32768> [INFO ] [GL ] Texture max units <32> [INFO ] [Window ] auto add sdl2 input provider [INFO ] [Window ] virtual keyboard not allowed, single mode, not docked [INFO ] [GL ] NPOT texture support is available [INFO ] [GL ] Unpack subimage support is available [INFO ] [DMS ] Successfully loaded valuation_dms.p. [INFO ] [DMS ] Successfully loaded btm_dms.p. [INFO ] [Base ] Start application main loop

In my experience with some computers, it may sometimes take a little while to start up.

Another user who reported a similar issue indicated that their work network may have had something to do with their issue but also reported that v1.2 resolved it.

If waiting for the graphics engine to startup doesn't work, we can try to investigate the cause.

nelha commented 5 years ago

Thank you for the prompt response. I was using the latest version 1.2. How long should it take to open graphics system? I waited 15 min which I would think would be enough. How can I trouble shoot what is going on? Thank you, Laurence Natural Energy Laboratory of Hawai’i

Sent from my iPhone

On May 1, 2019, at 6:31 AM, Ricky Concepcion notifications@github.com<mailto:notifications@github.com> wrote:

Hello,

You are correct in your expectation. From my understanding, you had not experienced any fatal crashes/exceptions. Based on that startup log, it seems that the graphics system (OpenGL) has not yet initialized. It would look something like this:

(base) D:\workspace\snl-quest>python main.py [INFO ] [Logger ] Record log in C:\Users\rconcep.kivy\logs\kivy_19-05-01_0.txt [INFO ] [Kivy ] v1.10.1 [INFO ] [Python ] v3.7.3 (default, Mar 27 2019, 17:13:21) [MSC v.1915 64 bit (AMD64)] [INFO ] [Factory ] 194 symbols loaded [INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored) [INFO ] [Text ] Provider: sdl2 [INFO ] [Window ] Provider: sdl2 [INFO ] [GL ] Using the "OpenGL" graphics system [INFO ] [GL ] GLEW initialization succeeded [INFO ] [GL ] Backend used [INFO ] [GL ] OpenGL version <b'4.5.0 NVIDIA 382.59'> [INFO ] [GL ] OpenGL vendor <b'NVIDIA Corporation'> [INFO ] [GL ] OpenGL renderer <b'Quadro P1000/PCIe/SSE2'> [INFO ] [GL ] OpenGL parsed version: 4, 5 [INFO ] [GL ] Shading version <b'4.50 NVIDIA'> [INFO ] [GL ] Texture max size <32768> [INFO ] [GL ] Texture max units <32> [INFO ] [Window ] auto add sdl2 input provider [INFO ] [Window ] virtual keyboard not allowed, single mode, not docked [INFO ] [GL ] NPOT texture support is available [INFO ] [GL ] Unpack subimage support is available [INFO ] [DMS ] Successfully loaded valuation_dms.p. [INFO ] [DMS ] Successfully loaded btm_dms.p. [INFO ] [Base ] Start application main loop

In my experience with some computers, it may sometimes take a little while to start up.

Another user who reported a similar issue indicated that their work network may have had something to do with their issue but also reported that v1.2 resolved it.

If waiting for the graphics engine to startup doesn't work, we can try to investigate the cause.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/rconcep/snl-quest/issues/5#issuecomment-488333768, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AL6VTWMNHKSFZDGLPHCZJ3TPTHAV5ANCNFSM4HJRDEKQ.

rconcep commented 5 years ago

It varies depending on the machine it's being run on, but I haven't seen it take that long.

I guess the first thing we can do is first figure out if the graphics will work on a simple application. We can try running a simple "hello world" application in Kivy (the library used to build the GUI). Taken from here:

import kivy
kivy.require('1.10.1') # replace with your current kivy version !

from kivy.app import App
from kivy.uix.label import Label

class MyApp(App):

    def build(self):
        return Label(text='Hello world')

if __name__ == '__main__':
    MyApp().run()

Create a new .py file with this small block of code and try to run it. You should get a small black window with a text label "Hello world". If this works, we can assume that the graphics system on your machine is working and can probably infer that there may issues with QuESt starting up.

nelha commented 5 years ago

I copy pasted your simple module as instructed. And the same behavior was exhibited, ie no window appears and the prompt just returns without having taken action (see capture below).

[cid:image001.png@01D500ED.3EE630E0]

You mentioned it might be a network issue? Any more info you might have on that and how to address?

Thank you, Laurence

Laurence Sombardier Chief Business Development Officer laurence.sombardier@hawaii.govmailto:laurences@nelha.org 808-327-9585, x244  nelha.hawaii.govhttp://www.nelha.org/

CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and/or privileged information. Any unauthorized review, use, copying, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender immediately by reply e-mail and destroy the original message and all copies.

From: Ricky Concepcion notifications@github.com Sent: Thursday, May 2, 2019 7:05 AM To: rconcep/snl-quest snl-quest@noreply.github.com Cc: Sombardier, Laurence laurence.sombardier@hawaii.gov; Author author@noreply.github.com Subject: Re: [rconcep/snl-quest] No GUI pops up when main.py is run (#5)

It varies depending on the machine it's being run on, but I haven't seen it take that long.

I guess the first thing we can do is first figure out if the graphics will work on a simple application. We can try running a simple "hello world" application in Kivy (the library used to build the GUI). Taken from herehttps://kivy.org/doc/stable/guide/basic.html#create-an-application:

import kivy

kivy.require('1.10.1') # replace with your current kivy version !

from kivy.app import App

from kivy.uix.label import Label

class MyApp(App):

def build(self):

    return Label(text='Hello world')

if name == 'main':

MyApp().run()

Create a new .py file with this small block of code and try to run it. You should get a small black window with a text label "Hello world". If this works, we can assume that the graphics system on your machine is working and can probably infer that there may issues with QuESt starting up.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/rconcep/snl-quest/issues/5#issuecomment-488752665, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AL6VTWOV6JJJCEWX255TNBLPTMNLLANCNFSM4HJRDEKQ.

rconcep commented 5 years ago

Hi Laurence, It doesn't look like the image embed worked. If you could email it to me at rconcep@sandia.gov that should be fine but we should carry on the discussion in this thread.

For the other case I mentioned, the person had gotten past the OpenGL part of the initialization but only had a blank white window open. He said he tried it on the same machine but at home instead of on his work network and said it worked. I don't believe the internet connection should be relevant but I suppose that was the difference.