zipline-live / zipline

Zipline-Live, a Pythonic Algorithmic Trading Library
http://www.zipline-live.io/
Apache License 2.0
394 stars 65 forks source link

Installing zipline-live[ib] with the tutorial #123

Open FelixLahaie opened 4 years ago

FelixLahaie commented 4 years ago

Dear Zipline Maintainers,

Before I tell you about my issue, let me describe my environment:

Environment

Now that you know a little about me, let me tell you about the issue I am having:

Description of Issue

I am trying to install zipline-live in order to trade with Interactive Brokers.

I followed this website (http://www.zipline-live.io/tutorial) for installing zipline-live for my python algorithm, but I ran into some issues. I have this error in my LinuxOS (Ubuntu 18.04 LTS or Ubuntu 19.10). I cannot install the installation always fails.

this my error :

Failed building wheel for bcolz Failed building wheel for cyordereddict statsmodels 0.10.1 has requirement pandas>=0.19, but you'll have pandas 0.18.1 which is incompatible. pandas-datareader 0.8.1 has requirement pandas>=0.21, but you'll have pandas 0.18.1 which is incompatible.

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-m5zc6jna/bcolz/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-0fps0y5y/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-m5zc6jna/bcolz/

Thank you! Here is how you can reproduce this issue on your machine:

Reproduction Steps

1.virtualenv ~/venv-zipline-live 2.source ~/venv-zipline-live/bin/activate 3.pip install zipline-live[ib] ...

What steps have you taken to resolve this already?

I upgraded python librairies

This my pip list

Package Version


alembic 1.2.1 apturl 0.5.2 asn1crypto 0.24.0 attrs 18.2.0 Automat 0.6.0 bcolz 1.2.1 blinker 1.4 catfish 1.4.7 certifi 2018.8.24 chardet 3.0.4 Click 7.0 cloud-init 19.2 colorama 0.3.7 command-not-found 0.3 configobj 5.0.6 constantly 15.1.0 contextlib2 0.6.0.post1 cryptography 2.3 cupshelpers 1.0 Cython 0.29.13 defer 1.0.6 distro 1.3.0 distro-info 0.21ubuntu2 entrypoints 0.3 httplib2 0.11.3 hyperlink 17.3.1 idna 2.6 incremental 16.10.1 Jinja2 2.10 jsonpatch 1.21 jsonpointer 1.10 jsonschema 2.6.0 keyring 17.1.1 keyrings.alt 3.1.1 language-selector 0.1 launchpadlib 1.10.6 lazr.restfulclient 0.14.2 lazr.uri 1.0.3 lightdm-gtk-greeter-settings 1.2.2 Logbook 1.5.3 macaroonbakery 1.2.1 Mako 1.1.0 MarkupSafe 1.1.0 menulibre 2.2.0 mugshot 0.4.1 netifaces 0.10.4 numexpr 2.7.0 numpy 1.17.3 oauthlib 2.1.0 olefile 0.46 onboard 1.4.1 pandas 0.25.2 pexpect 4.6.0 Pillow 5.4.1 pip 18.1 protobuf 3.6.1 psutil 5.5.1 pyasn1 0.4.2 pyasn1-modules 0.2.1 pycairo 1.16.2 pycrypto 2.6.1 pycups 1.9.73 pycurl 7.43.0.2 PyGObject 3.32.0 PyJWT 1.7.0 pymacaroons 0.13.0 PyNaCl 1.3.0 pyOpenSSL 19.0.0 pyRFC3339 1.1 pyserial 3.4 PySimpleSOAP 1.16.2 python-apt 1.8.4 python-dateutil 2.7.3 python-debian 0.1.34 python-debianbts 2.8.2 python-editor 1.0.4 python-magic 0.4.16 pytz 2018.9 pyxdg 0.25 PyYAML 3.13 reportlab 3.5.18 requests 2.21.0 requests-unixsocket 0.1.5 SecretStorage 2.3.1 service-identity 16.0.0 setuptools 40.8.0 sgt-launcher 0.2.4 simplejson 3.16.0 six 1.12.0 SQLAlchemy 1.3.10 ssh-import-id 5.7 system-service 0.3 systemd-python 234 toolz 0.10.0 Twisted 18.9.0 ubuntu-advantage-tools 19.2 ubuntu-drivers-common 0.0.0 ufw 0.36 unattended-upgrades 0.1 urllib3 1.24.1 wadllib 1.3.3 wheel 0.32.3 xcffib 0.5.1 xkit 0.0.0 zope.interface 4.3.2

Anything else?

1 Do you have more informations for zipline-live? (i.e. A list of the pre-requisites.)

2 Why install python 2.7 and not python 3.7 ?

3 How can I connect it to Interactive Brokers after the installation? (Is the connection to IB automatic? Because zipline-live is installed with the following command:

pip install zipline-live[ib] ) Sincerely,

With python 2.7 I have this error :

  File "/tmp/easy_install-rqICVR/numpy-1.17.3/setup.py", line 31, in <module>
    )
RuntimeError: Python version >= 3.5 required.

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-x9i2pV/zipline-live/

Thank you!

Felix lahaiefelix@gmail.com Charles charles.lahaie@hotmail.com

WillForan commented 4 years ago

i think this is the same issue as #110