kk7ds / somecomfort

A python client and utility for interacting with Honeywell thermostats
GNU General Public License v3.0
35 stars 27 forks source link

What version of python has this been tested with? #32

Open glassl opened 3 years ago

glassl commented 3 years ago

I tried running somecomfort -h with Python 3.5.2 and got

Traceback (most recent call last): File "/home/pi/.pyenv/versions/3.5.2/bin/somecomfort", line 9, in load_entry_point('somecomfort==0.5.2', 'console_scripts', 'somecomfort')() File "/home/pi/.pyenv/versions/3.5.2/lib/python3.5/site-packages/pkg_resources/init.py", line 542, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/home/pi/.pyenv/versions/3.5.2/lib/python3.5/site-packages/pkg_resources/init.py", line 2569, in load_entry_point return ep.load() File "/home/pi/.pyenv/versions/3.5.2/lib/python3.5/site-packages/pkg_resources/init.py", line 2229, in load return self.resolve() File "/home/pi/.pyenv/versions/3.5.2/lib/python3.5/site-packages/pkg_resources/init.py", line 2235, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "/home/pi/.pyenv/versions/3.5.2/lib/python3.5/site-packages/somecomfort/main.py", line 9, in import prettytable File "/home/pi/.pyenv/versions/3.5.2/lib/python3.5/site-packages/prettytable/init.py", line 1, in from .prettytable import ( File "/home/pi/.pyenv/versions/3.5.2/lib/python3.5/site-packages/prettytable/prettytable.py", line 253 raise Exception(f"Index {index} is invalid, must be an integer or slice") ^ SyntaxError: invalid syntax

rwinte commented 3 years ago

prettytable dropped support for Python 3.5 after version 1.x. You appear to somehow have installed pretty table 2.x in your 3.5 installation. Trying downgrading to prettytable 1.0.1. I have no idea if somecomfort supports this version of prettytable, but if you need to use 3.5 this is worth a shot.