flipkart-incubator / watchdog

Watchdog - A Comprehensive Security Scanning and a Vulnerability Management Tool.
Apache License 2.0
412 stars 103 forks source link

run.py gives me the following errors #10

Open snufas opened 6 years ago

snufas commented 6 years ago

import-im6.q16: unable to open X server ' @ error/import.c/ImportImageCommand/360. import-im6.q16: unable to open X server' @ error/import.c/ImportImageCommand/360. import-im6.q16: unable to open X server ' @ error/import.c/ImportImageCommand/360. from: too many arguments from: too many arguments from: too many arguments from: too many arguments ./run.py: line 9: syntax error near unexpected token(' ./run.py: line 9: `def main(argv):'

harridu commented 5 years ago

Please make sure that the first line in run.py is something like #!/usr/bin/python or #!/usr/bin/env python. Without this line run.py is executed using /bin/sh or /bin/bash, giving you the "import" tool from imagemagick.