After some time spent talking to the poster in the U&L chat room, it because obvious this was a Python problem, specifically an encoding problem. The issue was that the poster's Python 3 was refusing to handle utf8 characters in scripts correctly. The specific errors in the question above were for a utf8 character, I think the copyright symbol.
I then found http://stackoverflow.com/q/25814675/350713https://stackoverflow.com/q/25814675/350713
and used the test script mentioned there, namely
filename = 'utf-8·filename.txt' print(filename) On my machine this errored out with Python 2 and worked with Python 3, as follows.
python test.py File "test.py", line 1 SyntaxError: Non-ASCII character '\xc2' in file test.py on line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details python3 test.py utf-8·filename.txt However, the poster got the same error for both.
Additionally, the poster got ascii for both Python 2 and 3 when running
/usr/bin/python -c 'import sys; print(sys.getdefaultencoding())' I got ascii for Python 2 and utf8 for Python 3.
Not knowing what was going on here, I then asked the experts in the Python room on Stack Overflow. Antti Haapala then asked some questions, and finally the following exchange occurred (http://chat.stackoverflow.com/transcript/message/22902726#22902726)
Antti Haapala : @WaitingforDev... what is your python3 version? WaitingforDev...: ooooops I run python3 --version and I get Python 2.7.8 So the poster's Python 3 was actually Python 2, which explained the behavior. I then asked
FaheemMitha: what does `ls -la /usr/bin/python3` show? Waiting for Dev...: @FaheemMitha it pointed to /usr/bin/python