python - 使用webdriver.PhantomJS()出错
巴扎黑
巴扎黑 2017-04-17 17:33:38
0
2
318


请问各位大神,这是什么情况???

巴扎黑
巴扎黑

reply all(2)
大家讲道理

Restart the computer and try.

洪涛

详见http://stackoverflow.com/questions/36153...
Solved by changing function in selenium.webdriver.phantomjs.service.py like follow:

was

def send_remote_shutdown_command(self):
    if self._cookie_temp_file:
            os.remove(self._cookie_temp_file)

after adding try/except construction:

def send_remote_shutdown_command(self):
    try:
        if self._cookie_temp_file:
            os.remove(self._cookie_temp_file)
    except PermissionError:
        pass
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template