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
Description of the bug
When running pytr dl_docs ./ it ends with BaseEventLoop.create_connection() got an unexpected keyword argument 'extra_headers'. This is caused by a change in the "websockets" package version 14.
To Reproduce
Steps to reproduce the behavior:
Go to the TradeRepublic document folder
Ran the command pytr dl_docs ./
Enter the code from the TR-App'
See error
Expected behavior
pytr downloads the documents.
Error log
File "/opt/homebrew/bin/pytr", line 8, in <module>
sys.exit(main())
^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/pytr/main.py", line 266, in main
asyncio.get_event_loop().run_until_complete(dl.dl_loop())
File "/opt/homebrew/Cellar/[email protected]/3.11.10/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/pytr/dl.py", line 68, in dl_loop
await self.tl.get_next_timeline_transactions()
File "/opt/homebrew/lib/python3.11/site-packages/pytr/timeline.py", line 30, in get_next_timeline_transactions
await self.tr.timeline_transactions()
File "/opt/homebrew/lib/python3.11/site-packages/pytr/api.py", line 506, in timeline_transactions
return await self.subscribe({"type": "timelineTransactions", "after": after})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/pytr/api.py", line 322, in subscribe
ws = await self._get_ws()
^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/pytr/api.py", line 301, in _get_ws
self._ws = await websockets.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/websockets/asyncio/client.py", line 442, in __await_impl__
self.connection = await self.create_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/websockets/asyncio/client.py", line 368, in create_connection
_, connection = await loop.create_connection(factory, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: BaseEventLoop.create_connection() got an unexpected keyword argument 'extra_headers'
Environment
OS: MacOS 13.7.1
pytr version: 0.3.1
Additional context
Temporary solution: Roll back to websockets V13: pip install websockets==13.
The text was updated successfully, but these errors were encountered:
Description of the bug
When running
pytr dl_docs ./
it ends withBaseEventLoop.create_connection() got an unexpected keyword argument 'extra_headers'
. This is caused by a change in the "websockets" package version 14.To Reproduce
Steps to reproduce the behavior:
pytr dl_docs ./
Expected behavior
pytr downloads the documents.
Error log
Environment
Additional context
Temporary solution: Roll back to websockets V13:
pip install websockets==13
.The text was updated successfully, but these errors were encountered: