I have a python code which runs perfectly and I compiled it using py_compile.compile. The compile operation also worked nicely without any errors.
However, when I use this pyc file I get an error like
File "E:/tech/tech.pyc", line 1
SyntaxError: Non-ASCII character '\xf3' in file E:/tech/tech.pyc on line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
My question is how do I debug this error? The first line in my script is import os. I tried using
#!/usr/bin/python
It does not help either. Any suggestions on how this can be debugged?