You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been facing this issue lately when updating my docker images. Pip is installing websockets v14 which causes the error below.
Traceback (most recent call last):
[redacted]
return await uc.start(config)
^^^^^^^^^^^^^^^^^^^^^^
File "[redacted]/nodriver/core/util.py", line 95, in start
return await Browser.create(config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "[redacted]/nodriver/core/browser.py", line 92, in create
await instance.start()
File "[redacted]/nodriver/core/browser.py", line 395, in start
await self.connection.send(cdp.target.set_discover_targets(discover=True))
File "[redacted]/nodriver/core/connection.py", line 405, in send
if not self.websocket or self.closed:
^^^^^^^^^^^
File "[redacted]/nodriver/core/connection.py", line 361, in __getattr__
return getattr(self.target, item)
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'closed'
websockets provides the upgrade guide in regards new asyncio client implementation
Quick Fix: pip install nodriver websockets==13.0 solves the issue for now
The text was updated successfully, but these errors were encountered:
falmar
changed the title
[nodriver] websockets dependency version issue: AttributeError: 'NoneType' object has no attribute 'closed'
[NODRIVER] websockets dependency version issue: AttributeError: 'NoneType' object has no attribute 'closed'
Nov 25, 2024
Hello,
I've been facing this issue lately when updating my docker images. Pip is installing websockets v14 which causes the error below.
websockets provides the upgrade guide in regards new asyncio client implementation
Quick Fix:
pip install nodriver websockets==13.0
solves the issue for nowThe text was updated successfully, but these errors were encountered: