Skip to content

Commit

Permalink
Adding a note for more clarity
Browse files Browse the repository at this point in the history
If md5sha1sum is not installed the following error will be thrown:

/bin/sh: md5sum: command not found
Traceback (most recent call last):
  File "test.py", line 118, in <module>
    d = compute_checksums(dirname='.', suffix='.py')
  File "test.py", line 77, in compute_checksums
    res, stat = compute_checksum(name)
  File "test.py", line 37, in compute_checksum
    return pipe(cmd)
  File "test.py", line 62, in pipe
    assert stat is None
AssertionError

The solution is to install it on the operating system
  • Loading branch information
nouraellm authored Mar 1, 2022
1 parent f9de5f7 commit e378f9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/find_duplicates.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def compute_checksum(filename):
filename: string
"""
# Note: installing md5sha1sum is required

cmd = 'md5sum ' + filename
return pipe(cmd)

Expand Down

0 comments on commit e378f9c

Please sign in to comment.