jfrog / artifactory-scripts

Scripts for Artifactory (Usually, for REST API), community driven.
Apache License 2.0
150 stars 162 forks source link

Fixed: DownloadUsage.py invalid syntax, requirements.txt issues #55

Open james-flynn-ie opened 2 years ago

james-flynn-ie commented 2 years ago

Adding fixes for the DownloadUsage.py script, as it failed to execute due to requirements.txt and invalid syntax errors:

  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
  File ".\DownloadUsage.py", line 26
    p = re.compile(ur'(\d*)-(\d*-\d*\d*......)(........)(.*])(.*)(:)(.*)(for)(.)(.*)(\/)(.*)(\.)')
                     ^
SyntaxError: invalid syntax
   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

Changes verified on Python 3.8.2.

github-actions[bot] commented 2 years ago

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

james-flynn-ie commented 2 years ago

I have read the CLA Document and I hereby sign the CLA

james-flynn-ie commented 2 years ago

recheck