USB: usb_device_handle_win.cc:1049 Failed to read descriptor from node connection: The devices connected to the system are not functioning.
When executing automated tests in python + selenium + pytest, I encountered the following error.
[25612:15512:0220/162104.300:ERROR:device_event_log_impl.cc(211)] [16:21:04.299] USB: usb_device_handle_win.cc:1049 Failed to read descriptor from node connection:
The devices connected to the system are not functioning.(0x1F)
At present, the reason has not been found and can only be solved by violence:
Add the following options when starting chrome:
option = webdriver.chromeOptions()
# Prevent printing some useless logs
option.add_experimental_option("excludeSwitches", ['enable-automation', 'enable-logging'])
driver = webdriver.Chrome(chrome_options=option)
Supplement
For this statement
driver = webdriver.Chrome(chrome_options=option)
For chrome browsers, chrome_options=option
, preferably written as options=option
, that is:
driver = webdriver.Chrome(options=option)
Or you’ll see it in terminal
DeprecationWarning: use options instead of chrome_options
driver = webdriver.Chrome(chrome_options=option)
Read More:
- [Solved] Pyinstaller Package and Run Error: RuntimeError: Unable to open/read ui device
- [Solved] selenium Error: ERROR:ssl_client_socket_impl.cc(962)] handshake failed; returned -1, SSL
- [Solved] ssl_client_socket_impl.cc handshake failed (Same Codes in Different Environments)
- [Solved] pycuda._driver.LogicError: cuFuncSetBlockShape failed: invalid resource handle
- Pytorch: How to Handle error warning conda.gateways.disk.delete:unlink_or_rename_to_trash(140)
- Python Error: Failed to establish a new connection: [Errno -2] Name or service not known
- Failed to establish a new connection: [winerror 10048] in the requests thread pool, the interface is called circularly to get the datagram error
- [Solved] Mindspot error: Error: runtimeerror:_kernel.cc:88 CheckParam] AddN output shape must be equal to input…
- [Solved] Python Pandas Read Error: OSError: initializing from file failed
- [Solved] wxauto error: ImportError: DLL load failed while importing win32gui: Can’t find the specified program
- Python requests Error: ConnectionError: (‘Connection aborted.‘, error(104, ‘Connection reset by peer‘))
- How to Solve RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu
- Import win32API; importerror: DLL load failed: the specified program was not found
- Linux create connection command ln -s soft connection
- [Solved] error: when using the property decorator in Python, an error occurs: typeerror: descriptor ‘setter’ requires a ‘property’ object but
- [Solved] unknown error: Chrome failed to start: exited abnormally (Driver info: chromedriver=2.36.540471
- [Solved] Win10 Install pyav Error: ERROR: Failed building wheel for avFailed to build av. ERROR: Could not build wheel
- [Solved] D455 Depth Camera Error: keyerror: ‘frame_ device_ t‘
- pytorch: RuntimeError CUDA error device-side assert triggered
- How to Solve jupyter notebook Read CSV files Error