quantopian / zipline

Zipline, a Pythonic Algorithmic Trading Library
https://www.zipline.io
Apache License 2.0
17.69k stars 4.73k forks source link

most examples don't work outside quantopian env #2652

Open richlysakowski opened 4 years ago

richlysakowski commented 4 years ago

Dear Zipline Maintainers,

Reopening this issue, because As of Sept 2019, this is still an open issue. No progress appears to have been made getting Qgrid and zipline to work completely offline.

Sincerely, $ whoami

peterhbromley commented 4 years ago

Hey @richdevboston, sorry for the delay here. The issue you outlined here and in https://github.com/quantopian/zipline/issues/2533 was caused by a bug where, when trying to import any single zipline example, we were unnecessarily importing all of the zipline examples. One of these examples (dual_ema_talib.py) requires TA-lib, which is not a zipline dependency. This bug is now fixed on master, see https://github.com/quantopian/zipline/pull/2638 for more details.

So, you can either install zipline from source, in which case all of the examples except dual_ema_talib.py will work (since it requires TA-lib to be installed), or you can continue to use the latest release of zipline and install TA-lib (we currently use version 0.4.9).

Thanks for your patience and let us know if you have any further trouble getting the examples to work.

bobmayuze commented 4 years ago

I ran into the same issue. And I have zipline 1.3.0 installed. However, mine is still telling me No module named 'talib'