StamusNetworks/scirius

Unable to run the script manage.py

Geexirooz opened this issue · 2 comments

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/django_tables2/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/django_tables2/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?

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.

Yes I should have used python3.

Thanks for your comment.