ricequant / rqalpha

A extendable, replaceable Python algorithmic backtest && trading framework supporting multiple securities
http://rqalpha.io
Other
5.39k stars 1.62k forks source link

In OSX, local strategy code seems not support UTF-8 encoding. #213

Closed Ceruleanacg closed 6 years ago

Ceruleanacg commented 7 years ago

1. RQAlpha的版本

3.0.6

2. Python的版本

2.7

3. 是Windows/Linux/MacOS or others?

OSX

4. 您出现问题对应的源码/或者能复现问题的简易代码 以及对应的配置

I have statement of encoding:
image And set my pycharm file encoding as:
image

5. 您出现的错误堆栈日志信息

image

Ceruleanacg commented 7 years ago

But if I do not have statement of coding=utf-8, there will be like this: image

cedricporter commented 6 years ago

可以升级到 python 3 ,兼容性会好些,就没有这些问题了。

Python 2.7 will not be maintained past 2020. https://pythonclock.org/