autotrash crashed with NameError in on_remove_error(): global name 'execinfo' is not defined

Bug #761780 reported by Ben Williams
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autotrash (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: autotrash

I installed the autotrash package and ran the command 'autotrash -d 30' with about 4 GB of files in my Trash folder. autotrash crashed with this traceback:

Traceback (most recent call last):
  File "/usr/bin/autotrash", line 317, in <module>
    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

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: autotrash 0.1.4-1
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
Architecture: i386
Date: Fri Apr 15 09:45:12 2011
ExecutablePath: /usr/bin/autotrash
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/autotrash -d 30
ProcEnviron:
 SHELL=bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
 LANGUAGE=en_US:en
PythonArgs: ['/usr/bin/autotrash', '-d', '30']
SourcePackage: autotrash
Title: autotrash crashed with NameError in on_remove_error(): global name 'execinfo' is not defined
UpgradeStatus: Upgraded to natty on 2011-04-13 (1 days ago)
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin mail netdev plugdev powerdev sambashare scanner video

Related branches

Revision history for this message
Ben Williams (benw) wrote :
tags: removed: need-duplicate-check
Ben Williams (benw)
visibility: private → public
Revision history for this message
A. Bram Neijt (bneijt) wrote :

Upstream has a fix:
https://github.com/bneijt/autotrash/pull/1

This is a typo in the autotrash script, version 0.1.5 is the first release to fix this.

Changed in autotrash (Ubuntu):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autotrash - 0.1.5-0ubuntu1

---------------
autotrash (0.1.5-0ubuntu1) natty; urgency=low

  * New upstream bugfix-only release (LP: #761780)
  * Bump Standard-Versions to 3.9.1; no additional changes required
 -- Lorenzo De Liso <email address hidden> Sat, 16 Apr 2011 12:15:25 +0200

Changed in autotrash (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.