VarunS2002 / Python-NSE-Option-Chain-Analyzer

The NSE has a website which displays the option chain in near real-time. This program retrieves this data from the NSE site and then generates useful analysis of the Option Chain for the specified Index or Stock. It also continuously refreshes the Option Chain and visually displays the trend in various indicators useful for Technical Analysis.
GNU General Public License v3.0
390 stars 205 forks source link

Exception in tkinter module #36

Closed jainankur11788 closed 2 years ago

jainankur11788 commented 2 years ago

$ python3 oi.py Exception in Tkinter callback Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/tkinter/init.py", line 1883, in call return self.func(*args) File "oi.py", line 566, in start self.main_win() File "oi.py", line 960, in main_win self.sheet.enable_bindings( File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/tksheet/_tksheet.py", line 643, in enable_bindings self.MT.enable_bindings(bindings) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/tksheet/_tksheet_main_table.py", line 2067, in enable_bindings self.enable_bindings_internal(binding.lower()) AttributeError: 'tuple' object has no attribute 'lower'

VarunS2002 commented 2 years ago

@jainankur11788 Which version of tksheet are you using?

VarunS2002 commented 2 years ago

Type pip freeze or pip3 freeze in your terminal to check

VarunS2002 commented 2 years ago

@jainankur11788 As it turns out, this is an issue with the tksheet library itself -> https://github.com/ragardner/tksheet/issues/117 This should be fixed soon but for the time being you can switch to version 5.3.5 Run pip install tksheet==5.3.5 or pip3 install tksheet==5.3.5 in your terminal

jainankur11788 commented 2 years ago

Cool Downgrading the version of tksheet to 5.3.5 works. Thanks...!!

VarunS2002 commented 2 years ago

Cool Downgrading the version of tksheet to 5.3.5 works. Thanks...!!

The library was just updated. I believe the lastest version should fix the issue too. 5.3.7