-
-
Notifications
You must be signed in to change notification settings - Fork 77
(fix) circular import issue #1264 #1280
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1280 +/- ##
====================================
Coverage 95% 95%
====================================
Files 66 66
Lines 2753 2753
====================================
Hits 2609 2609
Misses 144 144 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
You are a legend! Thank you @abaart . Now I see why it was causing the circular dependency, we cannot reference cx_core directly from any module inside cx_core. We have to import directly from the file. Lesson learnt. I will merge and remove the cx_core exclusion from the documentation as well as add the note in the release note and give you the credit. Thanks! |
|
This is now released in ControllerX v5.2.2. |
|
However, it doesn't work with appdaemon 0.17.13, which I just updated, so I restored 0.17.10 again... |
|
Hi @mycanaletto , It is working on my side with AppDaemon 0.17.13. Could you show me the complete logs of AppDaemon (from start to error) when upgrading to 0.17.13? Cheers, |
|
@xaviml thanks |
|
|
Hi @mycanaletto , Are this all logs you see? I don't see the ControllerX initialization logs and the error you get. Could you please share all logs (from the beginning to the error (included) with AppDaemon 0.17.13? Cheers, |
|
That's what I did, but when I update to 0.17.13, ControllerX won't even launch... Here is the log with the rollback to 0.17.10. |
|
Hi @mycanaletto , I understand, so you are not getting the circular dependency error (which is what this PR solves). You simply don't see anything happening when initializing AppDaemon addon on the new version. Is that correct? Could you do the following for me?
Cheers, |
|
voilà !
|
|
Everything looks correct from confogurstion point of view. What I see is that this is not a ControllerX issue, but an AppDaemon one. If you run 0.17.13, does it get stuck and nothing loads? I see in your first logs you shared that 0.17.13 started, but then it stopped and then I see logs of 0.17.10. Don't you see anything with 0.17.13? Not even other AppDaemon apps? Cheers, |
|
Yes, the problem is appDaemon 0.17.13 (.11 and .12 are the same). I tried deleting Automoli and leaving just one ControllerX app, but the result was the same... |
|
What about if you remove all apps? And leave the hellow world one? hello_world_app: |
This fixes #1264
I was running into this problem, AppDaemon was using 100% CPU due to continuously trying to load controllerx, but failing due to the circular import.
I with this fix applied, I now run controllerx without issues, without:
in
/addon_configs/a0d7b954_appdaemon/appdaemon.yamlI suggest that if others also verify this fixes the problem, the mention of
exclude_dirscan be removed from the documentation.Other relevant issue: hassio-addons/addon-appdaemon#433