vn.py官网
开源量化社区
Member
avatar
加入于:
帖子: 5
声望: 0

我把4个头文件替换了,然后把thostmduserapi_se.so和thosttraderapi_se.so重命名并替换。运行generate_data_type.py 报编码错误

Traceback (most recent call last):
File "/home/disk1/PycharmProjects/xxx/vnpy-2.2.0/vnpy/api/ctp/generator/generate_data_type.py", line 76, in <module>
generator.run()
File "/home/disk1/PycharmProjects/xxx/vnpy-2.2.0/vnpy/api/ctp/generator/generate_data_type.py", line 25, in run
for line in self.f_cpp:
File "/usr/lib/python3.8/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 85: invalid continuation byte

Member
avatar
加入于:
帖子: 3164
声望: 185

编码解码的问题吧,可以在网上搜一下

© 2015-2019 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号-3

沪公网安备 31011502017034号