cquest / tootbot

python bot to clone tweets to a mastodon account
GNU Affero General Public License v3.0
101 stars 35 forks source link

SyntaxError: Non-ASCII character '\xe2' in file tootbot.py on line 99 #2

Closed MyNameIsTroll closed 5 years ago

MyNameIsTroll commented 6 years ago

Hello, I'm trying to use the script but I have a small encoding problem apparently:

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

I tried to put this in the document header but it doesn't change anything, I still have the same error message.

#!/usr/bin/python3
# -*- coding: utf8 -*-
MyNameIsTroll commented 6 years ago

I was wrong, i executed the script in python2.7, with python3 it works perfectly. Thank you very much, problem solved ;)

cquest commented 5 years ago

You got it, this script is written for python 3.x