Syntax error in file "/Users/{myuser}/wifite2/wifite/__main__.py", line 7.
Tagz133 opened this issue · 3 comments
When running sudo ./wifite.py
I get this error:
Traceback (most recent call last):
File "./wifite.py", line 6, in <module>
from wifite import __main__
File "/Users/toby/wifite2/wifite/__main__.py", line 7
raise Exception("You may need to run wifite from the root directory (which includes README.md)", e) from e
^
The traceback says it all.
Can you give me a solution?
@Tagz133 missed the last line where it says syntax invalid, which I think tripped up @kimocoder into thinking needed to read the exception when in reality it was arbitrarily the exception line using a line of syntax that triggered the problem.
i also ran into this, even though I was running it from the root directory using the command suggested by the readme. The issue, as best I can tell, is that the codebase references "python", but means python3. As stupid as it is, given how python2 has been deprecated for like 3 years, I still see most scripts references python3 explicitly. Thus I tried sudo python3 wifite.py
and no longer got that error.
This is particularly noticeable coming from the derv82 fork, which required I explicitly install python 2.7 for, coming to this fork, which is more modern.