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

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

Open
glassl opened this issue Mar 20, 2021 · 1 comment
Open

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

glassl opened this issue Mar 20, 2021 · 1 comment

Comments

@glassl
Copy link

glassl commented Mar 20, 2021

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
Copy link

rwinte commented Apr 22, 2021

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.

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