linecache seems to no longer be used in this file.  please remove import if this is the case.