acon96 / home-llm

A Home Assistant integration & Model to control your smart home using a Local LLM
483 stars 56 forks source link

Integration version number reported as 0.2.17 after installing 0.3 #157

Closed j0shm1lls closed 3 weeks ago

j0shm1lls commented 3 weeks ago

Describe the bug
After installing home-llm v0.3 and adding the integration into Home Assistant, clicking on the configured integration in 'Setting>Devices & Services>Configured>Local LLM Conversation' the version number reported is 0.2.17.

Expected behavior
The version number should report the correct 0.3.00 version.

Screenshot from 2024-06-07 19-56-14

acon96 commented 3 weeks ago

can you try re-installing? I keep forgetting to update the version number.

j0shm1lls commented 3 weeks ago

I just reinstalled, same version (0.2.17) is reported.

davidlamkin commented 3 weeks ago

Same here. I will note that I did not get a notification to update to any higher version either. I clicked to re-download and I chose v0.3, but it still shows as v0.2.17. Now with the new version of Home Assistant, it fails to load at all.

Here is my log entry:

Logger: homeassistant.setup Source: setup.py:269 First occurred: 9:55:32 AM (1 occurrences) Last logged: 9:55:32 AM

Setup failed for custom integration 'llama_conversation': Requirements for llama_conversation not found: ['requests==2.31.0'].

So, I don't know if the requests package is installed as a dependency from llama_conversation or if it is separate from it, but here is the error from that:

Logger: homeassistant.util.package Source: util/package.py:123 First occurred: 9:55:25 AM (3 occurrences) Last logged: 9:55:32 AM

Unable to install package requests==2.31.0: ERROR: Cannot install requests==2.31.0 because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Update

I am not a developer, but I try my best. Going into things a bit deeper, I found my HA system is using requests v2.32.3 already:

Looking in indexes: https://pypi.org/simple, https://wheels.home-assistant.io/musllinux-index/ Requirement already satisfied: requests in /usr/local/lib/python3.12/site-packages (2.32.3)

So I looked and my manifest.json still has:

"requirements": [
    "requests==2.31.0",
    "huggingface-hub==0.23.0",
    "webcolors==1.13"
  ]

I removed the HACS integration and reinstalled. I still came up with "requests==2.31.0" in manifest.json.

davidlamkin commented 3 weeks ago

Seems that if you have any configured LLMs, you must completely remove them in order to perform the upgrade to 0.3

firstusing commented 3 weeks ago

Same here, I did delete all configurations, then delete the integration, then performed a restart, installed again, restart again, same error.

firstusing commented 3 weeks ago

Small Update, now I can't even start the integration anymore as it tolds me that it can perform the configuration to start with the credentials to connect.

acon96 commented 3 weeks ago

I took another look and force pushing to the tag didn't work. I don't really want to mess with the github release to properly fix this since v0.3 had other breaking issues with it so I have pushed v0.3.1 which has the version number set properly along with other bug fixes