I have been using Anaconda Python 3.6.5 successfully to write an 
application that reads data files and displays various kinds of graphs in 
pop-up windows using tkinter. While reading one file with over a million 
lines of data I tried to abort the read by killing the kernal, but I'm 
afraid that was a big mistake. Now, I am getting all kinds of tkinter 
callback errors whenever I try to display a graph.

I don't understand how the environment has changed or how to get back to a 
kernal that works properly. Everything had been working fine until I tried 
killing the kernal to abort the file read.

Here are the modules I am using:

import tkinter as tk
from tkinter import BOTH, TOP, LEFT, CENTER, X, Y, N, S, E, W, END
from tkinter import ttk, Canvas, Frame, Toplevel, Text, IntVar, StringVar, 
DoubleVar
from tkinter.filedialog import askopenfilename, askdirectory
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.mlab as m
import matplotlib.patches as patches
from matplotlib.figure import Figure
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, 
NavigationToolbar2Tk
from matplotlib.path import Path
from matplotlib.spines import Spine
from matplotlib.projections.polar import PolarAxes
from matplotlib.projections import register_projection

Here are the kinds of errors I am getting:

Exception in Tkinter callback

Traceback (most recent call last):

File "C:\Users\David\Anaconda3\lib\tkinter\__init__.py", line 1702, in 
__call__

return self.func(*args)

File "C:/Users/David/OneDrive/Documents/EEG Viewer/Phys_Viewer.py", line 
1964, in select_graph

self.draw_graph()

File "C:/Users/David/OneDrive/Documents/EEG Viewer/Phys_Viewer.py", line 
1787, in draw_graph

t_range = np.logical_and(ti < self.relative_df.index, 
self.relative_df.index < tf) # t_range is the same for all relative bands

AttributeError: 'NoneType' object has no attribute 'index'


It looks like my program isn't finding the objects it needs in the tkinter 
module (?)


Any suggestions?


David

-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to