Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'from:addr:yahoo.co.uk': 0.04; 'error:': 0.07; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'setup.py': 0.09; 'python': 0.11; 'assume': 0.14; 'language.': 0.14; 'dma': 0.16; 'folder,': 0.16; 'folder.': 0.16; 'ignoring': 0.16; 'last)': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'stats': 0.16; 'subject:dependencies': 0.16; 'folder': 0.16; 'language': 0.16; 'wrote:': 0.18; 'library': 0.18; 'work,': 0.20; 'header:User-Agent:1': 0.23; "aren't": 0.24; "i've": 0.25; 'script': 0.25; 'downloaded': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; "i'm": 0.30; 'included': 0.31; 'usually': 0.31; 'libraries': 0.31; 'subject:what': 0.31; 'file': 0.32; 'this.': 0.32; 'probably': 0.32; 'url:python': 0.33; 'running': 0.33; '(most': 0.33; 'mac': 0.33; "i'd": 0.34; 'test': 0.35; 'but': 0.35; 'thanks': 0.36; "i'll": 0.36; 'url:org': 0.36; 'should': 0.36; 'others.': 0.38; 'subject:needed': 0.38; 'to:addr :python-list': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'our': 0.64; 'results': 0.69; 'receive': 0.70; 'received:2': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Figuring out what dependencies are needed Date: Wed, 11 Dec 2013 13:25:50 +0000 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-2-98-195-123.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1386768605 news.xs4all.nl 2943 [2001:888:2000:d::a6]:59760 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:61569 On 11/12/2013 12:44, sal@nearlocal.com wrote: > I'm a Python beginner. I want to use it for stats work, so I downloaded Anaconda which has several of the popular libraries already packaged for Mac OS X. > > Now I'd like to use the backtesting package from zipline (zipline.io), but while running the test script in iPython, I receive the following error: > > AssertionError Traceback (most recent call last) > in () > ----> 1 data = load_from_yahoo() > 2 dma = DualMovingAverage() > 3 results = dma.run(data) > > 1) I assume that I'm missing some packages that aren't included in Anaconda, but how do I know which ones to upload? > > 2) Often I'll just unzip a library file and put the main folder in the iPython folder, but I notice there's usually a setup.py file in the main library folder. I've been ignoring this. Should I be using it? > > Thanks > https://pypi.python.org/pypi/z3c.dependencychecker and probably others. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence