Closed smujahed closed 8 years ago
Hi @smujahed ,
I'm not sure the commands that you used to install the zipline or bcolz conda packages, but seems like the bcolz package that's installed was compiled with a different version of numpy than you've got installed in the environment currently. It's not tagged with a numpy version, so I couldn't say what it's expecting. We have a python27-numpy19 tagged bcolz package available in the quantopian channel on anaconda, so you might try installing that one instead.
Hi @richafrank ,
Thank you for getting back to me so quickly and my apologies for not getting back to you sooner.
I'm not sure the commands that you used to install the zipline or bcolz conda packages
The command is listed in the "Reproduction Steps" part of the issue form. Nothing was done outside of what I have listed there.
It's not tagged with a numpy version, so I couldn't say what it's expecting. We have a python27-numpy19 tagged bcolz package available in the quantopian channel on anaconda, so you might try installing that one instead.
Absolutely right! You've hit the nail on the head. For some reason when I installed zipline
with conda
it would automagically download bcolz
from the default channel... I have no idea why, but I am going to assume that it has something to do with conda
wanting to install the latest version of things.
Your solution has 100% fixed the problem that I've been having, and for the benefit of the community I'll explain what I did to fix it.
Doing conda install --override-channels -c quantopian zipline
will not work because this stops conda
from getting the other dependencies from the default channel... It was a stupid mistake by me thinking back at it. I got things working by doing conda install -c quantopian bcolz=0.12.1
. If you omit the version number available from the quantopian channel it will bounce something back like 'Already up-to-date'. To find the version available on quantopian do conda search --override-channels -c quantopian bcolz
, omitting the --override-channels
will give you a list of all versions of bcolz
available in the channels in your .condarc
.
I hope this was helpful for anyone else having the same problem, and thanks again to @richafrank !!
All the best,
smujahed
Thanks for sharing your solution @smujahed !
Dear Zipline Maintainers,
Before I tell you about my issue, let me describe my environment:
Environment
conda
$ pip freeze
or$ conda list
Now that you know a little about me, let me tell you about the issue I am having:
Description of Issue
Tried to execute run_algo.py
(fh-cap)[ smujahed @ rubix : ~/fh-capital/test-algos ]
>>> run_algo.py --help
Here is how you can reproduce this issue on your machine:
Reproduction Steps
conda
$ create -n NAME zipline
$ source activate NAME
$ run_algo.py --help
What steps have you taken to resolve this already?
pandas
andnumpy
versions.pandas
andnumpy
although I cannot remember which versions.zipline 0.8.4
, same problem.Anything else?
I know you guys and girls put in a lot of effort to get this working, so thank you in advance for providing a great tool.
Sincerely,
smujahed