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

Docker - Cannot find web browser #92

Closed
jason4bury opened this issue Jan 18, 2022 · 2 comments
Closed

Docker - Cannot find web browser #92

jason4bury opened this issue Jan 18, 2022 · 2 comments
Labels
Projects

Comments

@jason4bury
Copy link

Is there any way to stop the automatic opening of a web browser when using docker?

When run, the following error appears and the container exits-

yapo | Traceback (most recent call last):
yapo | File "./yapo.py", line 74, in
yapo | startup.startup_sequence()
yapo | File "/YAPO/videos/startup.py", line 284, in startup_sequence
yapo | webbrowser.get().open_new_tab(site)
yapo | File "/usr/local/lib/python3.8/webbrowser.py", line 65, in get
yapo | raise Error("could not locate runnable browser")
yapo | webbrowser.Error: could not locate runnable browser

@cooperdk cooperdk added this to Incoming changes in To-do list via automation Jan 18, 2022
@cooperdk cooperdk moved this from Incoming changes to High priority in To-do list Jan 18, 2022
@cooperdk
Copy link
Owner

cooperdk commented Jan 18, 2022

Oh yes - sorry. I didn't consider that on Docker, opening the browser should be disabled, or rather, I should disable opening the browser as the default setting.

What you do is find the settings.yml file within your config directory, it should be where you store your Docker data.

And then remove the value of the URL key, so it becomes:

yapo_url:
(remember the required two spaces before the key)

When you open YAPO afterwards, it will know that you don't want any browser opened. That is determined by the presence of a URL as a value to that key.

When you're there, you can insert another key (if not there) named tpdb_apikey - and as value, give your metadataapi.net API key, if you want to use the API scanner feature.

To-do list automation moved this from High priority to Done Jan 18, 2022
@jason4bury
Copy link
Author

Thanks for the info,

I tried the fix but I'm afraid it hasn't worked.

When I run the container the error message still appears and the container stops.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
To-do list
  
Done
Development

No branches or pull requests

2 participants