On 12/12/2013 4:53 PM, sal i wrote:
This is the entire testing file along with the error at the bottom.

data = load_from_yahoo()

You're _still_ not passing into `load_from_yahoo` either `indexes` or `stocks` parameters, as I tried to point out by highlighting:

    assert indexes is not None or stocks is not None, """

Either `indexes` must have a value or stocks must.

AssertionError:
must specify stocks or indexes

Which is exactly what the error is telling you.

This isn't a dependency issue. You just need to read the documentation, work out what format it requires indexes or stocks to be specified in, and then pass them to `load_from_yahoo`. Calling it without _any_ arguments will give you the exception you're seeing.

Look at the file examples/dual_moving_average.py, it shows you exactly what you need:

    data = load_from_yahoo(stocks=['AAPL'], indexes={}, start=start,
                           end=end)


--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to