Help Execute Script :-( #151
-
Hello, First of all, thank you for this which will undoubtedly allow me to better interact with my Siemens devices :-) I'd like to install hcpy on my Home Assistant and generate the devices.json file. I'm trying to run the script on my PC (Win 10) using Python and the instructions, but I must admit I'm a real novice... After trying to install lots of things I don't know about :-( I run this in a “cmd” window: But I have a problem with OpenSSL or SSpsk... I think the script is calling a lib from OpenSSL 1.0.2 when it doesn't exist anymore... I can't install an older version either. Here's where I'm at and can't get any further. C:\Users\Fabrice>cd .. C:\Users>cd.. C:>cd 0testpython C:\0TestPython>python -m venv venv C:\0TestPython>venv\Scripts\activate (venv) C:\0TestPython>git clone https://github.com/hcpy2-0/hcpy (venv) C:\0TestPython>cd hcpy (venv) C:\0TestPython\hcpy>pip install -r requirements.txt × Building wheel for sslpsk (pyproject.toml) did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. [notice] A new release of pip is available: 23.2.1 -> 25.0.1 (venv) C:\0TestPython\hcpy>` |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
sslpsk is only required if using python under 3.13. If you upgrade python you shouldn't need to compile sslpsk That said I haven't tried it in windows... 😅 |
Beta Was this translation helpful? Give feedback.
-
Hello Meatballs1, thanks :-) All night and day and hadn't noticed I was using Python 3.12 instead of 3.13. So the script ran smoothly this time until the end. However, I thought it would create a devices.json file, but I can't find it. I found 2 files generated in the temporary directory: origin.json and paho_mqtt-1.6.1-py3-none-any.whl And if so, what should I do next? I know it's clearly indicated in the explanations, but I confess I don't understand everything :-( Thanks in any case for your VERY quick initial feedback, which may help me avoid another sleepless night... Below is the end of the executed script where I replaced the info after sha256 and the end of the directory stored sometime that it would indicate my devices... ` Created wheel for paho.mqtt: filename=paho_mqtt-1.6.1-py3-none-any.whl size=65701 sha256=abcdefgh123456 [notice] A new release of pip is available: 24.3.1 -> 25.0.1 |
Beta Was this translation helpful? Give feedback.
-
I think you have just installed the python requirements and not started the login process
This step is a little complex the first paragraph talks about how you will need to use chrome or similar to capture the Auth tokens https://github.com/hcpy2-0/hcpy?tab=readme-ov-file#authenticate-to-the-cloud-servers |
Beta Was this translation helpful? Give feedback.
-
THANK YOU very Much Meatballs for your help! Without you i will not find the progress. I got it :-) Also a little thing i see. In Chromium/developper Tool in the tab Headers the last character of code was missing if you stopped before the "%3", In the Payload tab, an extra character was displayed. This gave me the devices.json file and recognized my 5 Siemens devices :-) Now I just have to figure out what to do with Home Assistant's Add on :-) |
Beta Was this translation helpful? Give feedback.
sslpsk is only required if using python under 3.13.
If you upgrade python you shouldn't need to compile sslpsk
That said I haven't tried it in windows... 😅