Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IP150-MQTTv2.py modifications to python v3 #14

Open
chlitses opened this issue Dec 21, 2021 · 3 comments
Open

IP150-MQTTv2.py modifications to python v3 #14

chlitses opened this issue Dec 21, 2021 · 3 comments

Comments

@chlitses
Copy link

chlitses commented Dec 21, 2021

Hi all.

I am trying to make the necessary modifications for this topic to run the script in python3.
Any ideas, since I am stuck with some errors in IP150-MQTTv2.py & the client.py?

ParadoxIP150v2-master.zip

Or any other ideas how to run the whole process in Python2?

@saundersrg
Copy link

I’m still running in 2.7 side by side with 3.9, keen to see if there are updates in this thread!

@chlitses
Copy link
Author

I’m still running in 2.7 side by side with 3.9, keen to see if there are updates in this thread!

is there any way that I run the whole process from 2.7?
when I open python s/w from raspberry, I have only option to compile with v3.

@saundersrg
Copy link

saundersrg commented Jan 10, 2022

You should be able to use apt-get to install 2.7, then you can update alternatives if I recall if you want to run it commandline. I've got it running as a service and specify 2.7 in there:

[Unit]
Description=Starts and stops the Paradox IP150 Python script
Documentation=https://github.com/Tertiush/ParadoxIP150v2
Wants=network-online.target
After=network-online.target

[Service]
EnvironmentFile=/opt/paradoxip150v2/config.ini
User=homeassistant
Group=homeassistant
WorkingDirectory=/opt/paradoxip150v2/
PermissionsStartOnly=true
ExecStart=/usr/bin/python2.7 /opt/paradoxip150v2/IP150-MQTTv2.py
TimeoutStopSec=20

[Install]
WantedBy=multi-user.target

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants