hcpy2-0 / hcpy

Python tool to talk to Home Connect appliances over the local network (no cloud required)
103 stars 17 forks source link

which version of python is required to run hcpy ? #67

Open WolfgangSn opened 6 months ago

WolfgangSn commented 6 months ago

I can't find any information about which python version is required. I tried 3.10.14 ( miniconda ) but get

2024-05-09 19:00:10.149845 MQTT connection established: 0
2024-05-09 19:00:10.150089 dishwasher set topic: homeconnect/dishwasher/set
2024-05-09 19:00:10.150255 dishwasher program topic: homeconnect/dishwasher/activeProgram
2024-05-09 19:00:13.150854 dishwasher connecting to NEFF-Dishwasher-xxxxxxxxxxxxxxxxxxxx
2024-05-09 19:00:13.244252 dishwasher ERROR [SSL: NO_CIPHERS_AVAILABLE] no ciphers available (_ssl.c:1007)

when I run python3 hc2mqtt.py --config ./config/config.ini

Using python 3.12.2 I get following output: 2024-05-09 19:02:55.392786 MQTT connection established: 0 2024-05-09 19:02:55.392904 dishwasher set topic: homeconnect/dishwasher/set 2024-05-09 19:02:55.392979 dishwasher program topic: homeconnect/dishwasher/activeProgram 2024-05-09 19:02:58.390581 dishwasher connecting to NEFF-Dishwasher-xxxxxxxxxxxxxxxxxxxx 2024-05-09 19:02:58.514806 dishwasher ERROR module 'ssl' has no attribute 'wrap_socket'

Any hint or any tip ? What am I missing ?

pmagyar commented 6 months ago

Hey @WolfgangSn,

our docker image use python3.10. https://github.com/hcpy2-0/hcpy/blob/main/Dockerfile#L1C1-L2C1

i can not reproduce your issue with this version. But i don´t use miniconda.... Do you have the ability to use a python installation outside of miniconda? Or just using the docker setup?

With python 3.12.2 i got the same error. We will take a look when we support this version.

Meatballs1 commented 6 months ago

It sounds like it could be an issue with the sslpsk library? It should be sock = sslpsk.wrap_socket(.

WolfgangSn commented 5 months ago

our docker image use python3.10

Thanks, haven't tried it before. The docker image is working for me.