Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LewisNeal opened this issue Aug 20, 2020 · 2 comments

Comments

@LewisNeal
Copy link
Contributor

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
Copy link
Member

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants