generates graphs. I made a executable file using Py2exe.
Everything is working fine, but when I exit from my
program, a window message pops out and tells me to look
at the log file. In the log file, here is what they said
C:\Users\dmckinnon\Desktop\ChrisKim\eSimulator_ori ginal\src\dist\library.zip\matplotlib\__init__.py: 572: UserWarning: Could not find matplotlibrc; using defaults
C:\Users\dmckinnon\Desktop\ChrisKim\eSimulator_ori ginal\src\dist\library.zip\matplotlib\__init__.py: 633: UserWarning: could not find rc file; returning defaults
Traceback (most recent call last):
File "Epages.pyc", line 305, in refractorySimulation
IndexError: list index out of range
Traceback (most recent call last):
File "Epages.pyc", line 305, in refractorySimulation
IndexError: list index out of range
Traceback (most recent call last):
File "Epages.pyc", line 305, in refractorySimulation
IndexError: list index out of range
Traceback (most recent call last):
File "Epages.pyc", line 305, in refractorySimulation
IndexError: list index out of range
Traceback (most recent call last):
File "Epages.pyc", line 305, in refractorySimulation
IndexError: list index out of range
Traceback (most recent call last):
File "Epages.pyc", line 277, in thresholdSimulation
IndexError: list index out of range
C:\Users\dmckinnon\Desktop\ChrisKim\eSimulator_ori ginal\src\dist\library.zip\matplotlib\__init__.py: 572: UserWarning: Could not find matplotlibrc; using defaults
C:\Users\dmckinnon\Desktop\ChrisKim\eSimulator_ori ginal\src\dist\library.zip\matplotlib\__init__.py: 633: UserWarning: could not find rc file; returning defaults
C:\Users\dmckinnon\Desktop\ChrisKim\eSimulator_ori ginal\src\dist\library.zip\matplotlib\__init__.py: 572: UserWarning: Could not find matplotlibrc; using defaults
C:\Users\dmckinnon\Desktop\ChrisKim\eSimulator_ori ginal\src\dist\library.zip\matplotlib\__init__.py: 633: UserWarning: could not find rc file; returning defaults
C:\Users\dmckinnon\Desktop\ChrisKim\eSimulator_ori ginal\src\dist\library.zip\matplotlib\__init__.py: 572: UserWarning: Could not find matplotlibrc; using defaults
C:\Users\dmckinnon\Desktop\ChrisKim\eSimulator_ori ginal\src\dist\library.zip\matplotlib\__init__.py: 633: UserWarning: could not find rc file; returning defaults
C:\Users\dmckinnon\Desktop\ChrisKim\eSimulator_ori ginal\src\dist\library.zip\matplotlib\__init__.py: 572: UserWarning: Could not find matplotlibrc; using defaults
C:\Users\dmckinnon\Desktop\ChrisKim\eSimulator_ori ginal\src\dist\library.zip\matplotlib\__init__.py: 633: UserWarning: could not find rc file; returning defaults
C:\Users\dmckinnon\Desktop\ChrisKim\eSimulator_ori ginal\src\dist\library.zip\matplotlib\__init__.py: 572: UserWarning: Could not find matplotlibrc; using defaults
C:\Users\dmckinnon\Desktop\ChrisKim\eSimulator_ori ginal\src\dist\library.zip\matplotlib\__init__.py: 633: UserWarning: could not find rc file; returning defaults
Basically, it is saying there is a "List Index out of range" in my code line 305
What is the problem with my code line 305?
I attached my program below...
The line 305 looks like this
Expand|Select|Wrap|Line Numbers
- def refractorySimulation(self):
- delaysteps = [ 10, 12, 14, 16, 18, 20, 25, 30, 35]
- delay2 = delaysteps[self.counter]
- self.counter = self.counter + 1
- self.delay2_spinBox.setValue(delay2)
- self.updateSimulation()
- # This terminates the loop by setting the Qtimer to a single shot at the second last value of 'currentsteps'
- if (self.counter >= (len(delaysteps) - 1)):
- self.timer.setSingleShot(True)
- localtimer = QtCore.QTimer() # need this second timer to delay activation of widgets until after final run is finished
- localtimer.singleShot(800, self.activateControlWidgets)
So please take a look at it and help me...
Thank you very much in advance....