TheresAFewConors / Sooty

The SOC Analysts all-in-one CLI tool to automate and speed up workflow.
GNU General Public License v3.0
1.31k stars 205 forks source link

Non-ASCII character #37

Closed aki2419 closed 4 years ago

aki2419 commented 4 years ago

When trying to launch Sooty, getting the below error.

python Sooty.py File "Sooty.py", line 822 SyntaxError: Non-ASCII character '\xe2' in file Sooty.py on line 822, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

naveci commented 4 years ago

@TheresAFewConors Adding # coding: utf-8 to the top of the file might help Otherwise, changing that dot to a simple minus-sign should fix it as well.

The latter might be preferable.

TheresAFewConors commented 4 years ago

Hi @aki2419 Thanks for creating this ticket to tracker the issue. I have updated the code so if you want to redownload Sooty it should solve the issue you had.

For documentation: The bug was caused on line 822: print(' • %s' % each), replacing the bullet point with a hyphen solved this issue.

@naveci Same idea I had, simply add a hyphen! Thanks for the input!

aki2419 commented 4 years ago

@TheresAFewConors Yes, that solved the issue after I had made some changes. Since i was python 3.x i had to change some library names as well then it worked out great. You might want to change the bullet points at these locations as well. From 930 till 944, 960,963,966,977,970,971,974

naveci commented 4 years ago

put a fix for the other characters in a PR. @aki2419 I'm also running Python 3. 3.7 to be exact. What's not working and what is your exact version?

aki2419 commented 4 years ago

@naveci I am using 3.6 version of Python. As of now everything is working after I had changed the import modules name and removed the bullet points e.g. HTMLParser to html.parser, urllib.parser to url.parser. etc..