0

I am using Raspberry Pi3 B+, I have a problem with webbrowser module, when i run my Python 2 Program Code:

import webbrowser
url = "youtube.com"
chrome_path = "/home/pi/Desktop/Chromium Web Browser"
webbrowser.get(chrome_path).open(url)

Error:

    Traceback (most recent call last):
  File "<pyshell#18>", line 1, in <module>
    webbrowser.get(using='google-chrome').open(url,new=new)
  File "/usr/lib/python2.7/webbrowser.py", line 52, in get
    raise Error("could not locate runnable browser")
Error: could not locate runnable browser

Please help me I am using Python2.7.15

  • 1
    I think, for get, you need "chromium-browser" or "chromium" ... see the table in the DOCUMENTATION – Jaromanda X Jan 31 at 9:56

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.