C
C
ChikChik2020-02-10 18:56:16
Python
ChikChik, 2020-02-10 18:56:16

How to fix selenium.common.exceptions.WebDriverException error?

Please tell me how to fix a regularly occurring error, initially the program works as it should, then it has time.sleep for a day and this error occurs when it is restarted. Only restarting the PC helps. I set a delay of 20 seconds and there was no error, the program was repeatedly executed without error.

Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\Python\main_programm.py", line 15, in
football_parser_1_shag_sbor_url.main()
File "C:\Users\Administrator\Desktop\Python\parser_1. py", line 100, in main
driver = webdriver.Chrome(executable_path='C:\\Users\Administrator\Desktop\Python\chromedriver.exe')
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 81, in __init__
desired_capabilities=desired_capabilities)
File "C:\ Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "C:\Users \Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "C :\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot create temp dir for user data dir

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2020-02-10
@hottabxp

On stackoverflow they say (well, you saw) that most likely there is not enough free space.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question