-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
[ISSUE] Integration cannot be loaded because of unsatisfied dependencies #104
Comments
2025-02-02 12:20:54.034 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration 'mg_saic': Requirements for mg_saic not found: ['saic-ismart-client-ng==0.6.0']. |
So it seems like your system is not getting the latest saic-ismart-client-ng. I can get that without a problem on my end. Try to find which version do you have installed on your instance and manually update it to 0.6.0. This will depend on whether you have HassOS, supervised or docker |
Hi thx for your reply. I have the ha blue |
So just go into SSH on your instance and write:
It should show as:
If it shows a different version just run:
Cheers |
Me too! This errors, happens after updating to the new: MG/SAIC Integration Version I've tried to install manually via git and i've obtained this: (myenv) ➜ ~ pip show saic_ismart_client_ng ### --> Shut be used "-" instead of "_" Name: saic_ismart_client_ng |
Impossibile caricare il flusso di configurazione: 500 Internal Server Error Server got itself in trouble FROM LOGs: Registratore: homeassistant.util.package |
Hi, @bryce2071 and @framar82 Can you both try to edit the integration manifest.json ( So it reads:
Let me know if it works this way. I am not having issues with 0.6.0, but I am on Supervised installation, so that might be the reason why it works fine on my end. Although, my test machine is HassOS and is working fine. |
I can not download a 0.5.4 cause after 0.5.2 comes 0.6.0 |
I am on supervised too |
Try to change the manifest either way to 0.5.3, the old version I was using, and you should be back to normal. On a supervised the manual update is different, because you need to go into the HA docker and upgrade from pip inside it. |
Nothing is working ... I removed the mg in hacs and removed the entities, then installed mg new in hacs. error |
Did you try to change mabisfet. Json as I mentioned before? |
Yes |
I think it should be possible toncompletely new install it. But the same error comes after reinstalled. Where must depend3ncies be removed? |
Try these steps.
In theory, by doing this, you should be able to reinstall it. |
No. Same error. Sorry. |
No, same error I'm receiving. I:ve verified and I've installed the 0.6.0 on my HA environment, but if I try with command line: it returns that there are no installed packages. "PIP SHOW saic_ismart_client_ng" Result: Name: saic_ismart_client_ng |
@bryce2071 and @framar82 That's really odd. The package is available on PyPi: https://pypi.org/project/saic_ismart_client_ng/#history If you guys are using supervisor, you need SSH to your instance and then:
If you do not do |
Ohhhh!!! Thanks! Now it works! With you last suggestion, the issue is solved. I appreciate your support! |
Glad it did work out for you. Cheers |
Hoy actualice Home assistant y me encuentro con lo que creo que es el mismo error: Registrador: homeassistant.util.package Unable to install package saic-ismart-client-ng==0.6.0: × No solution found when resolving dependencies: ╰─▶ Because saic-ismart-client-ng==0.6.0 depends on httpx>=0.27.0,<0.28.0 and httpx==0.28.1, we can conclude that saic-ismart-client-ng==0.6.0 cannot be used. And because you require saic-ismart-client-ng==0.6.0, we can conclude that your requirements are unsatisfiable. |
i dont use docker. what to do then? |
Hello, same problem for me 😭 |
Hi @matboy66 Did you try any of the solutions above? |
Upgrading saic-python-client-ng worked partially for me, some entities remains in a "non provided state". logs: |
Hey everyone, Since it seems that there are some instances with the same issue, I just amended the EDIT: Release 0.9.3 removed |
Yes but for me I am in HassOS and not in Supervised/Docker so the procedure must change for me? |
Then (AFIK) you simply don't need the first command ("docker exec -it homeassistant bash"). Everything else is the same, so the commands are: Remember to disable protection mode and restart the system. |
Unfortunately this is not enough for me this procedure does not work for me |
Hi everyone, So FYI, the API has just been updated to cover for this issue. As soon as I can, I will test it and do a new release with the versioning fix. Cheers |
Bump saic-ismart-client-ng version (closes #104)
This should now be fixed on version 0.9.3 Anyone that wants to give it a shout and check it, please let me know the outcome. On my production instance this is working just fine and I had no issues with the update. |
0.9.3 with 2025.2.2 - all good. |
Same here, works again after updated 🎉 |
Given that I had so many problems previously, the update to 0.9.3 was seamless, and consequently after the HA Core 2025.2.2 upgrade everything continues to work! |
0.9.3 with 2025.2.2 - working flawlessly |
I suspect HA V2025.2.4 has broken the integration again :( |
Did you check the logs? Is it something related to the dependencies... Or the API not sending data? |
Sorry, you'll need to hand-hold me a little. Following the HA update it sits for a long time (10 minutes or so) "initialising", then fails to initialise.
|
I've now deleted the integration and reinstalled it from scratch. After entering username and password it recognises the vehicle and I can confirm the capabilities. Then it sits for about 10 minutes and "fails to initialise". There seem to be lots of warnings and errors in the system log, but this seems to be the most pertinent VIN obscured): Logger: homeassistant.config_entries Error setting up entry MG SAIC - LSJWH4091xxxxxxx for mg_saic |
So the issue is that the API is not reporting nay of the data needed for the vehicle. It might be an issue with the connection to the vehicle or the API directly, but not the integration. This is happening to me as well. Usually is something that lasts a couple of days and is always an issue on MG side. Are you able to get data updates on the iSmart App? |
I'm not getting any errors in the app, but at the same time the vehicle status doesn't seem to be updated either. Last update was last night at 20:02 which was about an hour or so before I updated HA and these problems began. |
I just deleted and reinstalled the integration again. This time the configuration seemed to complete quickly (previously it hung), but it's still not started. Below is the message in the log: This error originated from a custom integration. Logger: custom_components.mg_saic Failed to set up MG SAIC integration: return code: 500, message: API call POST /oauth/token failed unexpectedly |
Let me see how can I say this. Removing and readding the integration has not effect whatsoever on this case, it is not an issue form the integration! As you can see on the app, the vehicle is not updating to MG servers, so if MG does not get data, the integration does not get data. It's a matter of waiting as having it working on the vehicle <-> MG server connection. I have been myself with this issue for over a week, now. MG solution seems to be going to the dealership to reset the TBOX, but this is something recurrent and that happens every now and then... so it is just a matter of waiting. I've never been down for so long, only a couple of days, but it shall come back at any time. If mostly happens on weekends.. lets know why. |
@ad-ha - a possible counterpoint here. I thought initially that the issue might be on the MG side - completely agree that they aren't great for being reliable at the moment. I removed your integration temporarily, and added the SAIC add-on instead. (URL below for reference). On firing that up, I was able to connect to the car, and perform lock / unlock etc immediately. My guess is that if it was a server issue, I should have had issues with both the HACS custom integration and the HASS Add-on? https://github.com/SAIC-iSmart-API/saic-home-assistant-addon |
You are partially right. The add-on works on a different way than this integration. As in the iSmart App, right now, even if you do not get updates from the car (like SOC, or others) you can still use the lock/unlock command and AC as well... the issue is that after the iSmart sends the command, it will fail to update and will not know the status of the vehicle, nor if the command sent was successful. This integration relies first on obtaining the updated data and get those from the car to make sure that every sensor displays correctly. There is no much on sending commands to the vehicle and after not being able to know if they were successful or not, right? You can try it. Use the iSmart App (if your case is that the app also shows that last update was 1 or 2 days ago). Send a command to the vehicle and the vehicle will most probably flash and start the command, but the app will not show the status update (will show an error after a while saying remote command failed, or something along these lines). That's exactly the problem the integration has, that as no updated data comes in, nothing can be updated. Therefore, if no data, no integration. |
@jamespreedy btw, were you able to get updated status data? Or just been able to send commands? |
If you both activate the debug logs for the integration, you will see that the integration keeps trying to get data but the response from the API server will be something like this:
Plus:
This last one is stating that the connection to the vehicle was not possible and that updated data was not retrieved by the server directly, not the integration. That's why most probably your iSmart App is not showing updated data as well, cause they are not being able to retrieve data from the car.. It's odd, I know, that you can send commands, but not get updated data, right? I sent MG a ticket on this and their response was:
And after added on another email:
As you see, if MG cannot have a stable connection to the vehicle (which is odd that lasts so much time.. even with having the vehicle, in my case, on different locations and open-sky).. but again, is an issue on MG side, not the integration. |
I've found d the problem. It was related to the vehicle itself. My MG app has been consistently showing the last sata update to be 20:02 last night which was the time I last left the car and about an hour before the HA upgrade. I loaded the app on another device and logged in and got the same update time (no error, as is often the case if the MG servers are on the blink). I DO get an error if I try to unlock the car or turn on HVAC. I've now been back to the car and rebooted the OBC. The apps on both platforms has now updated status and I can reach the car from the app to turn things on and off. I've reloaded the integration on HA and that works too. |
Thanks @EACourts. That pretty much sums up what I was saying, that its an issue communicating with the car. Btw, how did you reboot the OBC? Glad you were able to sort it out and solve the issue on your end. |
Home Assistant Version
2025.1
MG/SAIC Integration Version
0.9.2
Installation Method
HACS
Did you check for existing issues?
Did you enable debug logging before and are ready to post logs?
Describe the Issue
hi,
since a few Updates i cant use IT anymore.
i deleted IT and tried to Reinstall, but i Always get this error.
what can i do?
error
The configuration flow could not be loaded: 500 Internal Server Error Server got itself in trouble.
in logs i See that an issue IS for Version 0.6 ???
Logs
Additional Context
No response
The text was updated successfully, but these errors were encountered: