ImportError: No module named 'zipline.assets._assets'
在 2016年6月28日星期二 UTC+8下午8:54:34,Ying Zou写道:
Rich Frank
unread,
Jun 29, 2016, 9:33:31 AM6/29/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Zipline Python Opensource Backtester
That ImportError means python can't find the shared objects for zipline's C extensions. Usually that just means you need to build them. The easiest way to do that should be:
pip install -e <path to zipline repo>
We generally only run the tests with nosetests, so no guarantees, but I am currently able to run various test modules with unittest:
$ python -m unittest tests.test_labelarray ........ ---------------------------------------------------------------------- Ran 8 tests in 0.136s
OK
I do have nosetests installed in my environment, so not sure if that's required for the above.
Also be aware that that particular test is currently failing on master.