-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Version
1.54.0
Steps to reproduce
if not self.playwright:
self.playwright = sync_playwright().start()
self.browser = self.playwright.firefox.launch(
headless=not self.config.get_bool('isshow', section="config", default=False)
)
Expected behavior
no error
Actual behavior
import sys; print('Python %s on %s' % (sys.version, sys.platform))
C:\Users\Administrator\Desktop\singlewindow\singlewindow.venv\Scripts\python.exe -X pycache_prefix=C:\Users\Administrator\AppData\Local\JetBrains\PyCharm2025.2\cpython-cache "D:/Program Files/JetBrains/PyCharm 2025.2/plugins/python-ce/helpers/pydev/pydevd.py" --multiprocess --qt-support=auto --client 127.0.0.1 --port 55653 --file C:\Users\Administrator\Desktop\singlewindow\singlewindow\customs_query\autoBGD.py
Connected to: <socket.socket fd=796, family=2, type=1, proto=0, laddr=('127.0.0.1', 55655), raddr=('127.0.0.1', 55653)>.
Connected to pydev debugger (build 252.23892.439)
node:events:496
throw er; // Unhandled 'error' event
^
Error: read ENOTCONN
at tryReadStart (node:net:716:20)
at Socket._read (node:net:731:5)
at Readable.read (node:internal/streams/readable:739:12)
at Socket.read (node:net:785:39)
at new Socket (node:net:494:12)
at Object.Socket (node:net:363:41)
at createSocket (node:internal/child_process:335:14)
at ChildProcess.spawn (node:internal/child_process:450:23)
at Object.spawn (node:child_process:754:9)
at launchProcess (D:\Program Files (x86)\python3.12\Lib\site-packages\playwright\driver\package\lib\server\utils\processLauncher.js:117:39)
Emitted 'error' event on Socket instance at:
at emitErrorNT (node:internal/streams/destroy:170:8)
at emitErrorCloseNT (node:internal/streams/destroy:129:3)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
errno: -4053,
code: 'ENOTCONN',
syscall: 'read'
}
Node.js v22.17.0
2025-08-08 09:32:17,101 - log_config - ERROR - singlewindowbase.py:53 - 浏览器初始化失败: BrowserType.launch: Connection closed while reading from the driver
2025-08-08 09:32:17,111 - log_config - ERROR - autoBGD.py:388 - BrowserType.launch: Connection closed while reading from the driver
Additional context
No response
Environment
- Operating System: [win10 64x]
- CPU: [intel celeron cpu G3930]
- Browser: [All, Chromium, Firefox, WebKit]
- Python Version: [3.12.5]
- Other info:
node: v22.18.0