relopwestcoast.blogg.se

Selenium on ubuntu
Selenium on ubuntu






selenium on ubuntu

ALWAYS type this to enable a virtualenv pip install selenium # this might cause errors I don't know all dependencies of selenium Quick way to try out: pip3 install virtualenv # install virtualenv or python3 virtualenv -p `which python3` ~/myp圓 # create a virtualenv for python3 in ~/myp圓 source ~/myp圓/bin/activate # enable the virtualenv. However often virtualenv will try to compile more complex python packages, so you must have gcc, the build essentials and depending on the package you'd like to install some -dev packages installed. It's good for debugging or when one script requires one version of a package and another script requires another version. Virtualenv allows you to have different versions of python with different packages on the same machine. (Just delete the virutalenv and create a new one)Īt least for me selenium always started working when I created a new virtualenv, The only thing could be, that if the problem occurs it will be easier to fix.

selenium on ubuntu

I'm not sure that virtualenv will solve any problems. but you seem to have issues without virtualenv.

selenium on ubuntu

Seems to be a different problem than mine :-(Īt least I was convinced, that my problem was, that I was using virtualenv. The browser window doesn't launch any more when the script starts. I reinstalled the OS and it worked again for a while and is now doing the same. If you specified a log_file in the FirefoxBinary constructor, check it for details.

selenium on ubuntu

driver = webdriver.Firefox() File "/usr/local/lib/python3.4/dist-packages/selenium-2.45.0-p圓.4.egg/selenium/webdriver/firefox/webdriver.py", line 59, in _init_ self.binary, timeout), File "/usr/local/lib/python3.4/dist-packages/selenium-2.45.0-p圓.4.egg/selenium/webdriver/firefox/extension_connection.py", line 47, in _init_ _browser(self.profile) File "/usr/local/lib/python3.4/dist-packages/selenium-2.45.0-p圓.4.egg/selenium/webdriver/firefox/firefox_binary.py", line 66, in launch_browser self._wait_until_connectable() File "/usr/local/lib/python3.4/dist-packages/selenium-2.45.0-p圓.4.egg/selenium/webdriver/firefox/firefox_binary.py", line 100, in _wait_until_connectable raise WebDriverException("The browser appears to have exited " : Message: The browser appears to have exited before we could connect. I have a Python script that I have been running on Ubuntu for a few days which was working OK but is now throwing the following error.








Selenium on ubuntu