After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 610768 - SHA1/MD5 Context Menu Commands
SHA1/MD5 Context Menu Commands
Status: RESOLVED DUPLICATE of bug 640387
Product: gnome-commander
Classification: Other
Component: plugins
unspecified
Other Linux
: Normal normal
: 1.2.9
Assigned To: epiotr
epiotr
Depends on:
Blocks:
 
 
Reported: 2010-02-23 03:34 UTC by Darr247
Modified: 2011-01-24 17:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Darr247 2010-02-23 03:34:43 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):
  • File "/usr/lib/python2.6/site-packages/abrt_exception_handler.py", line 267 in <lambda>
    handleMyException((etype, value, tb))
  • File "/usr/lib/python2.6/site-packages/abrt_exception_handler.py", line 213 in handleMyException
    syslog.syslog("abrt: Pyhook: Detected unhandled exception in %s " % sys.argv[0])
AttributeError: 'module' object has no attribute 'argv'

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.
Comment 1 nm 2010-12-20 23:24:42 UTC
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?
Comment 2 epiotr 2010-12-21 10:32:56 UTC
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.
Comment 3 epiotr 2011-01-24 17:12:00 UTC
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 ***