title: Python scripts works in IDLE but not as a .desktop icon
body: <p>I am trying to run a python3 script on icon (.desktop) click from an LX desktop environment.  It worked before, but now for some reason it wasn't opening, but still working in IDLE3.  So, I typed in "python3 oldtext.py" into the terminal and <strong>got these errors:</strong></p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;frozen importlib._bootstrap&gt;", line 2218, in _find_and_load_unlocked
  AttributeError: 'module' object has no attribute '__path__'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "oldtext.py", line 3, in &lt;module&gt;
      from tkinter import *
    File "/home/pi/Desktop/tkinter.py", line 13, in &lt;module&gt;
      from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
    File "/usr/lib/python3/dist-packages/matplotlib/backends/backend_tkagg.py", line 7, in &lt;module&gt;
      from six.moves import tkinter_filedialog as FileDialog
    File "/usr/lib/python3/dist-packages/six.py", line 89, in __get__
  result = self._resolve()
    File "/usr/lib/python3/dist-packages/six.py", line 108, in _resolve
  return _import_module(self.mod)
    File "/usr/lib/python3/dist-packages/six.py", line 79, in _import_module
  __import__(name)
  ImportError: No module named 'tkinter.filedialog'; 'tkinter' is not a package
  </code></pre>
  
  <p>But it (tkinter) is already installed when I try to install it...</p>
  
  <p>Since it says import error, <strong>here are my imports</strong>:</p>
  
  <pre><code>#/usr/bin/env python3
  #import necessary packages
  from tkinter import *
  try:
      import Tkinter as tk
  except ImportError:
      import tkinter as tk
  from PIL import ImageTk, Image
  import time
  import io
  import os
  import serial
  from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
  from matplotlib.figure import Figure
  from matplotlib import pyplot as plt
  import matplotlib.animation as animation
  import numpy as np
  import sys
  import random
  </code></pre>
  
  <p>Also, <strong>here is the .desktop file.</strong>  (I did make the script executable)</p>
  
  <pre><code>[Desktop Entry]
  Name=GUI DESKTOP
  Exec=/home/pi/Desktop/oldtext.py
  Icon=/usr/share/pixmaps/idle.xpm
  Terminal=false
  Type=Application
  Categories=Application;Development;
  StartupNotify=true
  </code></pre>
  
  <p>What is going on here?  I am assuming these errors are what is causing the file not to open upon icon click.  Does anyone have a clue?</p>