Here is the stack trace: https://gist.github.com/guyjacks/a8e7cda23ed87a6900fd
Here is the code: https://gist.github.com/guyjacks/3b3ca07fa62bd679cca3
Installed packages: https://gist.github.com/guyjacks/8e582fcf5d19547dd729
Python version: 3.2.5 on Mac OSX.
Virtualenv is activated so its not that!
FYI, it works fine when using cpython 3.4.3.
The error message:
DEFAULT_ERROR_LOG_FORMAT = (u'{0:%Y-%m-%d %H:%M:%S} [FALCON] [ERROR]'
^
SyntaxError: invalid syntax
is pretty clear here. Python cannot make sense of the string.
The u''
syntax for strings is only supported for Python 2 and Python >= 3.3. Python 3.2 is really old. You need to upgrade your Python version. If possible, I would recommend to switch to Python 3.5 right away.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.