Personal tools
You are here: Home / Documentation / Support / FAQ / Python complains about non-ASCII characters

Python complains about non-ASCII characters

You cannot import Biskit because of some strange SyntaxError...

All Biskit Python files should only contain plain ASCII characters -- we don't want to define special encodings. Otherwise you will get the following error:

SyntaxError: Non-ASCII character '\xc3' in file ExeConfig.py on line 21, but no encoding
declared; see http://www.python.org/peps/pep-0263.html for details

However, if your system is using a non-ASCII language flavor like Spanish or French, subversion attempts to make you really feel at home and will use non-ASCII characters in the $Date: $ string of our python files. And, voilĂ  ;), everything stops working. You can prevent this by setting an environment variable before checking out Biskit:

export LC_ALL=C

Add this line to .bashrc or .zshrc and check out a fresh Biskit copy.