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"


    Traceback (most recent call last):
  File "<pyshell#18>", line 1, in <module>
  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 agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.