zipline-trader: ERROR: Command errored out with exit status 1
Attempting to install this on ubuntu 20.04 LTS with python 3.8.5 (default with ubuntu) following the instructions on the zipline-trader docs page and I get the following error:
pip install -e git://github.com/shlomikushchi/zipline-trader.git#egg=zipline-trader
Obtaining zipline-trader from git+git://github.com/shlomikushchi/zipline-trader.git#egg=zipline-trader
Cloning git://github.com/shlomikushchi/zipline-trader.git to ./venv/src/zipline-trader
Running command git clone -q git://github.com/shlomikushchi/zipline-trader.git /home/rod/Projects/zipline/venv/src/zipline-trader
Collecting IbPy2==0.8.0
Using cached IbPy2-0.8.0.tar.gz (54 kB)
Collecting Logbook>=0.12.5
Using cached Logbook-1.5.3.tar.gz (85 kB)
Collecting PyYAML==5.3.1
Using cached PyYAML-5.3.1.tar.gz (269 kB)
Collecting alembic>=0.7.7
Using cached alembic-1.4.3-py2.py3-none-any.whl (159 kB)
Collecting alpaca-trade-api>=0.51.0
Using cached alpaca_trade_api-0.51.0-py3-none-any.whl (39 kB)
Collecting bcolz==1.2.1
Using cached bcolz-1.2.1.tar.gz (1.5 MB)
Processing /home/rod/.cache/pip/wheels/29/60/c9/98f744fb5c7d1ffb38d096318d9e873a08c0f5df07d6487626/Bottleneck-1.3.2-cp38-cp38-linux_x86_64.whl
Collecting click>=4.0.0
Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Processing /home/rod/.cache/pip/wheels/0d/68/bb/926065fb744e7d7cb67334cb1a9c696722abc8303e5dc9a8d0/empyrical-0.5.5-py3-none-any.whl
Collecting h5py==2.10.0
Using cached h5py-2.10.0-cp38-cp38-manylinux1_x86_64.whl (2.9 MB)
Processing /home/rod/.cache/pip/wheels/45/23/de/5789a92962483fd33cb06674792b9697c1b3766d7c7742830e/intervaltree-3.1.0-py2.py3-none-any.whl
Collecting iso3166>=0.9
Using cached iso3166-1.0.1-py2.py3-none-any.whl (8.2 kB)
Collecting iso4217>=1.6.20180829
Using cached iso4217-1.6.20180829-py2.py3-none-any.whl (9.9 kB)
Processing /home/rod/.cache/pip/wheels/c6/91/94/23d462effc91bc844998b2023dc2dfd037a9d0a60034ddab16/lru_dict-1.1.6-cp38-cp38-linux_x86_64.whl
Collecting multipledispatch>=0.6.0
Using cached multipledispatch-0.6.0-py3-none-any.whl (11 kB)
Collecting networkx<2.0,>=1.9.1
Using cached networkx-1.11-py2.py3-none-any.whl (1.3 MB)
Collecting numexpr>=2.6.1
Using cached numexpr-2.7.1-cp38-cp38-manylinux1_x86_64.whl (164 kB)
Collecting numpy>=1.11.3
Using cached numpy-1.19.4-cp38-cp38-manylinux2010_x86_64.whl (14.5 MB)
Collecting pandas-datareader<0.9.0,>=0.2.1
Using cached pandas_datareader-0.8.1-py2.py3-none-any.whl (107 kB)
Collecting pandas<=0.22,>=0.18.1
Using cached pandas-0.22.0.tar.gz (11.3 MB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: /home/rod/Projects/zipline/venv/bin/python3 /home/rod/Projects/zipline/venv/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-hkcts2ym/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'"'"''
cwd: None
Complete output (4265 lines):
Ignoring numpy: markers 'python_version == "3.5"' don't match your environment
Ignoring numpy: markers 'python_version == "3.6"' don't match your environment
Collecting wheel
Using cached wheel-0.35.1-py2.py3-none-any.whl (33 kB)
Collecting setuptools
Using cached setuptools-50.3.2-py3-none-any.whl (785 kB)
Collecting Cython
Using cached Cython-0.29.21-cp38-cp38-manylinux1_x86_64.whl (1.9 MB)
Collecting numpy==1.13.1
Using cached numpy-1.13.1.zip (5.0 MB)
Building wheels for collected packages: numpy
Building wheel for numpy (setup.py): started
Building wheel for numpy (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
… after a few more pages of debug info …
numpy/random/mtrand/mtrand.c:44867:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
44867 | tstate->exc_traceback = local_tb;
| ^~~~~~~~~~~~~
| curexc_traceback
error: Command "x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Inumpy/core/include -Ibuild/src.linux-x86_64-3.8/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/home/rod/Projects/zipline/venv/include -I/usr/include/python3.8 -Ibuild/src.linux-x86_64-3.8/numpy/core/src/private -Ibuild/src.linux-x86_64-3.8/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.8/numpy/core/src/private -Ibuild/src.linux-x86_64-3.8/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.8/numpy/core/src/private -Ibuild/src.linux-x86_64-3.8/numpy/core/src/npymath -c numpy/random/mtrand/mtrand.c -o build/temp.linux-x86_64-3.8/numpy/random/mtrand/mtrand.o -MMD -MF build/temp.linux-x86_64-3.8/numpy/random/mtrand/mtrand.o.d" failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /home/rod/Projects/zipline/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-y97ro9vf/numpy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-y97ro9vf/numpy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-bha06kzm/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-hkcts2ym/overlay --compile --install-headers /home/rod/Projects/zipline/venv/include/site/python3.8/numpy Check the logs for full command output.
----------------------------------------
ERROR: Command errored out with exit status 1: /home/rod/Projects/zipline/venv/bin/python3 /home/rod/Projects/zipline/venv/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-hkcts2ym/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'"'"'' Check the logs for full command output.
(venv) rod@rod-XPS-13-9360:~/Projects/zipline$ ^C
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (8 by maintainers)
Hi @TheSnoozer, not in a specific order, but these are some of the things ahead:
but it all depends on how the community around this package grows
Yes, that was the problem. Thanks! Please feel free to close this issue.