StamusNetworks / scirius

Scirius is a web application for Suricata ruleset management and threat hunting.
GNU General Public License v3.0
614 stars 150 forks source link

Unable to run the script manage.py #213

Closed Geexirooz closed 3 years ago

Geexirooz commented 3 years ago

Hello there,

I tried to install Scirius on Ubuntu 18.04, everything was going well but I encountered this error message when I ran "python manage.py migrate".

_"SyntaxError: Non-ASCII character '\xe2' in file /usr/local/lib/python2.7/dist-packages/djangotables2/tables.py on line 129, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details."

After that, I put the line "# -- coding: utf8 --" at the top of the file "/usr/local/lib/python2.7/dist-packages/django_tables2/tables.py". Then, I came across new error as follows.

_File "/usr/local/lib/python2.7/dist-packages/djangotables2/tables.py", line 188 class Table(metaclass=DeclarativeColumnsMetaclass): ^ SyntaxError: invalid syntax

Screenshot from 2020-12-13 11-43-08

Could you help me to solve the issue, please?

JSkier21 commented 3 years ago

I ran into this too initially.

Make sure you run python3 instead of python for the initialization and follow commands to get the server up. I would revert the change you made first as well.

Geexirooz commented 3 years ago

Yes I should have used python3.

Thanks for your comment.