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

create_task() got an unexpected keyword argument 'name' #39

Closed
heugabel opened this issue Jul 1, 2022 · 9 comments
Closed

create_task() got an unexpected keyword argument 'name' #39

heugabel opened this issue Jul 1, 2022 · 9 comments

Comments

@heugabel
Copy link

heugabel commented Jul 1, 2022

hi, how to fix this error?

Jul 2 01:11:09 raspberrypi fritzinfluxdb[21269]: /opt/fritzinfluxdb/fritzinfluxdb.py:141: RuntimeWarning: coroutine 'InfluxHandler.task_loop' was never awaited
Jul 2 01:11:09 raspberrypi fritzinfluxdb[21269]: task = loop.create_task(handler.task_loop(queue), name=handler.name)
Jul 2 01:11:09 raspberrypi fritzinfluxdb[21269]: RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Jul 2 01:11:09 raspberrypi fritzinfluxdb[21269]: Traceback (most recent call last):
Jul 2 01:11:09 raspberrypi fritzinfluxdb[21269]: File "/opt/fritzinfluxdb/fritzinfluxdb.py", line 155, in
Jul 2 01:11:09 raspberrypi fritzinfluxdb[21269]: main()
Jul 2 01:11:09 raspberrypi fritzinfluxdb[21269]: File "/opt/fritzinfluxdb/fritzinfluxdb.py", line 141, in main
Jul 2 01:11:09 raspberrypi fritzinfluxdb[21269]: task = loop.create_task(handler.task_loop(queue), name=handler.name)
Jul 2 01:11:09 raspberrypi fritzinfluxdb[21269]: TypeError: create_task() got an unexpected keyword argument 'name'

@donnerhund
Copy link

Have you already found a solution? I have exactly the same error message with my installation.

@bb-Ricardo
Copy link
Owner

Hi,

I don't really know why this is happening.

What kind of FritzBox Model are you using?

@donnerhund
Copy link

Hi,

I use the 7590.

@donnerhund
Copy link

Hi,

I have now carried out the installation again on another virtual machine. Now the programme runs without error message :)

@bb-Ricardo
Copy link
Owner

Ohhh, this might have something to do with the python version.

Which version was your "old" installation using?

@donnerhund
Copy link

Hi,
I completely forgot that an old Python version is still installed on the "old" installation.

python --version
Python 2.7.16

@bb-Ricardo
Copy link
Owner

Python 3.6 is the minimum requirement. That should be at the top of the README.

Maybe I should add an additional check for the python version used.

@bb-Ricardo
Copy link
Owner

Hi, I just pushed a fix to the next-release branch can you try this one? Thank you

@bb-Ricardo
Copy link
Owner

there is also docker pull bbricardo/fritzinfluxdb:1.0.1-beta1 available

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

No branches or pull requests

3 participants