Traceback (most recent call last): File "/usr/bin/autotrash", line 317, in sys.exit(main(sys.argv)) File "/usr/bin/autotrash", line 304, in main purge(options.trash_path, file_info['trash_info'], options.dryrun) File "/usr/bin/autotrash", line 82, in purge shutil.rmtree(target, False, on_remove_error) File "/usr/lib/python2.7/shutil.py", line 244, in rmtree rmtree(fullname, ignore_errors, onerror) File "/usr/lib/python2.7/shutil.py", line 244, in rmtree rmtree(fullname, ignore_errors, onerror) File "/usr/lib/python2.7/shutil.py", line 249, in rmtree onerror(os.remove, fullname, sys.exc_info()) File "/usr/bin/autotrash", line 36, in on_remove_error if execinfo[0] == errno.EPERM: NameError: global name 'execinfo' is not defined