Dear Zipline Maintainers,
Before I tell you about my issue, let me describe my environment:
How did you install Zipline: (pip, conda, or other (please explain)):
Step 1: virtualenv venv
source venv/bin/activate pip3 install cython numpyStep 4: pip3 install zipline
Python packages: Cython==0.29.6
numpy==1.16.2
Now that you know a little about me, let me tell you about the issue I am
having:
Command "/Users/prasant/Documents/Programming/Python/Trading/venv/bin/python3.7 /Users/prasant/Documents/Programming/Python/Trading/venv/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/xx/hbg55ynx52d_1qpy5npcb0m40000gn/T/pip-build-env-87ox9ql3/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- wheel setuptools Cython "numpy==1.9.3; python_version=='3.5'" "numpy==1.12.1; python_version=='3.6'" "numpy==1.13.1; python_version>='3.7'"" failed with error code 1 in NoneHere is how you can reproduce this issue on your machine:
virtualenv venvpip3 install cython numpypip3 install ziplineI have also tried to install this outside of the VirtualEnv. The packages are as below:
appnope==0.1.0
backcall==0.1.0
beautifulsoup4==4.7.1
bleach==3.0.2
bs4==0.0.1
certifi==2018.11.29
chardet==3.0.4
cloudpickle==0.7.0
cycler==0.10.0
Cython==0.29.6
dask==1.1.1
decorator==4.3.0
defusedxml==0.5.0
entrypoints==0.2.3
fuzzywuzzy==0.17.0
h5py==2.9.0
idna==2.8
inflection==0.3.1
ipykernel==5.1.0
ipython==7.1.1
ipython-genutils==0.2.0
ipywidgets==7.4.2
jedi==0.13.1
jellyfish==0.7.1
Jinja2==2.10
jsonschema==2.6.0
jupyter==1.0.0
jupyter-client==5.2.3
jupyter-console==6.0.0
jupyter-contrib-core==0.3.3
jupyter-contrib-nbextensions==0.5.1
jupyter-core==4.4.0
jupyter-highlight-selected-word==0.2.0
jupyter-latex-envs==1.4.6
jupyter-nbextensions-configurator==0.4.1
kiwisolver==1.0.1
lxml==4.3.0
MarkupSafe==1.1.0
matplotlib==3.0.2
mistune==0.8.4
more-itertools==4.3.0
mpmath==1.1.0
nbconvert==5.4.0
nbformat==4.4.0
networkx==2.2
ngram==3.3.2
nltk==3.4
nose==1.3.7
notebook==5.7.2
numpy==1.16.2
pandas==0.23.4
pandocfilters==1.4.2
parso==0.3.1
pexpect==4.6.0
pickleshare==0.7.5
Pillow==5.4.1
prometheus-client==0.4.2
prompt-toolkit==2.0.7
ptyprocess==0.6.0
Pygments==2.2.0
pyparsing==2.1.10
python-dateutil==2.7.5
python-Levenshtein==0.12.0
pytz==2016.10
PyWavelets==1.0.1
PyYAML==3.13
pyzmq==17.1.2
qtconsole==4.4.3
Quandl==3.4.5
requests==2.21.0
scikit-image==0.14.2
scikit-learn==0.20.2
scipy==1.1.0
seaborn==0.9.0
Send2Trash==1.5.0
shap==0.28.3
singledispatch==3.4.0.3
six==1.11.0
soupsieve==1.8
sympy==1.3
terminado==0.8.1
testpath==0.4.2
toolz==0.9.0
tornado==5.1.1
tqdm==4.31.0
traitlets==4.3.2
urllib3==1.24.1
virtualenv==16.1.0
wcwidth==0.1.7
webencodings==0.5.1
widgetsnbextension==3.4.2
wordcloud==1.5.0
...
...
Sincerely,
Prasant
Hi @prasants can you try installing Zipline in a Py35 virtualenv? We don't yet have support / packages for Py37
Thanks for your help. I did just that, and this is the error I receive:
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/xx/hbg55ynx52d_1qpy5npcb0m40000gn/T/pip-install-xid89tab/bcolz/
I am having the same problem. I am using python 3.7.4 on Mac OS 10.14. I can't even figure out how to downgrade python to 3.5 or even install a new version of python 3.5.
Brew switch doesn't work:
(base) Rogers-MacBook-Air:~ rjbos2$ brew switch python 3.5
Error: python does not have a version "3.5" in the Cellar.
python installed versions: 3.7.4
Any suggestions are welcome. Thanks!
Ok, I made a Python 3.5 virtual env using conda, but I still cannot install zipline due to conflicts in the package versions. Any suggestions?
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Package toolz conflicts for:
zipline -> toolz[version='>=0.7.4|>=0.8.2']
Package networkx conflicts for:
zipline -> networkx[version='>=1.9.1|>=1.9.1,<2.0']
Package setuptools conflicts for:
zipline -> setuptools[version='>18.0']
Package scipy conflicts for:
zipline -> scipy[version='>=0.15.1|>=0.17.1']
Package tk conflicts for:
python=3.5 -> tk[version='8.6.|>=8.6.7,<8.7.0a0']
Package contextlib2 conflicts for:
zipline -> contextlib2[version='>=0.4.0']
Package sqlalchemy conflicts for:
zipline -> sqlalchemy[version='>=1.0.8']
Package readline conflicts for:
python=3.5 -> readline[version='7.|>=7.0,<8.0a0']
Package pip conflicts for:
zipline -> pip[version='>=7.1.0']
python=3.5 -> pip
Package libffi conflicts for:
python=3.5 -> libffi[version='3.2.|>=3.2.1,<4.0a0']
Package sortedcontainers conflicts for:
zipline -> sortedcontainers[version='>=1.4.4']
Package logbook conflicts for:
zipline -> logbook[version='>=0.12.5']
Package pytz conflicts for:
zipline -> pytz[version='>=2015.4|>=2016.4']
Package numpy conflicts for:
zipline -> numpy[version='1.10.|1.8.|1.9.|>=1.11,<1.12.0a0|>=1.14,<1.15.0a0']
Package empyrical conflicts for:
zipline -> empyrical[version='>=0.1.11|>=0.2.2|>=0.4.2|>=0.5.0']
Package lru-dict conflicts for:
zipline -> lru-dict[version='>=1.1.4']
Package bottleneck conflicts for:
zipline -> bottleneck[version='>=1.0.0']
Package six conflicts for:
zipline -> six[version='>=1.10.0|>=1.9.0']
Package ta-lib conflicts for:
zipline -> ta-lib
Package pandas conflicts for:
zipline -> pandas[version='>=0.16.1|>=0.16.1,<0.18|>=0.18.1,<0.19|>=0.18.1,<=0.22']
Package cachetools conflicts for:
zipline -> cachetools[version='>=1.1.5']
Package mako conflicts for:
zipline -> mako[version='>=1.0.1']
Package matplotlib conflicts for:
zipline -> matplotlib
Package cython conflicts for:
zipline -> cython[version='>=0.22.1|>=0.25.2']
Package markupsafe conflicts for:
zipline -> markupsafe[version='>=0.23']
Package xz conflicts for:
python=3.5 -> xz[version='>=5.2.3,<6.0a0|>=5.2.4,<6.0a0']
Package pandas-datareader conflicts for:
zipline -> pandas-datareader[version='>=0.2.1|>=0.2.1,<0.6']
Package ncurses conflicts for:
python=3.5 -> ncurses[version='>=6.0,<7.0a0|>=6.1,<7.0a0']
Package numexpr conflicts for:
zipline -> numexpr[version='>=2.4.3|>=2.4.6|>=2.6.1']
Package zlib conflicts for:
python=3.5 -> zlib[version='>=1.2.11,<1.3.0a0']
Package alembic conflicts for:
zipline -> alembic[version='>=0.7.7']
Package decorator conflicts for:
zipline -> decorator[version='>=4.0.0']
Package cyordereddict conflicts for:
zipline -> cyordereddict[version='>=0.2.2']
Package statsmodels conflicts for:
zipline -> statsmodels[version='>=0.6.1']
Package openssl conflicts for:
python=3.5 -> openssl[version='1.0.|1.0.,>=1.0.2l,<1.0.3a|>=1.0.2m,<1.0.3a|>=1.0.2n,<1.0.3a|>=1.0.2o,<1.0.3a|>=1.0.2p,<1.0.3a']
Package requests-file conflicts for:
zipline -> requests-file[version='>=1.4.1']
Package patsy conflicts for:
zipline -> patsy[version='>=0.4.0']
Package intervaltree conflicts for:
zipline -> intervaltree[version='>=2.1.0']
Package multipledispatch conflicts for:
zipline -> multipledispatch[version='>=0.4.8']
Package pytables conflicts for:
zipline -> pytables[version='>=3.3.0']
Package requests conflicts for:
zipline -> requests[version='>=2.9.1']
Package python-dateutil conflicts for:
zipline -> python-dateutil[version='>=2.4.2']
Package sqlite conflicts for:
python=3.5 -> sqlite[version='>=3.20.1,<4.0a0|>=3.22.0,<4.0a0|>=3.23.1,<4.0a0|>=3.24.0,<4.0a0']
Package trading-calendars conflicts for:
zipline -> trading-calendars[version='>=1.0.1']
Package bcolz conflicts for:
zipline -> bcolz[version='>=0.12.1|>=0.12.1,<1']
Package click conflicts for:
zipline -> click[version='>=4.0.0']
Package libcxx conflicts for:
python=3.5 -> libcxx[version='>=4.0.1']
Ok, it seems that I need to downgrade conda first: https://github.com/quantopian/zipline/issues/2514
I am having similar problems on Mojave 10.14.6. I have a Python 3.5.6 environment set up, however conda is 4.7.11. I have tried numerous times to downgrade conda using
conda config --set allow_conda_downgrades true
conda install conda=4.6.11
however this never works. I always get this in return leaving conda in 4.7.11
`Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: \
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
Examining python: 4%|โ | 3/75 [00:00<00:00, 22036.62it| ]
Comparing specs that have this dependency: 0%| | 0/2 [00:00, ?it/s]
F/ ding shortest conflict path for python=3.5: 17%|โ| 1/6 [00:00<00:00, 7.30itFinding shortest conflict path for python=3.5: 33%|โ| 2/6 [00:00<00:00, 14.59itFinding shortest conflict path for python[version='>=2.7,<2.8.0a0']: 33%|โ| 2/6Finding shortest confli/ path for python[version='>=2.7,<2.8.0a0']: 50%|โ| 3/6Finding shortest conflict path for python-libarchive-c: 50%|โ| 3/6 [00:00<00:00Finding shortest conflict path for python[version='>=3.7,<3.8.0a0']: 67%|โ| 4/6Finding shortest conflict path for python[version='>=3.7,<3.8.0a0']: 83%|โ| 5/6Finding shortest conflict path for python[version='>=3.6,<3.7.0a0']: 83%|โ| 5/6Comparing specs that have this dependency: 50%|โ | 1/2 [00:00<00:00, 1.38it/s]Finding shortest conflict path for python[version='>=3.5,<3.6.0a0']: 0%| | 0/2Examining setuptools: 15%|โโโ | 11/75 [00:00<00:09, 6.91it/s]Comparing specs that have this dependency: 0%| | 0/2 [00:00, ?it/s]Finding short| t conflict path for setuptools[version='>=31.0.1']: 0%| | 0/2 [Examining certifi: 17%|โโโโโ | 13/75 [00:00<00:06, 9.07it/s]Comparing specs that have this dependency: 0%| | 0/2 [00:00, ?it/s]Finding short- t conflict path for certifi[version='>=2017.4.17']: 0%| | 0/4 [Finding shortest conflict path for ca-certificates: 25%|โ| 1/4 [00:00<00:00,\ 1Finding shortest co| lict path for certifi: 50%|โ| 2/4 [00:00<00:00, 7.03it/s]Finding shortest conflict path for certifi[version='>=2016.09']: 75%|โ| 3/4 [00Comparing specs that have this dependency: 50%|โ | 1/2 [00:00<00:00, 2.12it/s]Finding shortest conflict path for certifi: 33%|โ| 1/3 [00:00<00:00, 159.21itfailed UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Your current python version
is (python=3.5). Note that conda will not change your python version to a different minor version
unless you explicitly specify that.
The following specifications were found to be incompatible with each other:
Package setuptools conflicts for:
conda=4.6.11 -> setuptools[version='>=31.0.1']
conda=4.6.11 -> python[version='>=3.6,<3.7.0a0'] -> pip -> setuptools
python=3.5 -> pip -> setuptools
Package wheel conflicts for:
python=3.5 -> pip -> wheel
conda=4.6.11 -> python[version='>=3.6,<3.7.0a0'] -> pip -> wheel
Package ca-certificates conflicts for:
conda=4.6.11 -> python[version='>=3.6,<3.7.0a0'] -> openssl=1.0 -> ca-certificates
python=3.5 -> openssl=1.0 -> ca-certificates
Package certifi conflicts for:
python=3.5 -> pip -> setuptools -> certifi[version='>=2016.09']
conda=4.6.11 -> requests[version='>=2.18.4,<3'] -> certifi[version='>=2016.09|>=2017.4.17']
Package pip conflicts for:
conda=4.6.11 -> python[version='>=3.6,<3.7.0a0'] -> pip
python=3.5 -> pip`
Can anyone shed any light on this for we poor Mac users?
Honestly, I have never seen a module as difficult to install as zipline.
Only works with a specific version of python (3.5) and specific version of
conda (4.6.11). I think I have it installed, but I still can't run the
basic buyapple.py backrest to test it out. I appreciate all the developers
work, but this is very frustrating.
And what about zipline_live, does that only work with python 2.7?
On Tue, Aug 20, 2019, 10:06 AM fritzybloch notifications@github.com wrote:
I am having similar problems on Mojave 10.14.6. I have a Python 3.5.6
environment set up, however conda is 4.7.11. I have tried numerous times to
downgrade conda using
conda config --set allow_conda_downgrades true
conda install conda=4.6.11
however this never works. I always get this in return leaving conda in
4.7.11
`Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with
flexible solve.
Solving environment: \
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
Examining python: 4%|โ | 3/75 [00:00<00:00, 22036.62it| ]
Comparing specs that have this dependency: 0%| | 0/2 [00:00, ?it/s]
F/ ding shortest conflict path for python=3.5: 17%|โ| 1/6 [00:00<00:00,
7.30itFinding shortest conflict path for python=3.5: 33%|โ| 2/6
[00:00<00:00, 14.59itFinding shortest conflict path for
python[version='>=2.7,<2.8.0a0']: 33%|โ| 2/6Finding shortest confli/ path
for python[version='>=2.7,<2.8.0a0']: 50%|โ| 3/6Finding shortest conflict
path for python-libarchive-c: 50%|โ| 3/6 [00:00<00:00Finding shortest
conflict path for python[version='>=3.7,<3.8.0a0']: 67%|โ| 4/6Finding
shortest conflict path for python[version='>=3.7,<3.8.0a0']: 83%|โ|
5/6Finding shortest conflict path for python[version='>=3.6,<3.7.0a0']:
83%|โ| 5/6Comparing specs that have this dependency: 50%|โ | 1/2
[00:00<00:00, 1.38it/s]Finding shortest conflict path for
python[version='>=3.5,<3.6.0a0']: 0%| | 0/2Examining setuptools: 15%|โโโ |
11/75 [00:00<00:09, 6.91it/s]Comparing specs that have this dependency: 0%|
| 0/2 [00:00, ?it/s]Finding short| t conflict path for
setuptools[version='>=31.0.1']: 0%| | 0/2 [Examining certifi: 17%|โโโโโ |
13/75 [00:00<00:06, 9.07it/s]Comparing specs that have this dependency: 0%|
| 0/2 [00:00, ?it/s]Finding short- t conflict path for
certifi[version='>=2017.4.17']: 0%| | 0/4 [Finding shortest conflict path
for ca-certificates: 25%|โ| 1/4 [00:00<00:00,\ 1Finding shortest co| lict
path for certifi: 50%|โ| 2/4 [00:00<00:00, 7.03it/s]Finding shortest
conflict path for certifi[version='>=2016.09']: 75%|โ| 3/4 [00Comparing
specs that have this dependency: 50%|โ | 1/2 [00:00<00:00, 2.12it/s]Finding
shortest conflict path for certifi: 33%|โ| 1/3 [00:00<00:00, 159.21itfailed
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your
environment:
- conda=4.6.11 ->
python[version='>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0']If python is on the left-most side of the chain, that's the version you've
asked for.
When python appears to the right, that indicates that the thing on the
left is somehow
not available for the python version you are constrained to. Your current
python version
is (python=3.5). Note that conda will not change your python version to a
different minor version
unless you explicitly specify that.The following specifications were found to be incompatible with each other:
Package setuptools conflicts for:
conda=4.6.11 -> setuptools[version='>=31.0.1']
conda=4.6.11 -> python[version='>=3.6,<3.7.0a0'] -> pip -> setuptools
python=3.5 -> pip -> setuptools
Package wheel conflicts for:
python=3.5 -> pip -> wheel
conda=4.6.11 -> python[version='>=3.6,<3.7.0a0'] -> pip -> wheel
Package ca-certificates conflicts for:
conda=4.6.11 -> python[version='>=3.6,<3.7.0a0'] -> openssl=1.0 ->
ca-certificates
python=3.5 -> openssl=1.0 -> ca-certificates
Package certifi conflicts for:
python=3.5 -> pip -> setuptools -> certifi[version='>=2016.09']
conda=4.6.11 -> requests[version='>=2.18.4,<3'] ->
certifi[version='>=2016.09|>=2017.4.17']
Package pip conflicts for:
conda=4.6.11 -> python[version='>=3.6,<3.7.0a0'] -> pip
python=3.5 -> pip`Can anyone shed any light on this for we poor Mac users?
โ
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/quantopian/zipline/issues/2437?email_source=notifications&email_token=ABFSUGIMX5L4LDRB6RUP553QFP26TA5CNFSM4G3O5H42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4WNBXA#issuecomment-523030748,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABFSUGOCUIMPTPWAKC5623LQFP26TANCNFSM4G3O5H4Q
.
Hi I only managed to get zipline working in python 2.7 on Mac OS Mojave 10.14.2. conda 4.7.11, else facing the same issue as everyone else on python 3.5 above.
Still won't install for Python 3.7
Can we just remove the install requirement for 3.5? I'd imagine there's nothing groundbreaking or not backwards compatible from 3.5 to 3.7 (though I skipped 3.5 and haven't written code in it).
I gave up on zipline. I don't think its maintained anymore.
I'm developing using a Macbook air with Mojave 10.14.6.
For the past week, I was having trouble installing, zipline within a python3.5 virtual environment. I narrowed the error down to a C related dependency after observing this error.
ld: library not found for -lblosc
I fixed error by executing within my console
brew install c-blosc
After, I was able to successfully install Zipline. I hope this helps someone else or at least give them another option to try.
I gave up on zipline. I don't think its maintained anymore.
@rogerjbos can you recommend other package please
Using conda + python3.6 worked for me.
Same here. Conda is the way to go
Most helpful comment
Honestly, I have never seen a module as difficult to install as zipline.
Only works with a specific version of python (3.5) and specific version of
conda (4.6.11). I think I have it installed, but I still can't run the
basic buyapple.py backrest to test it out. I appreciate all the developers
work, but this is very frustrating.
And what about zipline_live, does that only work with python 2.7?
On Tue, Aug 20, 2019, 10:06 AM fritzybloch notifications@github.com wrote: