Oh I see. Yeah, you need zipline installed for this (either via setup.py
develop or add2virtualenv). I think that's the common use-case unless you
think otherwise?


On Tue, May 6, 2014 at 10:25 AM, Eddie Hebert <notifications@github.com>wrote:

> In scripts/run_algo.py:
>
> > +#
> > +#     http://www.apache.org/licenses/LICENSE-2.0
> > +#
> > +# Unless required by applicable law or agreed to in writing, software
> > +# distributed under the License is distributed on an "AS IS" BASIS,
> > +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> > +# See the License for the specific language governing permissions and
> > +# limitations under the License.
> > +
> > +import sys
> > +
> > +import zipline
> > +from zipline.utils import parse_args, run_pipeline
> > +
> > +if __name__ == "__main__":
> > +    parsed = parse_args(sys.argv[1:])
>
> Using 2.7. I think the difference might be your use of add2virtualenv vs.
> my use of the repo's directory structure. Should we standardize on one or
> the other. Or consider something like the dev install that pandas uses.
> (Which I think is analogous to add2virtualenv)
> … <#145d1ecbe9ff1dc1_>
> On May 6, 2014 10:21 AM, "Thomas Wiecki" <notifications@github.com>
> wrote: In scripts/run_algo.py: > +# > +#
> http://www.apache.org/licenses/LICENSE-2.0 > +# > +# Unless required by
> applicable law or agreed to in writing, software > +# distributed under the
> License is distributed on an "AS IS" BASIS, > +# WITHOUT WARRANTIES OR
> CONDITIONS OF ANY KIND, either express or implied. > +# See the License for
> the specific language governing permissions and > +# limitations under the
> License. > + > +import sys > + > +import zipline > +from zipline.utils
> import parse_args, run_pipeline > + > +if __name__ == "__main__": > +
> parsed = parse_args(sys.argv[1:]) The reason is that the ipython magic
> calls the same code for parsing the magic arguments. It's very odd that
> you're getting these errors which didn't occur for me. Is this python3 by
> any chance? — Reply to this email directly or view it on GitHub<
> https://github.com/quantopian/zipline/pull/325/files#r12326281> .
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/quantopian/zipline/pull/325/files#r12326556>
> .
>



-- 
Thomas Wiecki
PhD candidate, Brown University
Quantitative Researcher, Quantopian Inc, Boston