So how to solve it,I want to use it with the driver path not in the PATH so I can deploy my project easily. : Message: 'chromedriver' executable needs to be in PATH. Please see įinally I try to put it to /usr/bin ➜ Downloads sudo cp chromedriver /usr/binĬp: /usr/bin/chromedriver: Operation not permittedĪnd I try to use export PATH=$PATH:/Users/wyx/project/python-scraping/se/bin/chromedriver_for_mac in. Traceback (most recent call last):įile "/Users/wyx/project/python-scraping/se/test.py", line 16, in browser = webdriver.Chrome()īut it can't work either. Then I run brew cask install chromedriver.And I only run this Please see Įxception AttributeError: "'Service' object has no attribute 'process'" in > ignored : Message: 'chromedriver_for_mac' executable needs to be in PATH. Os.path.basename(self.path), self.start_error_message) Traceback (most recent call last):įile "/Users/wyx/project/python-scraping/se/test.py", line 15, in įile "/Users/wyx/project/python-scraping/.env/lib/python2.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 62, in _init_įile "/Users/wyx/project/python-scraping/.env/lib/python2.7/site-packages/selenium/webdriver/common/service.py", line 71, in start PROJECT_ROOT = os.path.abspath(os.path.dirname(_file_))ĭRIVER_BIN = os.path.join(PROJECT_ROOT, "bin/chromedriver_for_mac")īut I can't get the result I want. But I don't want to put it to PATH.So I do this.I download the chromedriver from ChromeDriver - WebDriver for Chrome.I want to use selenium with chromedriver on Mac,but I have some troubles on it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |