huawei_solar icon indicating copy to clipboard operation
huawei_solar copied to clipboard

[Bug]: Cannot install huawei-solar==2.1.2

Open bekovan opened this issue 1 year ago • 10 comments

System Health details

Unable to install package huawei-solar==2.1.2: ERROR: Cannot install huawei-solar==2.1.2 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

Huawei Solar Setup

Inverter Type: sun2000 Inverter Firmware version: SDongle present: no Power meter present: three phase / single phase / no : three phase Battery: LG RESU xxkWh / LUNA2000 5kWh / None Battery Firmware version:

How do you connect to the inverter?

Over serial, with a serial-to-USB stick

Describe the issue

After installing Home assistant 2022.11.0b0, the huawei_solar was not loading, noticed following error message Unable to install package huawei-solar==2.1.2: ERROR: Cannot install huawei-solar==2.1.2 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

Relevant debug logs

I estimate this will be generic as it it not between inverter & home assistnt but home assistant to integration, if you need them please let me know

bekovan avatar Oct 27 '22 07:10 bekovan

Also just installed 2022.11.0b0 and seeing the same error.

Logger: homeassistant.setup
Source: setup.py:184
First occurred: 09:14:32 (1 occurrences)
Last logged: 09:14:32

Setup failed for custom integration huawei_solar: Requirements for huawei_solar not found: ['huawei-solar==2.1.2'].

gieljnssns avatar Oct 27 '22 07:10 gieljnssns

@gieljnssns https://pypi.org/project/huawei-solar/#history shows that huawei-solar 2.1.2 is available. So I would expect a network problem, or PyPI outage?

@bekovan Do you have other integrations that use Modbus? Maybe there is a conflict in pyModbus versions that are required?

wlcrs avatar Oct 27 '22 07:10 wlcrs

As far as I know this integration is the only one using modbus

bekovan avatar Oct 27 '22 07:10 bekovan

@wlcrs I also have the same error as @bekovan When reverting to 2022.10.5 the integration is back.

gieljnssns avatar Oct 27 '22 07:10 gieljnssns

"When reverting to 2022.10.5 the integration is back." --> same here

bekovan avatar Oct 27 '22 07:10 bekovan

The backoff dependency was causing an issue. I've upgraded the huawei-solar library to fix this. Can you please test beta release 1.1.4b1 ? I'd like to get a few reports that everything works as expected before doing a stable release.

wlcrs avatar Oct 27 '22 08:10 wlcrs

I still have an issue : Setup failed for custom integration huawei_solar: Requirements for huawei_solar not found: ['huawei-solar==2.1.3'].

bekovan avatar Oct 27 '22 09:10 bekovan

The backoff dependency was causing an issue. I've upgraded the huawei-solar library to fix this. Can you please test beta release 1.1.4b1 ? I'd like to get a few reports that everything works as expected before doing a stable release.

Can confirm it works, have now updated to latest core version and 1.1.4b1

jeveli avatar Oct 27 '22 09:10 jeveli

I still have an issue : Setup failed for custom integration huawei_solar: Requirements for huawei_solar not found: ['huawei-solar==2.1.3'].

Make sure to install 1.1.4b1, not 1.1.3b2 or earlier.

wlcrs avatar Oct 27 '22 09:10 wlcrs

Possible I downloaded 1.1.3b2 initially. Now 1.1.4b1 is working correct with 2022.11.0b0.

bekovan avatar Oct 27 '22 09:10 bekovan

Logger: homeassistant.setup Source: setup.py:184 First occurred: 12:56:12 (1 occurrences) Last logged: 12:56:12

Setup failed for custom integration huawei_solar: Requirements for huawei_solar not found: ['huawei-solar==2.1.4b2'].

:(

dMopp avatar Oct 27 '22 10:10 dMopp

Same here, using latest 114b1 (Home Assistant 2022.10.4), I get this message: Setup failed for custom integration huawei_solar: Requirements for huawei_solar not found: ['huawei-solar==2.1.4b2']

thtro avatar Oct 27 '22 11:10 thtro

Try a (few) restart(s). Because this is a very fresh release on PyPI, some caching issues can still show up. I'm quite used to pip always failing the first time after I've released a new version.

wlcrs avatar Oct 27 '22 11:10 wlcrs

Updated HASS to 2022.10.5 and restarted a few times, still same error as above and additionally this appeared: Unable to install package huawei-solar==2.1.4b2: ERROR: Cannot install huawei-solar==2.1.4b2 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

thtro avatar Oct 27 '22 11:10 thtro

I have downgraded to the latest 1.1.3 Beta and it works again.

dMopp avatar Oct 27 '22 12:10 dMopp

Ok, I understand now what's going on. This is caused by the backoff-dependency that was forced in home assistant to be <2.0 before 2022.11.0b0, but is now required to be >=2.0 in the new beta version.

So for now:

  • 2022.10 or lower are compatible with all versions of this integration except the new beta
  • 2022.11.0b0 is only compatible with the new beta.

wlcrs avatar Oct 27 '22 12:10 wlcrs

I've created the issue upstream https://github.com/home-assistant/core/issues/81085, and have released a new beta-version that is compatible with both 2022.11.x and 2022.10.x (and below).

I've retracted version 1.1.4b1 and replaced it with version 1.1.4b2. The only difference is that I don't set any restriction on the version of backoff anymore.

wlcrs avatar Oct 27 '22 12:10 wlcrs

Works fine with current stable, good job:)

dMopp avatar Oct 27 '22 13:10 dMopp

Works with current beta. thanks

gieljnssns avatar Oct 27 '22 15:10 gieljnssns

thank you for the quick support !

bekovan avatar Oct 27 '22 18:10 bekovan