In my case, it was a problem with my current directory.
I added the following lines to set the current working directory to my script directory.
We hope this solves the problem if administrator permission is not required to write to the script directory.
import sys, os def getScriptPath(): return os.path.dirname(os.path.realpath(sys.argv[0])) print 'Current working directory : ', os.getcwd() os.chdir(getScriptPath()) print 'Changed working directory : ', os.getcwd()
source share