flexxui / webruntime

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

Could not detect a suitable backend among ['googlechrome-browser', 'chromium-browser'] #28

Open LewisNeal opened 4 years ago

LewisNeal commented 4 years ago

Despite adding path for chrome canary in #27 the chrome-browser still fails:

N:\git\webruntime>webruntime https://www.abc.net.au/ chrome-browser Traceback (most recent call last): File "c:\users\lewisneal\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\lewisneal\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\lewisneal\AppData\Local\Programs\Python\Python38\Scripts\webruntime.exe__main.py", line 7, in File "c:\users\lewisneal\appdata\local\programs\python\python38\lib\site-packages\webruntime\main.py", line 32, in main rt = webruntime.launch(sys.argv[1], sys.argv[2]) File "c:\users\lewisneal\appdata\local\programs\python\python38\lib\site-packages\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']. [end] Chrome

almarklein commented 4 years ago

I think I've found the source of that error. When the Chrome runtime could not be found, it would still try to use it if it had a cache of it. This is addressed in #29.

This does not solve the original problem. It looks like _get_google_chrome_exe() still returns None for you. I'd recommend running the code of that function directly (e.g. in an interactive session) and seeing where it goes wrong.

almarklein commented 4 years ago

It looks like _get_google_chrome_exe() still returns None for you.

To clarify, for some reason it still does not find the executable on your system. But this is not something I can look into, unfortunately.