Skip to content

sb.driver.stop() not working in python 3.14 #4345

@GustavoHP2006

Description

@GustavoHP2006

Hi, I recently updated my Python version to 3.14 and ended up having some problems with the library in question.

To temporarily resolve the issue, I reverted to version 3.12 in a virtual environment, and it worked perfectly. Here is the error I was having in Python version 3.14:

Example of basic code: from seleniumbase import sb_cdp

url = "https://news.ycombinator.com/submitted?id=seleniumbase"
sb = sb_cdp.Chrome(url)
elements = sb.find_elements("span.titleline > a")
for element in elements:

print("* " + element.text)
sb.driver.stop()

Error:
Exception ignored while calling deallocator <function _ProactorBasePipeTransport.del at 0x0000020509A273D0>:
Traceback (most recent call last):

File "C:\Users\Gustavo\AppData\Local\Programs\Python\Python314\Lib\asyncio\proactor_events.py", line 116, in del
File "C:\Users\Gustavo\AppData\Local\Programs\Python\Python314\Lib\asyncio\proactor_events.py", line 80, in repr
File "C:\Users\Gustavo\AppData\Local\Programs\Python\Python314\Lib\asyncio\windows_utils.py", line 102, in fileno
ValueError: I/O operation on closed pipe
Exception ignored while calling deallocator <function _ProactorBasePipeTransport.del at 0x0000020509A273D0>:
Traceback (most recent call last):
File "C:\Users\Gustavo\AppData\Local\Programs\Python\Python314\Lib\asyncio\proactor_events.py", line 116, in del
File "C:\Users\Gustavo\AppData\Local\Programs\Python\Python314\Lib\asyncio\proactor_events.py", line 80, in repr
File "C:\Users\Gustavo\AppData\Local\Programs\Python\Python314\Lib\asyncio\windows_utils.py", line 102, in fileno
ValueError: I/O operation on closed pipe
Exception ignored while calling deallocator <function _ProactorBasePipeTransport.del at 0x0000020509A273D0>:
Traceback (most recent call last):
File "C:\Users\Gustavo\AppData\Local\Programs\Python\Python314\Lib\asyncio\proactor_events.py", line 116, in del
File "C:\Users\Gustavo\AppData\Local\Programs\Python\Python314\Lib\asyncio\proactor_events.py", line 80, in repr
File "C:\Users\Gustavo\AppData\Local\Programs\Python\Python314\Lib\asyncio\windows_utils.py", line 102, in fileno
ValueError: I/O operation on closed pipe
Exception ignored while calling deallocator <function BaseSubprocessTransport.del at 0x0000020509A25A60>:
Traceback (most recent call last):
File "C:\Users\Gustavo\AppData\Local\Programs\Python\Python314\Lib\asyncio\base_subprocess.py", line 135, in del
File "C:\Users\Gustavo\AppData\Local\Programs\Python\Python314\Lib\asyncio\base_subprocess.py", line 74, in repr
File "C:\Users\Gustavo\AppData\Local\Programs\Python\Python314\Lib\asyncio\proactor_events.py", line 80, in repr
File "C:\Users\Gustavo\AppData\Local\Programs\Python\Python314\Lib\asyncio\windows_utils.py", line 102, in fileno
ValueError: I/O operation on closed pipe

The version of seleniumbase I am using is the latest: seleniumbase 4.48.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions