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

Could not detect a suitable backend among ['firefox-browser'] #23

Closed LewisNeal closed 4 years ago

LewisNeal commented 4 years ago

Running the example with webruntime v0.5.7 rt = launch('http://xkcd.com', 'firefox-browser') gives error:

[snip] _\webruntime\__init__.py", line 200, in launch
    raise ValueError('Could not detect a suitable backend among %r.' % runtimes)

ValueError: Could not detect a suitable backend among ['firefox-browser']._

and choosing chrome:

    [snip] _\webruntime\__init__.py", line 200, in launch
    raise ValueError('Could not detect a suitable backend among %r.' % runtimes)

ValueError: Could not detect a suitable backend among ['googlechrome-browser', 'chromium-browser']._

The only browser which launches is edge.

almarklein commented 4 years ago

It looks like Webruntime is not able to find Firefox nor Chrome on your system. What platform are you on? It could be that we need an extra line here.

LewisNeal commented 4 years ago

I'm running Python 3.8.4, on Windows 10 64 (build 10.0.18362) SP0 Firefox and Chrome have both worked previously with webruntime.

almarklein commented 4 years ago

Could you check the location of firefox and chrome, and see if we are missing some paths? See e.g. #24 that adds paths for Linux and MacOS.

LewisNeal commented 4 years ago

Location of firefox: "C:\Program Files\Firefox Nightly\firefox.exe" I have been using nightly for years.

almarklein commented 4 years ago

Would you mind submitting a PR to add that path here? Otherwise I'll get to it eventually :)

LewisNeal commented 4 years ago

See PR https://github.com/flexxui/webruntime/pull/26