GNOME Bugzilla – Bug 610768
SHA1/MD5 Context Menu Commands
Last modified: 2011-01-24 17:12:00 UTC
Using the md5sum and sha1sum commands throws errors, as apparently the modules those commands depend on are no longer available. Here's the error messages generated when the sha1sum command was used on a PNG file: ~]# /usr/lib/gnome-commander/plugins/sha1sum.py:30: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha /usr/lib/python2.6/site-packages/abrt_exception_handler.py:210: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5 Error in sys.excepthook: Traceback (most recent call last):
+ Trace 220684
handleMyException((etype, value, tb))
syslog.syslog("abrt: Pyhook: Detected unhandled exception in %s " % sys.argv[0])
Original exception was: Traceback (most recent call last): File "/usr/lib/gnome-commander/plugins/sha1sum.py", line 40, in main f = file(active_cwd+os.sep+uri.short_name, 'rb') IOError: [Errno 2] No such file or directory: '/U/Temp/AX4P3000/Bugs/GC1285-Toolbars.png' ** (gnome-commander:20119): WARNING **: Call to sha1sum.main() failed Copying to: /tmp/gcmd-root-b8Dy1M/GC1285-Toolbars.png (gnome-commander:20119): Gtk-CRITICAL **: gtk_window_resize: assertion `width > 0' failed Traceback (most recent call last): File "/usr/lib/gnome-commander/plugins/sha1sum.py", line 37, in main f_sha1sum = file(inactive_cwd+os.sep+parent_dir+'.sha1sum', 'w') IOError: [Errno 2] No such file or directory: '/U/Temp/AX4P3000/Bugs/Pictures.sha1sum' ** (gnome-commander:20119): WARNING **: Call to sha1sum.main() failed Traceback (most recent call last): File "/usr/lib/gnome-commander/plugins/sha1sum.py", line 37, in main f_sha1sum = file(inactive_cwd+os.sep+parent_dir+'.sha1sum', 'w') IOError: [Errno 2] No such file or directory: '/U/Temp/AX4P3000/Bugs/Pictures.sha1sum' Not sure it's pertinent, but here's the output from gconftool-2 -g /apps/gedit-2/plugins/active-plugins [docinfo,modelines,filebrowser,spell,time] Thanks.
Which version of gcmd is this? The git version of gcmd (1.4 2010-12-18) is using haslib instead now. This is probably not released for the 1.2.x.x versions but for the latest bleeding edge gcmd. Set this to fixed since its in latest git?
Indeed, md5/sha python plugins in 1.2.8.x series use deprecated modules, but in this case they are not the problem, as python-2.6 still supports these modules... The cause for trouble comes from: IOError: [Errno 2] No such file or directory: '/U/Temp/AX4P3000/Bugs/GC1285-Toolbars.png' and this can be the result path miscalculation (/U/Temp/AX4P3000/Bugs/) or lack of access to the file BTW - the upcoming 1.4 version has plugins ported to the new hashlib.
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 640387 ***