LoginSignup
0
0

More than 3 years have passed since last update.

selene 1.0aで「ModuleNotFoundError: No module named 'webdriver_manager.phantomjs'」と出て起動しない場合の対処

Last updated at Posted at 2018-01-10

Version1.0aでは、Phantomjsのdriver読み込みが残っているためエラーとなる。開発版(2018/01現在)では削除されているので、開発版をインストールして使用する。

エラーログ

Traceback (most recent call last):
  File "test.py", line 9, in <module>
    from selene.api import *
  File "/usr/local/lib/python3.6/site-packages/selene/api/__init__.py", line 1, in <module>
    from selene import config, browser, browsers
  File "/usr/local/lib/python3.6/site-packages/selene/browser.py", line 7, in <module>
    import selene.factory
  File "/usr/local/lib/python3.6/site-packages/selene/factory.py", line 8, in <module>
    from webdriver_manager.phantomjs import PhantomJsDriverManager
ModuleNotFoundError: No module named 'webdriver_manager.phantomjs'

selene開発版のインストール

pip install git+https://github.com/yashaka/selene.git
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0