Skip to content

Commit e378f9c

Browse files
authored
Adding a note for more clarity
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
1 parent f9de5f7 commit e378f9c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

code/find_duplicates.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def compute_checksum(filename):
3838
3939
filename: string
4040
"""
41+
# Note: installing md5sha1sum is required
42+
4143
cmd = 'md5sum ' + filename
4244
return pipe(cmd)
4345

0 commit comments

Comments
 (0)