我在debian10下安装vnpy没有问题,但是在终端下输入python run.py后打开vn trader,按照论坛说的去simnow修改了密码,按照下图所示输入了CTP参数,仍然无法连接sinow服务器。请大佬们指点一下该如何办?
我在debian10下安装vnpy没有问题,但是在终端下输入python run.py后打开vn trader,按照论坛说的去simnow修改了密码,按照下图所示输入了CTP参数,仍然无法连接sinow服务器。请大佬们指点一下该如何办?
你环境不对,去simnow看看吧
把服务器地址改为218.202.237.33:10203 218.202.237.33:10213之后,连接CTP闪退,提示:
terminate called after throwing an instance of 'std::runtime_error'
what(): locale::facet::_S_create_c_locale name not valid
Aborted
连接CTP过程中会产生locale错误:
terminate called after throwing an instance of 'std::runtime_error'
what(): locale::facet::_S_create_c_locale name not valid
Aborted
通过 sudo dpkg-reconfigure locales,然后添加zh_CN.GB18030选项框,可以解决这个问题。