how to fix ImportError python
<p>I have a file beginning with <code>from moviepy.editor import *</code>.
when I run this file I get the error: </p>

<blockquote>
  <p>Traceback (most recent call last):<br>  File "moviepy.py", line 2, in 
     <br> from moviepy.editor import *
    <br>File "/home/debian/Videos/moviepy.py", line 2, in <br>
              from moviepy.editor import *
  <br>ImportError: No module named editor</p>
</blockquote>

<p>the strange thing is I am 100% sure moviepy is installed.
I checked sys.path and in one of the paths is a folder called moviepy with multiple files inside including __init__.py __init__.pyc and editor.py
so what am I doing wrong?</p>

<p>Your filename <code>moviepy.py</code> shadows installed package. Rename your main file and everything should work fine (if moviepy is installed in used interpreter).</p>

python python-2.7 python-import importerror