flexxui / webruntime

Launch HTML5 apps in the browser or a desktop-like runtime.
http://webruntime.readthedocs.io
BSD 2-Clause "Simplified" License
43 stars 10 forks source link

Unable to launch a webruntime on Win10 x64 Python 3.6 #3

Closed Semnodime closed 6 years ago

Semnodime commented 6 years ago

I know that the whole project remains in Alpha so far and is under active change currently. Since I would like to try out flexx already, could you please guide me how to successfully launch a (standalone) app?

1. Installed flexx over latest master

The module flexx.webruntime was not available after installing flexx the way described in the flexxun/flexx github README

pip install https://github.com/flexxui/flexx/archive/master.zip Successfully installed flexx-0.4.2.dev0 webruntime-0.5.2

2. Installed webruntime directly

pip install webruntime Successfully installed webruntime-0.5.2

The webruntime does not seem to work when installed standalone either: image image

3. Installed flexx over pip

pip install flexx Successfully installed flexx-0.4.1 image image

I cannot use 'app' as webruntime

EDIT:

Somewhere I found the list of available runtimes as I dug into the code and tested all of them:

image image

So XulRuntime, ChromeAppRuntime and Browser(s) seem to work for me.

Maybe I have missed where you mentioned how to select the "correct" runtime in the docs, please let me know if I missed it or if you decided to insert this piece of information.

Semnodime commented 6 years ago

Also, XulRuntime and ChromeAppRuntime close without a while-1-loop or a long sleep at the end of the programm. Maybe I should open a separate issue for that?

almarklein commented 6 years ago

Remove the rt.close() That closes the runtime, which you probably do not want to do until you're done.

Semnodime commented 6 years ago

The code snapshots above addresses only

But the closing of the runtime occured when the code in my screenshot (below my heading «EDIT») was executed which does not contain an rt.close() (it is commented out)

almarklein commented 6 years ago

Ah, now I see your point. Thanks for the clarification.

The example in the readme was wrong, it should say from webruntime import launch not from flexx.webruntime import launch. Also the latest version of Flexx is really old, it does not know about the "app" runtime yet.

Thanks for the issue report!