debugging issue; Deprecation and exception in TKinter ...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kokoloko
    New Member
    • Aug 2012
    • 1

    debugging issue; Deprecation and exception in TKinter ...

    hello everyone,

    So just a small introduction; i am desperate for some help, i have this software written in python that keeps giving me trouble even after i fix it bugs come out of nowhere and i really need to have it fixed fast because my work depends on it. I do have some background in programming but not in python ( in java ).

    The program is a user interface that is fed an input file and is supposed to produce an output file with graphs and numbers that are calculated from the input file.


    anyways here's the error i'm getting :

    C:\Python26\Lib \idlelib\idle.p yw:2763: DeprecationWarn ing: functions overriding warnings.showwa rning() must support the 'line' argument

    Exception in Tkinter callback
    Traceback (most recent call last):
    File "C:\Python26\li b\lib-tk\Tkinter.py", line 1410, in __call__
    return self.func(*args )
    File "C:\Users\Karim \Desktop\Dr.Nah as' software\SSDS_G UI_beta_BDF_0_2 _1.py", line 1493, in <lambda>
    cPerfCalcs = lambda: self.perfCalcs( ssds, ioData, tSlice)
    File "C:\Users\Karim \Desktop\Dr.Nah as' software\SSDS_G UI_beta_BDF_0_2 _1.py", line 1767, in perfCalcs
    ssds.data = ssds.GetNotchFi lter(ioData.rea d_data(tSlice), ioData,tSlice)
    File "C:\Users\Karim \Desktop\Dr.Nah as' software\SSDS_G UI_beta_BDF_0_2 _1.py", line 2781, in GetNotchFilter
    data[0] = data2[0]
    IndexError: list index out of range



    so i was wondering if anyone has an idea on how to approach this ? i would GREATLY appreciate it cause i am desperate need for this software to work.
    Thank you very much.
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    You will receive that error when data2 has no elements.
    Code:
    >>> s = []
    >>> s[0]
    Traceback (most recent call last):
      File "<interactive input>", line 1, in <module>
    IndexError: list index out of range
    >>>

    Comment

    Working...