Adding fixes for the DownloadUsage.py script, as it failed to execute due to requirements.txt and invalid syntax errors:
Fixed print statement declarations
File ".\DownloadUsage.py", line 23
print "Parsing Access Log..."
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Parsing Access Log...")?
File ".\DownloadUsage.py", line 39
print Fore.RED + "Could not find",(notfound),"artifacts(most likely deleted)"
^
SyntaxError: invalid syntax
Removed duplicate import statement (colorama)
Replaced 'ur' string type with the synonym 'r' (which is compatible with both Py2 and Py3).
File ".\DownloadUsage.py", line 26
p = re.compile(ur'(\d*)-(\d*-\d*\d*......)(........)(.*])(.*)(:)(.*)(for)(.)(.*)(\/)(.*)(\.)')
^
SyntaxError: invalid syntax
Removed dependencies from requirements.txt which are installed as part of Python and not found on Pip:
ERROR: Could not find a version that satisfies the requirement sys
ERROR: No matching distribution found for sys
ERROR: Could not find a version that satisfies the requirement re
ERROR: No matching distribution found for re
ERROR: Could not find a version that satisfies the requirement json
ERROR: No matching distribution found for json
Adding fixes for the DownloadUsage.py script, as it failed to execute due to requirements.txt and invalid syntax errors:
Changes verified on Python 3.8.2.