Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #61571
| From | Robert Kern <robert.kern@gmail.com> |
|---|---|
| Subject | Re: Figuring out what dependencies are needed |
| Date | 2013-12-11 13:38 +0000 |
| References | <e84a7ca4-5aa5-4c86-bf36-daa768d92aea@googlegroups.com> <52a8682b$0$29992$c3e8da3$5496439d@news.astraweb.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3899.1386769116.18130.python-list@python.org> (permalink) |
On 2013-12-11 13:27, Steven D'Aprano wrote: > On Wed, 11 Dec 2013 04:44:53 -0800, sal wrote: > >> Now I'd like to use the backtesting package from zipline (zipline.io), > > ".io" is not normally a file extension for Python files. Are you sure > that's Python code? That's a package name, not a filename. >> but while running the test script in iPython, I receive the following >> error: >> >> AssertionError Traceback (most recent call >> last) >> <ipython-input-6-f921351f78e2> in <module>() >> ----> 1 data = load_from_yahoo() >> 2 dma = DualMovingAverage() >> 3 results = dma.run(data) > > I think you may be missing one or more lines? Perhaps something like > "AssertionError: blah blah blah" appearing after that? > > > For those unfamiliar with iPython, rather than a standard Traceback, that > appears to suggest that dma.run(data) is raising AssertionError, but we > can't see what (if any) error message is given by that assert, or how it > fails. No, the ----> arrow points to the active line in that frame of the traceback. Unfortunately, the OP cut off the remaining frames under `load_from_yahoo()` actually has the assert that is failing. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Figuring out what dependencies are needed sal@nearlocal.com - 2013-12-11 04:44 -0800
Re: Figuring out what dependencies are needed Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-11 13:27 +0000
Re: Figuring out what dependencies are needed Robert Kern <robert.kern@gmail.com> - 2013-12-11 13:38 +0000
Re: Figuring out what dependencies are needed Ian Kelly <ian.g.kelly@gmail.com> - 2013-12-11 13:21 -0700
Re: Figuring out what dependencies are needed Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-11 13:25 +0000
Re: Figuring out what dependencies are needed alex23 <wuwei23@gmail.com> - 2013-12-12 15:48 +1000
Re: Figuring out what dependencies are needed sal i <sal@nearlocal.com> - 2013-12-11 22:53 -0800
Re: Figuring out what dependencies are needed alex23 <wuwei23@gmail.com> - 2013-12-17 13:30 +1000
csiph-web