-
Notifications
You must be signed in to change notification settings - Fork 130
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
Libcoap depends on Aiocoap #475
Comments
@MathiasMeuleman in what file is this error raised? Can you please provide the full stacktrace? |
This is incorrectly typed: pytradfri/pytradfri/api/libcoap_api.py Line 216 in 1d716f3
The libcoap api doesn't use aiocoap |
Here is the full stacktrace
As @MartinHjelmare said, the dependency on |
Thanks, I’ll try to have a look at this over the weekend. |
@MathiasMeuleman 10.0.1, including the fix, is on pypi now. |
Sorry for the late followup, but thank you for the quick responses and fix! |
Where are you using pytradfri (eg stand-alone, Home Assistant etc)
Stand-alone python script
Version of pytradfri
v10.0.0
Backend used (aiocoap, libcoap)
libcoap
What type of environment are you in, eg Dockerized, Raspberry PI, VirtualBox, WiFi network (give as much details as possible)
Running python 3.10 on Linux machine
Expected behaviour
Imports are resolved properly, script runs as normal
Actual behaviour
ModuleNotFoundError: No module named 'aiocoap'
when importingpytradfri.api.libcoap_api.APIFactory
.In this PR a dependency on
aiocoap
was added tolibcoap
, which breaks the import. Downgrading to v9 resolves the issue.The text was updated successfully, but these errors were encountered: