Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #61571

Re: Figuring out what dependencies are needed

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'that?': 0.05; 'error:': 0.07; 'remaining': 0.07; 'skip:` 10': 0.07; 'any)': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'suggest': 0.14; 'code?': 0.16; 'dma': 0.16; 'fails.': 0.16; 'filename.': 0.16; 'kern': 0.16; 'last)': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:dependencies': 0.16; 'traceback.': 0.16; 'underlying': 0.16; 'files.': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'normally': 0.19; 'appears': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'interpret': 0.24; 'script': 0.25; 'extension': 0.26; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'points': 0.29; 'dec': 0.30; 'robert': 0.30; 'assert': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'subject:what': 0.31; 'file': 0.32; 'running': 0.33; '(most': 0.33; "i'd": 0.34; "can't": 0.35; 'something': 0.35; 'no,': 0.35; 'test': 0.35; 'but': 0.35; 'raising': 0.36; 'subject:needed': 0.38; 'to:addr:python-list': 0.38; 'rather': 0.38; 'recent': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'skip:u 10': 0.60; 'our': 0.64; 'more': 0.64; 'world': 0.66; 'believe': 0.68; 'results': 0.69; 'receive': 0.70; 'cut': 0.74; 'eco': 0.84; 'terrible': 0.84; '2013': 0.98
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Robert Kern <robert.kern@gmail.com>
Subject Re: Figuring out what dependencies are needed
Date Wed, 11 Dec 2013 13:38:24 +0000
References <e84a7ca4-5aa5-4c86-bf36-daa768d92aea@googlegroups.com> <52a8682b$0$29992$c3e8da3$5496439d@news.astraweb.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 213.1.240.226
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.1.1
In-Reply-To <52a8682b$0$29992$c3e8da3$5496439d@news.astraweb.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3899.1386769116.18130.python-list@python.org> (permalink)
Lines 41
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1386769116 news.xs4all.nl 2942 [2001:888:2000:d::a6]:41125
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:61571

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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