dmnfarrell / tkintertable

A pure Python library for adding tables to a Tkinter application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sys is not defined

AndrewMarines opened this issue · comments

The sys library was not imported on Dialogs.py and Tables.py.
if (sys.version_info > (3, 0)):
NameError: name 'sys' is not defined

Added import sys after after from __future__ import absolute_import, division, print_function. Now working.

Yes sorry have made this change now.

Hi, i added import sys after after from future import absolute_import, division, print_function.But still doesn't worK.Do you have any ideas?

Hi, i added import sys after after from future import absolute_import, division, print_function.But still doesn't worK.Do you have any ideas?

Can you please share the error?

image
I changed a laptop to run this(the same code), and this question solved automatically.
The python version of the laptop that exception occurred is 3.9.4, and the python version of the "right" laptop is 3.7.5.

You probably had not updated tkintertable on the one that errored.

Thank you for your helping! :) Your code is amazing, and helped me a lot.