I just got a server running with ubuntu on it for the first time, I connect with ssh. I am a mac user, learning ubuntu. The idea is to automate some tasks on the server. One of these tasks involves doing some tests with selenium through python. I need to get firefox to work in order to use the driver. I always get this error however:
root@gogokino:~# firefox "http://www.google.com/" & root@gogokino:~# (process:32286): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. Error: no display specified + Exit 1 firefox "http://www.google.com/"
I get a very similar error when I try to run selenium from python.
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 60, in __init__ self.binary, timeout), File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/extension_connection.py", line 47, in __init__ self.binary.launch_browser(self.profile) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/firefox_binary.py", line 61, in launch_browser self._wait_until_connectable() File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/firefox_binary.py", line 100, in _wait_until_connectable self._get_firefox_output()) selenium.common.exceptions.WebDriverException: Message: "The browser appears to have exited before we could connect. The output was: \n(process:32301): Gtk-WARNING **: Locale not supported by C library.\n\tUsing the fallback 'C' locale.\nError: no display specified\n"
So there seems to be something wrong, something about there not being a C library and something about a locale. I thought C was standard in ubuntu? Is there a quick way to solve this problem?