zhanghan1990 / zipline-chinese

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

导入数据报错 #1

Open ohblue opened 7 years ago

ohblue commented 7 years ago
(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'
fenggui321 commented 6 years ago

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

liujinhao1988 commented 6 years ago

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'

去掉了也不行