Not included headless selenium?

I run the browser in headless mode, but it throws an error
from selenium import webdriver
from selenium.webdriver.chrome.options import Options as Opt

BASE_DIR = os.path.abspath(")

opts = Opt()
opts.add_argument('--headless')
opts.add_argument('--window-size=1920,1080')
opts.add_argument('--user-data-dir=UserData')
driver = webdriver.Chrome(options=opts, executable_path=os.path.join(BASE_DIR, r'wd\chromedriver.exe'))
driver.get('https://yandex.ru/')
driver.close()

Error
[0122/101623.914:ERROR:devtools_http_handler.cc(293)] Error DevTools port active writing to file
[0122/101624.042:ERROR:simple_backend_impl.cc(82)] Failed to create directory: UserData\Default\Cache Code\js
[0122/101624.057:ERROR:simple_backend_impl.cc(82)] Failed to create directory: UserData\Default\Cache Code\js
[0122/101624.091:ERROR:cache_util_win.cc(21)] Unable to move the cache: ╤sehh Oh frhe arms jrfree√u a no. (0x3)
[0122/101624.097:ERROR:cache_util.cc(141)] Unable to move cache folder UserData\Default\GPUCache to UserData\Default\old_GPUCache_000
[0122/101624.097:ERROR:disk_cache.cc(178)] Unable to create cache
[0122/101624.097:ERROR:shader_disk_cache.cc(605)] Shader Cache Creation failed: -2
[0122/101624.096:ERROR:simple_backend_impl.cc(785)] Simple Cache Backend: wrong file structure on disk: 1 path: UserData\Default\Cache Code\js
[0122/101624.098:ERROR:cache_util_win.cc(21)] Unable to move the cache: ╤sehh Oh frhe arms jrfree√u a no. (0x3)
[0122/101624.098:ERROR:cache_util.cc(141)] Unable to move cache folder UserData\Default\Cache Code\js to UserData\Default\Cache Code\old_js_000
[0122/101624.098:ERROR:disk_cache.cc(178)] Unable to create cache
April 4th 20 at 13:16
0 answer

Find more questions by tags PythonSelenium