Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with asyncio package in Python 3.10 #103

Open
dereulenspiegel opened this issue Oct 11, 2022 · 0 comments · May be fixed by #104
Open

Compatibility with asyncio package in Python 3.10 #103

dereulenspiegel opened this issue Oct 11, 2022 · 0 comments · May be fixed by #104

Comments

@dereulenspiegel
Copy link

I am currently trying to get CraftBeerPi running under Python 3.10. Unfortunately it seems that parts of the API for asyncio have changed:

Mar 11 07:34:21 craftbeerpi cbpi[196]: Traceback (most recent call last):
Mar 11 07:34:21 craftbeerpi cbpi[196]:   File "/bin/cbpi", line 33, in <module>
Mar 11 07:34:21 craftbeerpi cbpi[196]:     sys.exit(load_entry_point('cbpi==4.0.5a12', 'console_scripts', 'cbpi')())
Mar 11 07:34:21 craftbeerpi cbpi[196]:   File "/usr/lib/python3.10/site-packages/click/core.py", line 1128, in __call__
Mar 11 07:34:21 craftbeerpi cbpi[196]:   File "/usr/lib/python3.10/site-packages/click/core.py", line 1053, in main
Mar 11 07:34:21 craftbeerpi cbpi[196]:   File "/usr/lib/python3.10/site-packages/click/core.py", line 1659, in invoke
Mar 11 07:34:21 craftbeerpi cbpi[196]:   File "/usr/lib/python3.10/site-packages/click/core.py", line 1395, in invoke
Mar 11 07:34:21 craftbeerpi cbpi[196]:   File "/usr/lib/python3.10/site-packages/click/core.py", line 754, in invoke
Mar 11 07:34:21 craftbeerpi cbpi[196]:   File "/usr/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
Mar 11 07:34:21 craftbeerpi cbpi[196]:   File "/usr/lib/python3.10/site-packages/cbpi/cli.py", line 258, in start
Mar 11 07:34:21 craftbeerpi cbpi[196]:   File "/usr/lib/python3.10/site-packages/cbpi/cli.py", line 34, in start
Mar 11 07:34:21 craftbeerpi cbpi[196]:   File "/usr/lib/python3.10/site-packages/cbpi/craftbeerpi.py", line 313, in start
Mar 11 07:34:21 craftbeerpi cbpi[196]:   File "/usr/lib/python3.10/site-packages/aiohttp/web.py", line 514, in run_app
Mar 11 07:34:21 craftbeerpi cbpi[196]:   File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
Mar 11 07:34:21 craftbeerpi cbpi[196]:   File "/usr/lib/python3.10/site-packages/aiohttp/web.py", line 308, in _run_app
Mar 11 07:34:21 craftbeerpi cbpi[196]:   File "/usr/lib/python3.10/site-packages/cbpi/craftbeerpi.py", line 284, in init_serivces
Mar 11 07:34:21 craftbeerpi cbpi[196]:   File "/usr/lib/python3.10/site-packages/cbpi/controller/job_controller.py", line 14, in init
Mar 11 07:34:21 craftbeerpi cbpi[196]:   File "/usr/lib/python3.10/site-packages/cbpi/job/aiohttp.py", line 45, in setup
Mar 11 07:34:21 craftbeerpi cbpi[196]:   File "/usr/lib/python3.10/site-packages/cbpi/job/__init__.py", line 19, in create_scheduler
Mar 11 07:34:21 craftbeerpi cbpi[196]:   File "/usr/lib/python3.10/site-packages/cbpi/job/_scheduler.py", line 24, in __init__
Mar 11 07:34:21 craftbeerpi cbpi[196]:   File "/usr/lib/python3.10/asyncio/queues.py", line 34, in __init__
Mar 11 07:34:21 craftbeerpi cbpi[196]:   File "/usr/lib/python3.10/asyncio/mixins.py", line 17, in __init__
Mar 11 07:34:21 craftbeerpi cbpi[196]: TypeError: As of 3.10, the *loop* parameter was removed from Queue() since it is no longer necessary

This prevents CraftBeerPi from running under Python 3.10

@dereulenspiegel dereulenspiegel linked a pull request Oct 11, 2022 that will close this issue
papauorg pushed a commit to papauorg/craftbeerpi4 that referenced this issue Oct 2, 2023
InfluxDB: support non-ASCII symbols in sensor names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant