zhanghan1990 / zipline-chinese

zipline 是开源量化平台,但是当前zipline 并不支持A股的测试,很多在线平台如优矿,聚宽等都是基于zipline,本项目改进zipline,使得zipline支持A股测试

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

导入数据报错

ohblue opened this issue · comments

commented
(zipline_env) ❯ python mongodb.py
Traceback (most recent call last):
  File "mongodb.py", line 305, in <module>
    l.insert_zipline_treasure_format()
  File "mongodb.py", line 240, in insert_zipline_treasure_format
    self.treasure['treasure'].drop()
AttributeError: LoadDataCVS instance has no attribute 'treasure'

@ohblue mongodb.py文件里面conn函数在main被注释了。你打开去掉main部分注释就好了。

RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb
Traceback (most recent call last):
File "/home/liujinhao/zipline-chinese/zipline/data/mongodb.py", line 301, in
l.insert_zipline_treasure_format()
File "/home/liujinhao/zipline-chinese/zipline/data/mongodb.py", line 240, in insert_zipline_treasure_format
self.treasure['treasure'].drop()
AttributeError: 'LoadDataCVS' object has no attribute 'treasure'

去掉了也不行