I'm trying to write a Python script to open a URL, but I keep getting errors when I try to use it:
import webbrowser
firefox = webbrowser.get('mozilla')
This is the error:
Traceback (most recent call last):
File "C:\Users\Gelu\Documents\CSCI\Image URL Generator\src\Generator.py", line 8, in <module>
firefox = webbrowser.get('mozilla')
File "C:\Program Files\Python31\lib\webbrowser.py", line 53, in get
raise Error("could not locate runnable browser")
webbrowser.Error: could not locate runnable browser
Any ideas why this isn't working?