Unable to install package

I’m trying to write my own integration but have run into an issue with the manifest. Whenever i try to load the integration, i get Unable to install package and these package versions have conflicting dependencies. ERROR: ResolutionImpossible with no further messages. Any idea why?

update after solution: for anyone stumbling upon this later, the way i found the nested deps is through pip install pipdeptree and then pipdeptree -p <locally installed package> and it should output the nested dependency list

The package i’m referring to works fine when installed on my local machine through pip

The package you are trying to install has its own dependancies which conflict with the versions of one or more of the package requirements of HA. You will need the package developer to fix this by setting different version requirements.

If you can say which package and i can tell you what exactly is conflicting.

thank you for the tip! here’s all the nested dependencies. How can i get the list of deps HA uses?

If you look at HA the code on github, in requirements.txt you will see httpx==0.26.0

This is your issue that ollama requires a version lower than 0.26.

You will need the developer of ollama to increase the requirement version to fix this.

1 Like

thank you for the answer! that’s definitely the issue then.

out of curiosity, do different integrations share the same pip packages? say i have an integration that uses package==1.0.1 and another that uses package==1.0.2 would they prevent each other from installing/starting? or is this issue only with HA’s requirements?

Yes they do share. As HA runs in a single python environment, you can (afaik) only have 1 package version. However, lots have a range of versions they work/are test with.

1 Like