Guest User

Untitled

a guest
Jul 17th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. from selenium import webdriver
  2.  
  3. browswer=webdriver.Firefox()
  4.  
  5. Traceback (most recent call last):
  6. File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 76, in start
  7. stdin=PIPE)
  8. File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 709, in __init__
  9. restore_signals, start_new_session)
  10. File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 1344, in _execute_child
  11. raise child_exception_type(errno_num, err_msg, err_filename)
  12. FileNotFoundError: [Errno 2] No such file or directory: 'geckodriver': 'geckodriver'
  13.  
  14. During handling of the above exception, another exception occurred:
  15.  
  16. Traceback (most recent call last):
  17. File "<pyshell#2>", line 1, in <module>
  18. browswer=webdriver.Firefox()
  19. File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/selenium/webdriver/firefox/webdriver.py", line 160, in __init__
  20. self.service.start()
  21. File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 83, in start
  22. os.path.basename(self.path), self.start_error_message)
  23. selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
  24.  
  25. brew install geckodriver
  26.  
  27. sudo nano /etc/paths
  28.  
  29. /usr/local/bin
  30. /usr/bin
  31. /bin
  32. /usr/sbin
  33. /sbin
  34. /usr/local/Cellar/geckodriver/0.21.0/bin/geckodriver
Add Comment
Please, Sign In to add comment