maaaaz / androwarn

Yet another static code analyzer for malicious Android applications
GNU Lesser General Public License v3.0
473 stars 159 forks source link

NameError: name 'sys' is not defined #35

Open harshitSingh1 opened 10 months ago

harshitSingh1 commented 10 months ago

┌──(root㉿kali)-[/home/kali/Desktop/androwarn-master] └─# python androwarn.py -i /home/kali/Desktop/ig-learner-master.zip -r html -v 3 Traceback (most recent call last): File "/home/kali/Desktop/androwarn-master/warn/search/application/application.py", line 28, in import play_scraper ModuleNotFoundError: No module named 'play_scraper'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/kali/Desktop/androwarn-master/androwarn.py", line 34, in from warn.search.search import grab_application_package_name File "/home/kali/Desktop/androwarn-master/warn/search/search.py", line 33, in from warn.search.application.application import * File "/home/kali/Desktop/androwarn-master/warn/search/application/application.py", line 30, in sys.exit("[!] The play-scraper module is not installed, please install it and try again") ^^^ NameError: name 'sys' is not defined

maaaaz commented 10 months ago

Thank you for pointing this "sys" import bug.

Please install these python dependencies: https://github.com/maaaaz/androwarn/blob/master/requirements.txt

TARZH3N commented 4 months ago

pip2 install play_scraper==0.4.0

The latest version of play_scraper 0.6.0 did not work for me and gave me the same error you encountered. Try 0.4.0