Firefox19でSeleniumが動かない(Python) | 世界的日曜WEBプログラマー日記

世界的日曜WEBプログラマー日記

一年後に世界的なWEBサービスを運営するにはどうすればいいのか書いていく(予定)

Firefoxのアップデート後、いきなりSeleniumが動かなくなった。Seleniumもアップデートする必要がある。
Seleniumをアップグレードする必要がある。(Pythonから扱う場合。)

$ pip install -U selenium

そしたら今度はpkg_resources.DistributionNotFound: pip==0.8.2のエラー。
PIPもアップグレードしよう。
$ sudo easy_install -U Distribute


以上。
宅配サイトのエラーチェックをSeleniumでしているんだけど、全部かたっぱしからエラー出て焦りましたw

ちなみにその時のエラーログは以下のような感じだった。
Traceback (most recent call last):
File "selenium_test.py", line 3, in
webdriver.Firefox()
File "/usr/local/lib/python2.6/dist-packages/selenium/webdriver/firefox/webdriver.py", line 59, in __init__
self.binary, timeout),
File "/usr/local/lib/python2.6/dist-packages/selenium/webdriver/firefox/extension_connection.py", line 47, in __init__
self.binary.launch_browser(self.profile)
File "/usr/local/lib/python2.6/dist-packages/selenium/webdriver/firefox/firefox_binary.py", line 44, in launch_browser
self._wait_until_connectable()
File "/usr/local/lib/python2.6/dist-packages/selenium/webdriver/firefox/firefox_binary.py", line 81, 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: ERROR: ld.so: object 'x\
_ignore_nofocus.so' from LD_PRELOAD cannot be preloaded: ignored.\n*** LOG addons.xpi: startup\n*** LOG addons.xpi: checkForChanges\n*** LOG addons.xpi: No \
changes found\n*** LOG addons.manager: shutdown\n*** LOG addons.xpi: shutdown\n"


株式会社OctOpt
コンピューターサイエンス会社OctOptの技術公式ブログ
等々力 康弘
@rocky_house