paljsingh / impartus-downloader

Download Impartus lectures, convert to mkv for offline viewing.
GNU General Public License v3.0
23 stars 8 forks source link

Invalid Syntax error with python v3.5 #28

Closed paljsingh closed 3 years ago

paljsingh commented 3 years ago

image

paljsingh commented 3 years ago

Confirmed, that tksheet won't run wit python3.5

$ docker pull davidjfelix/python3.5 ...

$ docker run --rm -it --name python35 davidjfelix/python3.5 /bin/bash


tksheet installs with python3.5 without issues.

root@075ee9d2111f:/# pip3 install tksheet You are using pip version 7.1.0, however version 21.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Collecting tksheet Downloading https://files.pythonhosted.org/packages/49/94/b46edf6f489ca721d843e9601427c05c653261a8f80d6fff41d9dee53dd3/tksheet-5.0.21.tar.gz (74kB) 100% |████████████████████████████████| 77kB 1.2MB/s Installing collected packages: tksheet Running setup.py install for tksheet Successfully installed tksheet-5.0.21


but fails when importing.

root@075ee9d2111f:/# echo 'import tksheet' >> test.py

root@075ee9d2111f:/# python3 test.py Traceback (most recent call last): File "test.py", line 1, in import tksheet File "/usr/local/lib/python3.5/site-packages/tksheet/init.py", line 1, in from ._tksheet_column_headers import ColumnHeaders File "/usr/local/lib/python3.5/site-packages/tksheet/_tksheet_column_headers.py", line 696 hw = self.MT.GetHdrTextWidth(f"{data_col + 1}") + 5 ^ SyntaxError: invalid syntax

paljsingh commented 3 years ago

Updated README to mention that the app would require python version >= 3.6