Add support for python3.11#366
Conversation
Codecov ReportBase: 93.97% // Head: 93.86% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #366 +/- ##
==========================================
- Coverage 93.97% 93.86% -0.11%
==========================================
Files 102 102
Lines 11085 11085
Branches 1302 1516 +214
==========================================
- Hits 10417 10405 -12
- Misses 586 596 +10
- Partials 82 84 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
|
Apparently Python 3.11 has not been released yet, today. |
Looks like |
|
The product of immediately testing this PR of Faust with an example: [2022-11-23 00:50:29,094] [1] [ERROR] [^---Conductor]: Crashed reason=TypeError('An asyncio.Future, a coroutine or an awaitable is required')
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/mode/services.py", line 843, in _execute_task
await task
File "/usr/local/lib/python3.10/dist-packages/faust/transport/conductor.py", line 288, in _subscriber
await self.app.agents.wait_until_agents_started()
File "/usr/local/lib/python3.10/dist-packages/faust/agents/manager.py", line 80, in wait_until_agents_started
await self.wait_for_stopped(self._agents_started)
File "/usr/local/lib/python3.10/dist-packages/mode/services.py", line 704, in wait_for_stopped
return (await self.wait(*coros, timeout=timeout)).stopped
File "/usr/local/lib/python3.10/dist-packages/mode/services.py", line 711, in wait
return await self._wait_one(coros[0], timeout=timeout)
File "/usr/local/lib/python3.10/dist-packages/mode/services.py", line 779, in _wait_one
results = await self.wait_first(coro, timeout=timeout)
File "/usr/local/lib/python3.10/dist-packages/mode/services.py", line 740, in wait_first
futures = {
File "/usr/local/lib/python3.10/dist-packages/mode/services.py", line 741, in <dictcomp>
coro: asyncio.ensure_future(
File "/usr/lib/python3.10/asyncio/tasks.py", line 615, in ensure_future
return _ensure_future(coro_or_future, loop=loop)
File "/usr/lib/python3.10/asyncio/tasks.py", line 630, in _ensure_future
raise TypeError('An asyncio.Future, a coroutine or an awaitable '
TypeError: An asyncio.Future, a coroutine or an awaitable is requiredUgh, there's still work left to be done. |
|
faust-streaming/mode#30 fixed the previous issue! We're good to go! Edit: I ran this branch and mode-streaming 0.3.1rc1 on my own code and it still seems there's some issues needing to be resolved? I can't tell, everything started working fine on its own after a bit. |
|
I got it working in Python 3.11 but a heads up: |
Prepare for upcoming release of Python 3.11 on 10/24