oss-gate / workshop

OSSの開発に未参加または参加したことはあるけどまだ自信がない人を後押しするワークショップ用のリポジトリー
124 stars 547 forks source link

OSS Gate Workshop: Online: 2020-09-12: yoshinobu1579: Zipline: Work log #1420

Closed yoshinobu1579 closed 4 years ago

yoshinobu1579 commented 4 years ago

This is a work log of a "OSS Gate workshop". "OSS Gate workshop" is an activity to increase OSS developers. Here's been discussed in Japanese. Thanks.

作業ログ作成時の説明

以下のテンプレートを埋めてタイトルに設定します。埋め方例はスクロールすると見えてきます。

OSS Gate Workshop: ${LOCATION}: ${YEAR}-${MONTH}-${DAY}: ${ACCOUNT_NAME}: ${OSS_NAME}: Work log

タイトル例↓:

OSS Gate Workshop: Tokyo: 2017-01-16: kou: Rabbit: Work log

OSS Gateワークショップ関連情報

yoshinobu1579 commented 4 years ago

Qunatopian zipline の公式サイトを探す。 https://github.com/quantopian/zipline/blob/master/LICENSE

yoshinobu1579 commented 4 years ago

プロジェクトをZiplineに決めた。

yoshinobu1579 commented 4 years ago

Installationのガイド(Read.Me) https://github.com/quantopian/zipline

yoshinobu1579 commented 4 years ago

より詳細なInsallのドキュメントがReadMeにリンクとして貼られていた。 https://www.zipline.io/install

yoshinobu1579 commented 4 years ago

https://www.zipline.io/install これを読むとPython以外のDependencyがあるため、Anacondaだと環境構築が簡単なことが判明した。 よってAnacondaのインストールに取り組む。

yoshinobu1579 commented 4 years ago

Anacondaとそれを使わない選択肢の判断基準 1: Anacondaだとエラーが発生した時にDebugしづらい 2: AnacondaなしだとDebugしやすい(環境構築)

結論: でもAnacondaの方が簡単そうなので一旦Anacondaでやってみる。(もし詰まったら、なしバージョンを考える)

yoshinobu1579 commented 4 years ago

Anacondaのインストールのリンクをhttps://www.zipline.io/install から見つけた。 https://conda.io/projects/conda/en/latest/user-guide/install/index.html

yoshinobu1579 commented 4 years ago

https://conda.io/projects/conda/en/latest/user-guide/install/index.html ここにAnacondaとMinicondaのインストール方法があった。 MinicondaはどうもいっぱいLibを入れたくない人用のようだ。今回はAnacondaをインストール(そこまで容量は気にしない)

yoshinobu1579 commented 4 years ago

AnacondaのInstallが完了し(Graphical installer使用) その後に conda listをTerminalで打つとちゃんと動いた。

yoshinobu1579 commented 4 years ago

https://www.zipline.io/install#conda ここに戻って、次のconda install -c Quantopian zipline を試してみる。

yoshinobu1579 commented 4 years ago

https://www.zipline.io/install#condaここのドキュメントにManaging conda environmentというセクションがあり、既存のPythonの環境を邪魔せずに環境構築できると書いてある。 がしかし、conda install -c Quantopian zipline のコマンドの後に記述があるため、時すでに遅し。Installしちゃった。 記述の順番逆がいいのでは???

yoshinobu1579 commented 4 years ago

`Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. 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. failed

UnsatisfiableError: The following specifications were found to be incompatible with the existing python installation in your environment:

Specifications:

Your python: python=3.8

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. Note that conda will not change your python version to a different minor version unless you explicitly specify that. ` 上記がインストール後に出た。僕の環境はPython3.8。。。あれ、3.5のドキュメントしかない。。。3.5で読み進めるのかな。。。。 つらたん。。

yoshinobu1579 commented 4 years ago

インストールは成功したが、3.8バージョンが不安なので、Managing Conda Environmentに記述のある仮想環境っぽい環境構築を試す。

yoshinobu1579 commented 4 years ago

conda create -n env_zipline python=3.5 source activate env_zipline サンドボックスっぽい環境を作ってると書いてある。

yoshinobu1579 commented 4 years ago

conda create -n env_zipline python=3.5これは 間違えて先にconda install -c Quantopian ziplineこれを走らせたあとでもうまく行った。なんか色々ダウンロードして一から環境作ってるっぽい。


Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: done

==> WARNING: A newer version of conda exists. <==
  current version: 4.8.3
  latest version: 4.8.4

Please update conda by running

    $ conda update -n base -c defaults conda

## Package Plan ##

  environment location: /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline

  added / updated specs:
    - python=3.5

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    ca-certificates-2020.7.22  |                0         124 KB
    certifi-2018.8.24          |           py35_1         137 KB
    libffi-3.2.1               |       h0a44026_6          39 KB
    openssl-1.0.2u             |       h1de35cc_0         2.0 MB
    pip-10.0.1                 |           py35_0         1.6 MB
    python-3.5.6               |       hc167b69_0        12.2 MB
    readline-7.0               |       h1de35cc_5         316 KB
    setuptools-40.2.0          |           py35_0         490 KB
    sqlite-3.33.0              |       hffcf06c_0         1.3 MB
    wheel-0.35.1               |             py_0          37 KB
    ------------------------------------------------------------
                                           Total:        18.1 MB

The following NEW packages will be INSTALLED:

  ca-certificates    pkgs/main/osx-64::ca-certificates-2020.7.22-0
  certifi            pkgs/main/osx-64::certifi-2018.8.24-py35_1
  libcxx             pkgs/main/osx-64::libcxx-10.0.0-1
  libedit            pkgs/main/osx-64::libedit-3.1.20191231-h1de35cc_1
  libffi             pkgs/main/osx-64::libffi-3.2.1-h0a44026_6
  ncurses            pkgs/main/osx-64::ncurses-6.2-h0a44026_1
  openssl            pkgs/main/osx-64::openssl-1.0.2u-h1de35cc_0
  pip                pkgs/main/osx-64::pip-10.0.1-py35_0
  python             pkgs/main/osx-64::python-3.5.6-hc167b69_0
  readline           pkgs/main/osx-64::readline-7.0-h1de35cc_5
  setuptools         pkgs/main/osx-64::setuptools-40.2.0-py35_0
  sqlite             pkgs/main/osx-64::sqlite-3.33.0-hffcf06c_0
  tk                 pkgs/main/osx-64::tk-8.6.10-hb0a8c7a_0
  wheel              pkgs/main/noarch::wheel-0.35.1-py_0
  xz                 pkgs/main/osx-64::xz-5.2.5-h1de35cc_0
  zlib               pkgs/main/osx-64::zlib-1.2.11-h1de35cc_3

Proceed ([y]/n)? y

Downloading and Extracting Packages
openssl-1.0.2u       | 2.0 MB    | ####################################################################################################################################################### | 100% 
pip-10.0.1           | 1.6 MB    | ####################################################################################################################################################### | 100% 
certifi-2018.8.24    | 137 KB    | ####################################################################################################################################################### | 100% 
python-3.5.6         | 12.2 MB   | ####################################################################################################################################################### | 100% 
readline-7.0         | 316 KB    | ####################################################################################################################################################### | 100% 
ca-certificates-2020 | 124 KB    | ####################################################################################################################################################### | 100% 
libffi-3.2.1         | 39 KB     | ####################################################################################################################################################### | 100% 
sqlite-3.33.0        | 1.3 MB    | ####################################################################################################################################################### | 100% 
setuptools-40.2.0    | 490 KB    | ####################################################################################################################################################### | 100% 
wheel-0.35.1         | 37 KB     | ####################################################################################################################################################### | 100% 
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate env_zipline
#
# To deactivate an active environment, use
#
#     $ conda deactivate```
yoshinobu1579 commented 4 years ago

source activate env_zipline これをやると (env_zipline) P69197:1.0.4 yoshinobu.a.nakada$ のようにCommand Lineの先端になんかついた。。(名前空間)

yoshinobu1579 commented 4 years ago

conda install -c Quantopian zipline を走らせるとさっきよりログが全然違くて、もっといっぱいLibをダウンロードしてる。。。僕のMacに元々Numpyとか入ってたからさっきはダウンロードしなかったのかな。。。こっちの方がうまく行きそう。。

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: done

==> WARNING: A newer version of conda exists. <==
  current version: 4.8.3
  latest version: 4.8.4

Please update conda by running

    $ conda update -n base -c defaults conda

## Package Plan ##

  environment location: /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline

  added / updated specs:
    - zipline

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    alembic-0.7.7              |           py35_0         171 KB  Quantopian
    asn1crypto-1.4.0           |             py_0          80 KB
    bcolz-0.12.1               |      np114py35_0         374 KB  Quantopian
    blosc-1.20.0               |       hab81aa3_0          56 KB
    bottleneck-1.2.1           |   py35h1d22016_1         106 KB
    cffi-1.11.5                |   py35h6174b99_1         203 KB
    chardet-3.0.4              |           py35_1         179 KB
    cryptography-2.3.1         |   py35hdbc3d79_0         482 KB
    empyrical-0.5.3            |           py35_0          58 KB  Quantopian
    h5py-2.8.0                 |   py35h878fce3_3         738 KB
    hdf5-1.10.2                |       hfa1e0ec_1         3.0 MB
    idna-2.7                   |           py35_0         118 KB
    intervaltree-2.1.0         |           py35_0          48 KB  Quantopian
    iso3166-0.9                |           py35_0          16 KB  Quantopian
    iso4217-1.6.20180829       |           py35_0          13 KB  Quantopian
    logbook-0.12.5             |           py35_0         125 KB  Quantopian
    lru-dict-1.1.4             |           py35_0          10 KB  Quantopian
    lxml-4.2.5                 |   py35hef8c89e_0         1.2 MB
    lz4-c-1.9.2                |       hb1e8313_1         142 KB
    mako-1.1.3                 |             py_0          62 KB
    markupsafe-1.0             |   py35h1de35cc_1          24 KB
    mkl-2018.0.3               |                1        97.5 MB
    multipledispatch-0.6.0     |           py35_0          22 KB
    networkx-1.11              |           py35_1         1.2 MB
    numexpr-2.6.1              |      np114py35_0         119 KB  Quantopian
    numpy-1.14.2               |   py35ha9ae307_0         3.2 MB
    pandas-0.22.0              |   py35h0a44026_0         7.7 MB
    pandas-datareader-0.8.1    |             py_0          71 KB
    patsy-0.5.0                |           py35_0         272 KB
    pyopenssl-18.0.0           |           py35_0          85 KB
    pysocks-1.6.8              |           py35_0          23 KB
    pytables-3.4.4             |   py35h13cba08_0         1.1 MB
    python-interface-1.5.3     |           py35_0          33 KB  Quantopian
    requests-2.20.1            |           py35_0          83 KB  Quantopian
    scipy-1.1.0                |   py35hcaad992_0        11.7 MB
    sqlalchemy-1.2.11          |   py35h1de35cc_0         1.4 MB
    statsmodels-0.9.0          |   py35h917ab60_0         6.6 MB
    trading-calendars-1.11.2   |           py35_0         121 KB  Quantopian
    urllib3-1.23               |           py35_0         157 KB
    zipline-1.4.0              |      np114py35_0         1.7 MB  Quantopian
    ------------------------------------------------------------
                                           Total:       140.1 MB

The following NEW packages will be INSTALLED:

  alembic            Quantopian/osx-64::alembic-0.7.7-py35_0
  asn1crypto         pkgs/main/noarch::asn1crypto-1.4.0-py_0
  bcolz              Quantopian/osx-64::bcolz-0.12.1-np114py35_0
  blas               pkgs/main/osx-64::blas-1.0-mkl
  blosc              pkgs/main/osx-64::blosc-1.20.0-hab81aa3_0
  bottleneck         pkgs/main/osx-64::bottleneck-1.2.1-py35h1d22016_1
  bzip2              pkgs/main/osx-64::bzip2-1.0.8-h1de35cc_0
  cffi               pkgs/main/osx-64::cffi-1.11.5-py35h6174b99_1
  chardet            pkgs/main/osx-64::chardet-3.0.4-py35_1
  click              pkgs/main/noarch::click-7.1.2-py_0
  contextlib2        pkgs/main/noarch::contextlib2-0.6.0.post1-py_0
  cryptography       pkgs/main/osx-64::cryptography-2.3.1-py35hdbc3d79_0
  decorator          pkgs/main/noarch::decorator-4.4.2-py_0
  empyrical          Quantopian/osx-64::empyrical-0.5.3-py35_0
  h5py               pkgs/main/osx-64::h5py-2.8.0-py35h878fce3_3
  hdf5               pkgs/main/osx-64::hdf5-1.10.2-hfa1e0ec_1
  icu                pkgs/main/osx-64::icu-58.2-h0a44026_3
  idna               pkgs/main/osx-64::idna-2.7-py35_0
  intel-openmp       pkgs/main/osx-64::intel-openmp-2019.4-233
  intervaltree       Quantopian/osx-64::intervaltree-2.1.0-py35_0
  iso3166            Quantopian/osx-64::iso3166-0.9-py35_0
  iso4217            Quantopian/osx-64::iso4217-1.6.20180829-py35_0
  libgfortran        pkgs/main/osx-64::libgfortran-3.0.1-h93005f0_2
  libiconv           pkgs/main/osx-64::libiconv-1.16-h1de35cc_0
  libxml2            pkgs/main/osx-64::libxml2-2.9.10-h3b9e6c8_1
  libxslt            pkgs/main/osx-64::libxslt-1.1.34-h83b36ba_0
  logbook            Quantopian/osx-64::logbook-0.12.5-py35_0
  lru-dict           Quantopian/osx-64::lru-dict-1.1.4-py35_0
  lxml               pkgs/main/osx-64::lxml-4.2.5-py35hef8c89e_0
  lz4-c              pkgs/main/osx-64::lz4-c-1.9.2-hb1e8313_1
  lzo                pkgs/main/osx-64::lzo-2.10-h1de35cc_2
  mako               pkgs/main/noarch::mako-1.1.3-py_0
  markupsafe         pkgs/main/osx-64::markupsafe-1.0-py35h1de35cc_1
  mkl                pkgs/main/osx-64::mkl-2018.0.3-1
  multipledispatch   pkgs/main/osx-64::multipledispatch-0.6.0-py35_0
  networkx           pkgs/main/osx-64::networkx-1.11-py35_1
  numexpr            Quantopian/osx-64::numexpr-2.6.1-np114py35_0
  numpy              pkgs/main/osx-64::numpy-1.14.2-py35ha9ae307_0
  pandas             pkgs/main/osx-64::pandas-0.22.0-py35h0a44026_0
  pandas-datareader  pkgs/main/noarch::pandas-datareader-0.8.1-py_0
  patsy              pkgs/main/osx-64::patsy-0.5.0-py35_0
  pycparser          pkgs/main/noarch::pycparser-2.20-py_2
  pyopenssl          pkgs/main/osx-64::pyopenssl-18.0.0-py35_0
  pysocks            pkgs/main/osx-64::pysocks-1.6.8-py35_0
  pytables           pkgs/main/osx-64::pytables-3.4.4-py35h13cba08_0
  python-dateutil    pkgs/main/noarch::python-dateutil-2.8.1-py_0
  python-interface   Quantopian/osx-64::python-interface-1.5.3-py35_0
  pytz               pkgs/main/noarch::pytz-2020.1-py_0
  requests           Quantopian/osx-64::requests-2.20.1-py35_0
  scipy              pkgs/main/osx-64::scipy-1.1.0-py35hcaad992_0
  six                pkgs/main/noarch::six-1.15.0-py_0
  snappy             pkgs/main/osx-64::snappy-1.1.8-hb1e8313_0
  sortedcontainers   pkgs/main/noarch::sortedcontainers-2.2.2-py_0
  sqlalchemy         pkgs/main/osx-64::sqlalchemy-1.2.11-py35h1de35cc_0
  statsmodels        pkgs/main/osx-64::statsmodels-0.9.0-py35h917ab60_0
  toolz              pkgs/main/noarch::toolz-0.10.0-py_0
  trading-calendars  Quantopian/osx-64::trading-calendars-1.11.2-py35_0
  urllib3            pkgs/main/osx-64::urllib3-1.23-py35_0
  zipline            Quantopian/osx-64::zipline-1.4.0-np114py35_0
  zstd               pkgs/main/osx-64::zstd-1.4.5-h41d2c2f_0

Proceed ([y]/n)? y

Downloading and Extracting Packages
lz4-c-1.9.2          | 142 KB    | ########################################################################################################################################################### | 100% 
bottleneck-1.2.1     | 106 KB    | ########################################################################################################################################################### | 100% 
pysocks-1.6.8        | 23 KB     | ########################################################################################################################################################### | 100% 
alembic-0.7.7        | 171 KB    | ########################################################################################################################################################### | 100% 
cryptography-2.3.1   | 482 KB    | ########################################################################################################################################################### | 100% 
mako-1.1.3           | 62 KB     | ########################################################################################################################################################### | 100% 
numpy-1.14.2         | 3.2 MB    | ########################################################################################################################################################### | 100% 
pandas-datareader-0. | 71 KB     | ########################################################################################################################################################### | 100% 
lru-dict-1.1.4       | 10 KB     | ########################################################################################################################################################### | 100% 
markupsafe-1.0       | 24 KB     | ########################################################################################################################################################### | 100% 
mkl-2018.0.3         | 97.5 MB   | ########################################################################################################################################################### | 100% 
idna-2.7             | 118 KB    | ########################################################################################################################################################### | 100% 
trading-calendars-1. | 121 KB    | ########################################################################################################################################################### | 100% 
urllib3-1.23         | 157 KB    | ########################################################################################################################################################### | 100% 
pandas-0.22.0        | 7.7 MB    | ########################################################################################################################################################### | 100% 
networkx-1.11        | 1.2 MB    | ########################################################################################################################################################### | 100% 
numexpr-2.6.1        | 119 KB    | ########################################################################################################################################################### | 100% 
blosc-1.20.0         | 56 KB     | ########################################################################################################################################################### | 100% 
patsy-0.5.0          | 272 KB    | ########################################################################################################################################################### | 100% 
hdf5-1.10.2          | 3.0 MB    | ########################################################################################################################################################### | 100% 
logbook-0.12.5       | 125 KB    | ########################################################################################################################################################### | 100% 
pyopenssl-18.0.0     | 85 KB     | ########################################################################################################################################################### | 100% 
cffi-1.11.5          | 203 KB    | ########################################################################################################################################################### | 100% 
zipline-1.4.0        | 1.7 MB    | ########################################################################################################################################################### | 100% 
multipledispatch-0.6 | 22 KB     | ########################################################################################################################################################### | 100% 
sqlalchemy-1.2.11    | 1.4 MB    | ########################################################################################################################################################### | 100% 
iso4217-1.6.20180829 | 13 KB     | ########################################################################################################################################################### | 100% 
asn1crypto-1.4.0     | 80 KB     | ########################################################################################################################################################### | 100% 
intervaltree-2.1.0   | 48 KB     | ########################################################################################################################################################### | 100% 
statsmodels-0.9.0    | 6.6 MB    | ########################################################################################################################################################### | 100% 
iso3166-0.9          | 16 KB     | ########################################################################################################################################################### | 100% 
scipy-1.1.0          | 11.7 MB   | ########################################################################################################################################################### | 100% 
requests-2.20.1      | 83 KB     | ########################################################################################################################################################### | 100% 
h5py-2.8.0           | 738 KB    | ########################################################################################################################################################### | 100% 
python-interface-1.5 | 33 KB     | ########################################################################################################################################################### | 100% 
bcolz-0.12.1         | 374 KB    | ########################################################################################################################################################### | 100% 
chardet-3.0.4        | 179 KB    | ########################################################################################################################################################### | 100% 
pytables-3.4.4       | 1.1 MB    | ########################################################################################################################################################### | 100% 
lxml-4.2.5           | 1.2 MB    | ########################################################################################################################################################### | 100% 
empyrical-0.5.3      | 58 KB     | ########################################################################################################################################################### | 100% 
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
yoshinobu1579 commented 4 years ago

(env_zipline) $ source deactivate これで終わったら終了できるっぽい(サンドボックス環境)

yoshinobu1579 commented 4 years ago

https://www.zipline.io/beginner-tutorial.html BeginnerチュートリアルにNextでいった。これを読む。

yoshinobu1579 commented 4 years ago

https://www.zipline.io/beginner-tutorial.html ここにGitのソースコードのリンクあり、https://github.com/quantopian/zipline これでGitをCloneする。

yoshinobu1579 commented 4 years ago

どこにGit clone するの??これ仮想環境?? 結論: 仮想環境じゃない。自分のMacのDocumentのDirectoryにZiplineってDir作ってそこにclone。どうもPython関連だけなんかSandBoxっぽくしてる。

yoshinobu1579 commented 4 years ago

visual studioでcloneしたRepoを開く。その後にzipline/examples/buyapple.py にいけとチュートリアルが言ってるので開く。

yoshinobu1579 commented 4 years ago

https://www.zipline.io/beginner-tutorial.html チュートリアルはその後に色々とZiplineがもつFunctionの説明をしてる。 これはどうも buyapple.pyのようにユーザーが株取引をするアルゴリズムを書いて走らせてくれるっぽい。 そのアルゴの書き方を言ってるっぽい。

yoshinobu1579 commented 4 years ago

Running Alogrithmセクションを読む。https://www.zipline.io/beginner-tutorial.html

yoshinobu1579 commented 4 years ago

https://www.zipline.io/beginner-tutorial.html

from zipline.examples import buyapple
buyapple??

この記述があるがこれ何???どういう意味???謎。。。

またその下にあるコードも実際cloneしたのと違うぞ。。。古そう

yoshinobu1579 commented 4 years ago

To now test this algorithm on financial data, zipline provides three interfaces: A command-line interface, IPython Notebook magic, and run_algorithm(). Run Algorithmのセクションにこの記述あるけど、それぞれ何って思う特に IPython Notebook magic, とrun_algorithm リンクほしい。

yoshinobu1579 commented 4 years ago

Ingest Dataセクションを読んでるが、データを取り込めと言っている。 取り込むのに Quandl API key がいると言っている。Quandlって何??調べよう。

yoshinobu1579 commented 4 years ago

Quandlを調べた結果(Google)以下がわかった。なるほど!!!!https://techacademy.jp/magazine/41884

Quandlとは金融、経済に関するデータを提供するサービスです。 データをグラフで表示させたものや、CSVなどのフォーマットでダウンロードすることができます。
yoshinobu1579 commented 4 years ago

https://docs.quandl.com/docs#section-authentication このリンクがData Ingestセクションにあったので、ここからAPIKeyを取得するぞ!

yoshinobu1579 commented 4 years ago

https://www.quandl.com/login?intendedUrl=%2Faccount%2Fprofile このリンクから無料登録できるっぽい。

yoshinobu1579 commented 4 years ago

上のリンクからAPIKey取得完了。 次にData Ingestセクションで QUANDL_API_KEY= zipline ingest [-b ] を走らせてみる。

yoshinobu1579 commented 4 years ago

提案1: ドキュメントにpython 3.5 と書かれていたが、3.5 以上だとダメなのか?? (つまずき) どうなっていてほしい。(3.5以上のケースもDocumentに書かれていてほしい。) Google Communityで質問ができるレベル。 

提案2:  1: DocumentでGlobalInstallの仕方が先に書いてあって、Conda Env ManagementのDocが後にあってつまずいた。 2: どうなっていてほしい。(Global Installのコマンドの後にIsolated な環境でやりたい人はこちらのようなリンクや文言を追加されていてほしい。)

yoshinobu1579 commented 4 years ago

https://www.zipline.io/development-guidelines#contributing-to-the-docs ここにContribute to Docsのやり方が書いてあるが、DocもBuildが必要。でそのためにpip install -r ./etc/requirements_docs.in -c ./etc/requirements_locked.txt を走らせる必要があるが、Condaの場合が書いてない。(つまずきポイント)

yoshinobu1579 commented 4 years ago

pip install -r ./etc/requirements_docs.in -c ./etc/requirements_locked.txt これを走らせると 以下のログが出て、特に ERROR: astroid 2.4.2 has requirement six~=1.12, but you'll have six 1.11.0 which is incompatible. というエラーが出ている。

Requirement already satisfied: Sphinx>=1.3.2 in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from -r ./etc/requirements_docs.in (line 1)) (3.1.2)
Requirement already satisfied: numpydoc>=0.5.0 in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from -r ./etc/requirements_docs.in (line 2)) (1.1.0)
Collecting sphinx-autobuild>=0.6.0
  Downloading sphinx_autobuild-2020.9.1-py3-none-any.whl (9.8 kB)
Collecting sphinx-rtd-theme
  Downloading sphinx_rtd_theme-0.5.0-py2.py3-none-any.whl (10.8 MB)
     |████████████████████████████████| 10.8 MB 2.6 MB/s 
Requirement already satisfied: sphinxcontrib-serializinghtml in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (1.1.4)
Requirement already satisfied: snowballstemmer>=1.1 in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (2.0.0)
Requirement already satisfied: alabaster<0.8,>=0.7 in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (0.7.12)
Requirement already satisfied: sphinxcontrib-htmlhelp in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (1.0.3)
Requirement already satisfied: sphinxcontrib-jsmath in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (1.0.1)
Requirement already satisfied: Pygments>=2.0 in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (2.6.1)
Requirement already satisfied: sphinxcontrib-applehelp in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (1.0.2)
Requirement already satisfied: sphinxcontrib-devhelp in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (1.0.2)
Requirement already satisfied: docutils>=0.12 in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (0.16)
Requirement already satisfied: babel>=1.3 in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (2.8.0)
Requirement already satisfied: sphinxcontrib-qthelp in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (1.0.3)
Requirement already satisfied: setuptools in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (49.2.0.post20200714)
Requirement already satisfied: imagesize in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (1.2.0)
Requirement already satisfied: packaging in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (20.4)
Collecting jinja2==2.10.1
  Downloading Jinja2-2.10.1-py2.py3-none-any.whl (124 kB)
     |████████████████████████████████| 124 kB 1.4 MB/s 
Collecting requests==2.20.1
  Downloading requests-2.20.1-py2.py3-none-any.whl (57 kB)
     |████████████████████████████████| 57 kB 813 kB/s 
Collecting livereload
  Downloading livereload-2.6.3.tar.gz (25 kB)
Collecting pytz==2018.5
  Downloading pytz-2018.5-py2.py3-none-any.whl (510 kB)
     |████████████████████████████████| 510 kB 1.2 MB/s 
Collecting pyparsing==2.0.3
  Downloading pyparsing-2.0.3-py2.py3-none-any.whl (37 kB)
Collecting six==1.11.0
  Downloading six-1.11.0-py2.py3-none-any.whl (10 kB)
Collecting markupsafe==0.23
  Downloading MarkupSafe-0.23.tar.gz (13 kB)
Collecting idna==2.7
  Downloading idna-2.7-py2.py3-none-any.whl (58 kB)
     |████████████████████████████████| 58 kB 1.9 MB/s 
Requirement already satisfied: chardet==3.0.4 in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from -c ./etc/requirements_locked.txt (line 14)) (3.0.4)
Collecting urllib3==1.24.3
  Downloading urllib3-1.24.3-py2.py3-none-any.whl (118 kB)
     |████████████████████████████████| 118 kB 968 kB/s 
Collecting certifi==2018.8.24
  Downloading certifi-2018.8.24-py2.py3-none-any.whl (147 kB)
     |████████████████████████████████| 147 kB 2.0 MB/s 
Requirement already satisfied: tornado in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from livereload->sphinx-autobuild>=0.6.0->-r ./etc/requirements_docs.in (line 3)) (6.0.4)
Building wheels for collected packages: markupsafe, livereload
  Building wheel for markupsafe (setup.py) ... done
  Created wheel for markupsafe: filename=MarkupSafe-0.23-cp38-cp38-macosx_10_9_x86_64.whl size=17655 sha256=fa8d89488e104cb5322c8d71a7f3f88769abe89a61eeaf22e47db095fd1886dd
  Stored in directory: /Users/yoshinobu.a.nakada/Library/Caches/pip/wheels/65/8f/24/603cee4e10464a0504406b5eae7754495e357b227ac3b61ac5
  Building wheel for livereload (setup.py) ... done
  Created wheel for livereload: filename=livereload-2.6.3-py2.py3-none-any.whl size=24713 sha256=1123cda9cf9620197f823267000d289c3a831746ea9402a35ff4763c1c192b9d
  Stored in directory: /Users/yoshinobu.a.nakada/Library/Caches/pip/wheels/48/d7/34/372e0521bd5c9f6dcdff307e37ef6f9c00c1e1e2afc9707b5c
Successfully built markupsafe livereload
ERROR: astroid 2.4.2 has requirement six~=1.12, but you'll have six 1.11.0 which is incompatible.
Installing collected packages: certifi, idna, markupsafe, jinja2, pyparsing, pytz, urllib3, requests, six, livereload, sphinx-autobuild, sphinx-rtd-theme
  Attempting uninstall: certifi
    Found existing installation: certifi 2020.6.20
    Uninstalling certifi-2020.6.20:
      Successfully uninstalled certifi-2020.6.20
  Attempting uninstall: idna
    Found existing installation: idna 2.10
    Uninstalling idna-2.10:
      Successfully uninstalled idna-2.10
  Attempting uninstall: markupsafe
    Found existing installation: MarkupSafe 1.1.1
    Uninstalling MarkupSafe-1.1.1:
      Successfully uninstalled MarkupSafe-1.1.1
  Attempting uninstall: jinja2
    Found existing installation: Jinja2 2.11.2
    Uninstalling Jinja2-2.11.2:
      Successfully uninstalled Jinja2-2.11.2
  Attempting uninstall: pyparsing
    Found existing installation: pyparsing 2.4.7
    Uninstalling pyparsing-2.4.7:
      Successfully uninstalled pyparsing-2.4.7
  Attempting uninstall: pytz
    Found existing installation: pytz 2020.1
    Uninstalling pytz-2020.1:
      Successfully uninstalled pytz-2020.1
  Attempting uninstall: urllib3
    Found existing installation: urllib3 1.25.9
    Uninstalling urllib3-1.25.9:
      Successfully uninstalled urllib3-1.25.9
  Attempting uninstall: requests
    Found existing installation: requests 2.24.0
    Uninstalling requests-2.24.0:
      Successfully uninstalled requests-2.24.0
  Attempting uninstall: six
    Found existing installation: six 1.15.0
    Uninstalling six-1.15.0:
      Successfully uninstalled six-1.15.0
Successfully installed certifi-2018.8.24 idna-2.7 jinja2-2.10.1 livereload-2.6.3 markupsafe-0.23 pyparsing-2.0.3 pytz-2018.5 requests-2.20.1 six-1.11.0 sphinx-autobuild-2020.9.1 sphinx-rtd-theme-0.5.0 urllib3-1.24.3
yoshinobu1579 commented 4 years ago

https://www.zipline.io/development-guidelines#contributing-to-the-docs これのpip install -r ./etc/requirements_docs.in -c ./etc/requirements_locked.txt を自分のMacの環境でそのまま走らせると上のエラーが出たが、 https://www.zipline.io/install 前にやったConda Env Managementの source activate env_zipline を走らせたあとで pip install -r ./etc/requirements_docs.in -c ./etc/requirements_locked.txt のコマンドを走らせるとエラーが出ずにうまく行った。(つまずきポイントの解消)(提案すべき??)

yoshinobu1579 commented 4 years ago

まず、DocumentがSphinx でできており、Buildする必要がある。 cd docs make html をGit cloneした後に走らせると以下のWarningが出る。(つまずきポイントの解消)(提案すべき??)

cd .. && python setup.py build_ext --inplace
running build_ext
cythoning zipline/assets/_assets.pyx to zipline/assets/_assets.c
/Users/yoshinobu.a.nakada/Documents/zipline2/zipline/.eggs/Cython-3.0a6-py3.5.egg/Cython/Compiler/Main.py:344: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/assets/_assets.pxd
  tree = Parsing.p_module(s, pxd, full_module_name)
cythoning zipline/assets/continuous_futures.pyx to zipline/assets/continuous_futures.c
/Users/yoshinobu.a.nakada/Documents/zipline2/zipline/.eggs/Cython-3.0a6-py3.5.egg/Cython/Compiler/Main.py:344: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/assets/continuous_futures.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
cythoning zipline/lib/adjustment.pyx to zipline/lib/adjustment.c
/Users/yoshinobu.a.nakada/Documents/zipline2/zipline/.eggs/Cython-3.0a6-py3.5.egg/Cython/Compiler/Main.py:344: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/lib/adjustment.pxd
  tree = Parsing.p_module(s, pxd, full_module_name)
warning: zipline/lib/adjustment.pyx:126:8: Unreachable code
cythoning zipline/lib/_factorize.pyx to zipline/lib/_factorize.c
/Users/yoshinobu.a.nakada/Documents/zipline2/zipline/.eggs/Cython-3.0a6-py3.5.egg/Cython/Compiler/Main.py:344: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/lib/_factorize.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
cythoning zipline/lib/_float64window.pyx to zipline/lib/_float64window.c
/Users/yoshinobu.a.nakada/Documents/zipline2/zipline/.eggs/Cython-3.0a6-py3.5.egg/Cython/Compiler/Main.py:344: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/lib/_float64window.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
cythoning zipline/lib/_int64window.pyx to zipline/lib/_int64window.c
/Users/yoshinobu.a.nakada/Documents/zipline2/zipline/.eggs/Cython-3.0a6-py3.5.egg/Cython/Compiler/Main.py:344: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/lib/_int64window.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
skipping 'zipline/lib/_int64window.c' Cython extension (up-to-date)
cythoning zipline/lib/_uint8window.pyx to zipline/lib/_uint8window.c
/Users/yoshinobu.a.nakada/Documents/zipline2/zipline/.eggs/Cython-3.0a6-py3.5.egg/Cython/Compiler/Main.py:344: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/lib/_uint8window.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
cythoning zipline/lib/_labelwindow.pyx to zipline/lib/_labelwindow.c
/Users/yoshinobu.a.nakada/Documents/zipline2/zipline/.eggs/Cython-3.0a6-py3.5.egg/Cython/Compiler/Main.py:344: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/lib/_labelwindow.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
cythoning zipline/lib/rank.pyx to zipline/lib/rank.c
/Users/yoshinobu.a.nakada/Documents/zipline2/zipline/.eggs/Cython-3.0a6-py3.5.egg/Cython/Compiler/Main.py:344: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/lib/rank.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
cythoning zipline/data/_equities.pyx to zipline/data/_equities.c
/Users/yoshinobu.a.nakada/Documents/zipline2/zipline/.eggs/Cython-3.0a6-py3.5.egg/Cython/Compiler/Main.py:344: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/data/_equities.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
cythoning zipline/data/_adjustments.pyx to zipline/data/_adjustments.c
/Users/yoshinobu.a.nakada/Documents/zipline2/zipline/.eggs/Cython-3.0a6-py3.5.egg/Cython/Compiler/Main.py:344: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/data/_adjustments.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
cythoning zipline/_protocol.pyx to zipline/_protocol.c
/Users/yoshinobu.a.nakada/Documents/zipline2/zipline/.eggs/Cython-3.0a6-py3.5.egg/Cython/Compiler/Main.py:344: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/_protocol.pxd
  tree = Parsing.p_module(s, pxd, full_module_name)
cythoning zipline/finance/_finance_ext.pyx to zipline/finance/_finance_ext.c
/Users/yoshinobu.a.nakada/Documents/zipline2/zipline/.eggs/Cython-3.0a6-py3.5.egg/Cython/Compiler/Main.py:344: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/finance/_finance_ext.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
cythoning zipline/gens/sim_engine.pyx to zipline/gens/sim_engine.c
/Users/yoshinobu.a.nakada/Documents/zipline2/zipline/.eggs/Cython-3.0a6-py3.5.egg/Cython/Compiler/Main.py:344: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/gens/sim_engine.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
warning: zipline/gens/sim_engine.pyx:79:53: Index should be typed for more efficient access
cythoning zipline/data/_minute_bar_internal.pyx to zipline/data/_minute_bar_internal.c
/Users/yoshinobu.a.nakada/Documents/zipline2/zipline/.eggs/Cython-3.0a6-py3.5.egg/Cython/Compiler/Main.py:344: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/data/_minute_bar_internal.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
cythoning zipline/data/_resample.pyx to zipline/data/_resample.c
/Users/yoshinobu.a.nakada/Documents/zipline2/zipline/.eggs/Cython-3.0a6-py3.5.egg/Cython/Compiler/Main.py:344: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/data/_resample.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
cythoning zipline/pipeline/loaders/blaze/_core.pyx to zipline/pipeline/loaders/blaze/_core.c
/Users/yoshinobu.a.nakada/Documents/zipline2/zipline/.eggs/Cython-3.0a6-py3.5.egg/Cython/Compiler/Main.py:344: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/pipeline/loaders/blaze/_core.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
building 'zipline.assets._assets' extension
creating build
creating build/temp.macosx-10.6-x86_64-3.5
creating build/temp.macosx-10.6-x86_64-3.5/zipline
creating build/temp.macosx-10.6-x86_64-3.5/zipline/assets
/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include/python3.5m -c zipline/assets/_assets.c -o build/temp.macosx-10.6-x86_64-3.5/zipline/assets/_assets.o
In file included from zipline/assets/_assets.c:798:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "
      "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
 ^
1 warning generated.
/usr/bin/clang -bundle -undefined dynamic_lookup -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.6-x86_64-3.5/zipline/assets/_assets.o -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -o /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/assets/_assets.cpython-35m-darwin.so
building 'zipline.assets.continuous_futures' extension
/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include/python3.5m -c zipline/assets/continuous_futures.c -o build/temp.macosx-10.6-x86_64-3.5/zipline/assets/continuous_futures.o
In file included from zipline/assets/continuous_futures.c:799:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "
      "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
 ^
zipline/assets/continuous_futures.c:28702:19: warning: code will never be executed [-Wunreachable-code]
            res = __pyx_nb_lshift_7zipline_6assets_18continuous_futures_ContractNode_maybe_call_slot(Py_TYPE(right)->tp_base, left, right );
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
zipline/assets/continuous_futures.c:28701:36: note: silence by adding parentheses to mark code as explicitly dead
        if (maybe_self_is_right && !1) {
                                   ^
                                   /* DISABLES CODE */ ( )
zipline/assets/continuous_futures.c:28752:19: warning: code will never be executed [-Wunreachable-code]
            res = __pyx_nb_rshift_7zipline_6assets_18continuous_futures_ContractNode_maybe_call_slot(Py_TYPE(right)->tp_base, left, right );
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
zipline/assets/continuous_futures.c:28751:36: note: silence by adding parentheses to mark code as explicitly dead
        if (maybe_self_is_right && !1) {
                                   ^
                                   /* DISABLES CODE */ ( )
3 warnings generated.
/usr/bin/clang -bundle -undefined dynamic_lookup -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.6-x86_64-3.5/zipline/assets/continuous_futures.o -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -o /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/assets/continuous_futures.cpython-35m-darwin.so
building 'zipline.lib.adjustment' extension
creating build/temp.macosx-10.6-x86_64-3.5/zipline/lib
/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include/python3.5m -c zipline/lib/adjustment.c -o build/temp.macosx-10.6-x86_64-3.5/zipline/lib/adjustment.o
In file included from zipline/lib/adjustment.c:798:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "
      "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
 ^
1 warning generated.
/usr/bin/clang -bundle -undefined dynamic_lookup -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.6-x86_64-3.5/zipline/lib/adjustment.o -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -o /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/lib/adjustment.cpython-35m-darwin.so
building 'zipline.lib._factorize' extension
/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include/python3.5m -c zipline/lib/_factorize.c -o build/temp.macosx-10.6-x86_64-3.5/zipline/lib/_factorize.o
In file included from zipline/lib/_factorize.c:800:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "
      "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
 ^
zipline/lib/_factorize.c:14614:52: warning: code will never be executed [-Wunreachable-code]
        } else if (PY_VERSION_HEX >= 0x030700A0 && flag == (METH_FASTCALL | METH_KEYWORDS)) {
                                                   ^~~~
zipline/lib/_factorize.c:14614:38: note: silence by adding parentheses to mark code as explicitly dead
        } else if (PY_VERSION_HEX >= 0x030700A0 && flag == (METH_FASTCALL | METH_KEYWORDS)) {
                                     ^
                                     /* DISABLES CODE */ ( )
2 warnings generated.
/usr/bin/clang -bundle -undefined dynamic_lookup -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.6-x86_64-3.5/zipline/lib/_factorize.o -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -o /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/lib/_factorize.cpython-35m-darwin.so
building 'zipline.lib._float64window' extension
/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include/python3.5m -c zipline/lib/_float64window.c -o build/temp.macosx-10.6-x86_64-3.5/zipline/lib/_float64window.o
In file included from zipline/lib/_float64window.c:793:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "
      "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
 ^
zipline/lib/_float64window.c:25509:52: warning: code will never be executed [-Wunreachable-code]
        } else if (PY_VERSION_HEX >= 0x030700A0 && flag == (METH_FASTCALL | METH_KEYWORDS)) {
                                                   ^~~~
zipline/lib/_float64window.c:25509:38: note: silence by adding parentheses to mark code as explicitly dead
        } else if (PY_VERSION_HEX >= 0x030700A0 && flag == (METH_FASTCALL | METH_KEYWORDS)) {
                                     ^
                                     /* DISABLES CODE */ ( )
2 warnings generated.
/usr/bin/clang -bundle -undefined dynamic_lookup -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.6-x86_64-3.5/zipline/lib/_float64window.o -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -o /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/lib/_float64window.cpython-35m-darwin.so
building 'zipline.lib._int64window' extension
/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include/python3.5m -c zipline/lib/_int64window.c -o build/temp.macosx-10.6-x86_64-3.5/zipline/lib/_int64window.o
In file included from zipline/lib/_int64window.c:793:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "
      "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
 ^
zipline/lib/_int64window.c:25515:52: warning: code will never be executed [-Wunreachable-code]
        } else if (PY_VERSION_HEX >= 0x030700A0 && flag == (METH_FASTCALL | METH_KEYWORDS)) {
                                                   ^~~~
zipline/lib/_int64window.c:25515:38: note: silence by adding parentheses to mark code as explicitly dead
        } else if (PY_VERSION_HEX >= 0x030700A0 && flag == (METH_FASTCALL | METH_KEYWORDS)) {
                                     ^
                                     /* DISABLES CODE */ ( )
2 warnings generated.
/usr/bin/clang -bundle -undefined dynamic_lookup -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.6-x86_64-3.5/zipline/lib/_int64window.o -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -o /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/lib/_int64window.cpython-35m-darwin.so
building 'zipline.lib._uint8window' extension
/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include/python3.5m -c zipline/lib/_uint8window.c -o build/temp.macosx-10.6-x86_64-3.5/zipline/lib/_uint8window.o
In file included from zipline/lib/_uint8window.c:793:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "
      "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
 ^
zipline/lib/_uint8window.c:25515:52: warning: code will never be executed [-Wunreachable-code]
        } else if (PY_VERSION_HEX >= 0x030700A0 && flag == (METH_FASTCALL | METH_KEYWORDS)) {
                                                   ^~~~
zipline/lib/_uint8window.c:25515:38: note: silence by adding parentheses to mark code as explicitly dead
        } else if (PY_VERSION_HEX >= 0x030700A0 && flag == (METH_FASTCALL | METH_KEYWORDS)) {
                                     ^
                                     /* DISABLES CODE */ ( )
2 warnings generated.
/usr/bin/clang -bundle -undefined dynamic_lookup -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.6-x86_64-3.5/zipline/lib/_uint8window.o -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -o /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/lib/_uint8window.cpython-35m-darwin.so
building 'zipline.lib._labelwindow' extension
/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include/python3.5m -c zipline/lib/_labelwindow.c -o build/temp.macosx-10.6-x86_64-3.5/zipline/lib/_labelwindow.o
In file included from zipline/lib/_labelwindow.c:793:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "
      "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
 ^
zipline/lib/_labelwindow.c:9701:52: warning: code will never be executed [-Wunreachable-code]
        } else if (PY_VERSION_HEX >= 0x030700A0 && flag == (METH_FASTCALL | METH_KEYWORDS)) {
                                                   ^~~~
zipline/lib/_labelwindow.c:9701:38: note: silence by adding parentheses to mark code as explicitly dead
        } else if (PY_VERSION_HEX >= 0x030700A0 && flag == (METH_FASTCALL | METH_KEYWORDS)) {
                                     ^
                                     /* DISABLES CODE */ ( )
2 warnings generated.
/usr/bin/clang -bundle -undefined dynamic_lookup -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.6-x86_64-3.5/zipline/lib/_labelwindow.o -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -o /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/lib/_labelwindow.cpython-35m-darwin.so
building 'zipline.lib.rank' extension
/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include/python3.5m -c zipline/lib/rank.c -o build/temp.macosx-10.6-x86_64-3.5/zipline/lib/rank.o
In file included from zipline/lib/rank.c:799:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "
      "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
 ^
1 warning generated.
/usr/bin/clang -bundle -undefined dynamic_lookup -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.6-x86_64-3.5/zipline/lib/rank.o -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -o /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/lib/rank.cpython-35m-darwin.so
building 'zipline.data._equities' extension
creating build/temp.macosx-10.6-x86_64-3.5/zipline/data
/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include/python3.5m -c zipline/data/_equities.c -o build/temp.macosx-10.6-x86_64-3.5/zipline/data/_equities.o
In file included from zipline/data/_equities.c:799:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "
      "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
 ^
1 warning generated.
/usr/bin/clang -bundle -undefined dynamic_lookup -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.6-x86_64-3.5/zipline/data/_equities.o -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -o /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/data/_equities.cpython-35m-darwin.so
building 'zipline.data._adjustments' extension
/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include/python3.5m -c zipline/data/_adjustments.c -o build/temp.macosx-10.6-x86_64-3.5/zipline/data/_adjustments.o
In file included from zipline/data/_adjustments.c:799:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "
      "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
 ^
1 warning generated.
/usr/bin/clang -bundle -undefined dynamic_lookup -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.6-x86_64-3.5/zipline/data/_adjustments.o -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -o /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/data/_adjustments.cpython-35m-darwin.so
building 'zipline._protocol' extension
/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include/python3.5m -c zipline/_protocol.c -o build/temp.macosx-10.6-x86_64-3.5/zipline/_protocol.o
In file included from zipline/_protocol.c:798:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "
      "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
 ^
1 warning generated.
/usr/bin/clang -bundle -undefined dynamic_lookup -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.6-x86_64-3.5/zipline/_protocol.o -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -o /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/_protocol.cpython-35m-darwin.so
building 'zipline.finance._finance_ext' extension
creating build/temp.macosx-10.6-x86_64-3.5/zipline/finance
/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include/python3.5m -c zipline/finance/_finance_ext.c -o build/temp.macosx-10.6-x86_64-3.5/zipline/finance/_finance_ext.o
In file included from zipline/finance/_finance_ext.c:800:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "
      "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
 ^
1 warning generated.
/usr/bin/clang -bundle -undefined dynamic_lookup -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.6-x86_64-3.5/zipline/finance/_finance_ext.o -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -o /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/finance/_finance_ext.cpython-35m-darwin.so
building 'zipline.gens.sim_engine' extension
creating build/temp.macosx-10.6-x86_64-3.5/zipline/gens
/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include/python3.5m -c zipline/gens/sim_engine.c -o build/temp.macosx-10.6-x86_64-3.5/zipline/gens/sim_engine.o
In file included from zipline/gens/sim_engine.c:798:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "
      "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
 ^
1 warning generated.
/usr/bin/clang -bundle -undefined dynamic_lookup -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.6-x86_64-3.5/zipline/gens/sim_engine.o -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -o /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/gens/sim_engine.cpython-35m-darwin.so
building 'zipline.data._minute_bar_internal' extension
/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include/python3.5m -c zipline/data/_minute_bar_internal.c -o build/temp.macosx-10.6-x86_64-3.5/zipline/data/_minute_bar_internal.o
In file included from zipline/data/_minute_bar_internal.c:798:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "
      "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
 ^
1 warning generated.
/usr/bin/clang -bundle -undefined dynamic_lookup -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.6-x86_64-3.5/zipline/data/_minute_bar_internal.o -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -o /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/data/_minute_bar_internal.cpython-35m-darwin.so
building 'zipline.data._resample' extension
/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include/python3.5m -c zipline/data/_resample.c -o build/temp.macosx-10.6-x86_64-3.5/zipline/data/_resample.o
In file included from zipline/data/_resample.c:793:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "
      "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
 ^
1 warning generated.
/usr/bin/clang -bundle -undefined dynamic_lookup -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.6-x86_64-3.5/zipline/data/_resample.o -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -o /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/data/_resample.cpython-35m-darwin.so
building 'zipline.pipeline.loaders.blaze._core' extension
creating build/temp.macosx-10.6-x86_64-3.5/zipline/pipeline
creating build/temp.macosx-10.6-x86_64-3.5/zipline/pipeline/loaders
creating build/temp.macosx-10.6-x86_64-3.5/zipline/pipeline/loaders/blaze
/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include -arch x86_64 -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include -I/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/include/python3.5m -c zipline/pipeline/loaders/blaze/_core.c -o build/temp.macosx-10.6-x86_64-3.5/zipline/pipeline/loaders/blaze/_core.o
In file included from zipline/pipeline/loaders/blaze/_core.c:799:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "
      "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
 ^
1 warning generated.
/usr/bin/clang -bundle -undefined dynamic_lookup -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.6-x86_64-3.5/zipline/pipeline/loaders/blaze/_core.o -L/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib -o /Users/yoshinobu.a.nakada/Documents/zipline2/zipline/zipline/pipeline/loaders/blaze/_core.cpython-35m-darwin.so
sphinx-build -b html -d build/doctrees   source build/html
Running Sphinx v3.2.1
making output directory... done
loading intersphinx inventory from https://pandas.pydata.org/pandas-docs/stable/objects.inv...
loading intersphinx inventory from https://docs.python.org/dev/objects.inv...
loading intersphinx inventory from https://docs.scipy.org/doc/scipy/reference/objects.inv...
loading intersphinx inventory from https://numpy.org/doc/stable/objects.inv...
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 10 source files that are out of date
updating environment: [new config] 10 added, 0 changed, 0 removed
reading sources... [100%] trading-calendars                                                                                                                                                           
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/zipline/finance/slippage.py:docstring of zipline.finance.slippage.SlippageModel.process_order:1: WARNING: duplicate object description of zipline.finance.slippage.SlippageModel.process_order, other instance in appendix, use :noindex: for one of them
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/zipline/algorithm.py:docstring of zipline.api.get_environment:5: WARNING: Unexpected indentation.
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/zipline/algorithm.py:docstring of zipline.api.get_environment:22: WARNING: Definition list ends without a blank line; unexpected unindent.
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/zipline/finance/blotter/blotter.py:docstring of zipline.finance.blotter.blotter.Blotter.order:26: WARNING: Unexpected indentation.
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/zipline/finance/blotter/simulation_blotter.py:docstring of zipline.finance.blotter.SimulationBlotter.order:26: WARNING: Unexpected indentation.
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/zipline/pipeline/factors/factor.py:docstring of zipline.pipeline.Factor.clip:1: WARNING: duplicate object description of zipline.pipeline.Factor.clip, other instance in appendix, use :noindex: for one of them
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/zipline/pipeline/data/dataset.py:docstring of zipline.pipeline.data.BoundColumn.currency_aware:1: WARNING: duplicate object description of zipline.pipeline.data.BoundColumn.currency_aware, other instance in appendix, use :noindex: for one of them
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/zipline/pipeline/data/dataset.py:docstring of zipline.pipeline.data.BoundColumn.dataset:1: WARNING: duplicate object description of zipline.pipeline.data.BoundColumn.dataset, other instance in appendix, use :noindex: for one of them
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/zipline/pipeline/data/dataset.py:docstring of zipline.pipeline.data.BoundColumn.metadata:1: WARNING: duplicate object description of zipline.pipeline.data.BoundColumn.metadata, other instance in appendix, use :noindex: for one of them
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/zipline/pipeline/data/dataset.py:docstring of zipline.pipeline.data.BoundColumn.name:1: WARNING: duplicate object description of zipline.pipeline.data.BoundColumn.name, other instance in appendix, use :noindex: for one of them
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/zipline/data/minute_bars.py:docstring of zipline.data.minute_bars.BcolzMinuteBarWriter.write:5: WARNING: Unexpected indentation.
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/zipline/data/minute_bars.py:docstring of zipline.data.minute_bars.BcolzMinuteBarWriter.write:11: WARNING: Definition list ends without a blank line; unexpected unindent.
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/zipline/data/minute_bars.py:docstring of zipline.data.minute_bars.BcolzMinuteBarWriter.write:12: WARNING: Block quote ends without a blank line; unexpected unindent.
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/zipline/data/minute_bars.py:docstring of zipline.data.minute_bars.BcolzMinuteBarWriter.write_sid:10: WARNING: Unexpected indentation.
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/zipline/data/minute_bars.py:docstring of zipline.data.minute_bars.BcolzMinuteBarWriter.write_sid:15: WARNING: Block quote ends without a blank line; unexpected unindent.
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/zipline/data/adjustments.py:docstring of zipline.data.adjustments.SQLiteAdjustmentWriter.write:49: WARNING: Unexpected indentation.
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/zipline/data/minute_bars.py:docstring of zipline.data.minute_bars.BcolzMinuteBarReader.first_trading_day:7: WARNING: Definition list ends without a blank line; unexpected unindent.
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/zipline/finance/ledger.py:docstring of zipline.finance.ledger.Ledger.portfolio:1: WARNING: duplicate object description of zipline.finance.ledger.Ledger.portfolio, other instance in appendix, use :noindex: for one of them
/Users/yoshinobu.a.nakada/opt/anaconda3/envs/env_zipline/lib/python3.5/site-packages/zipline/finance/metrics/metric.py:docstring of zipline.finance.metrics.metric.StartOfPeriodLedgerField:1: WARNING: duplicate object description of zipline.finance.metrics.metric.StartOfPeriodLedgerField, other instance in appendix, use :noindex: for one of them
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] trading-calendars                                                                                                                                                            
/Users/yoshinobu.a.nakada/Documents/zipline2/zipline/docs/source/appendix.rst:39: WARNING: Could not lex literal_block as "python". Highlighting skipped.
/Users/yoshinobu.a.nakada/Documents/zipline2/zipline/docs/source/beginner-tutorial.rst:57: WARNING: Could not lex literal_block as "python". Highlighting skipped.
/Users/yoshinobu.a.nakada/Documents/zipline2/zipline/docs/source/releases.rst:102: WARNING: Could not lex literal_block as "python". Highlighting skipped.
/Users/yoshinobu.a.nakada/Documents/zipline2/zipline/docs/source/releases.rst:119: WARNING: Could not lex literal_block as "python". Highlighting skipped.
/Users/yoshinobu.a.nakada/Documents/zipline2/zipline/docs/source/releases.rst:127: WARNING: Could not lex literal_block as "python". Highlighting skipped.
/Users/yoshinobu.a.nakada/Documents/zipline2/zipline/docs/source/releases.rst:75: WARNING: Could not lex literal_block as "python". Highlighting skipped.
generating indices...  genindexdone
highlighting module code... [100%] zipline.utils.run_algo                                                                                                                                             
writing additional pages...  searchdone
copying images... [100%] tutorial_files/tutorial_11_2.png                                                                                                                                             
copying static files... ... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded, 25 warnings.

The HTML pages are in build/html.

Build finished. The HTML pages are in build/html.
yoshinobu1579 commented 4 years ago

まず日本語の下書き 1: Anacondaの記述がない 2: ローカルでPipやるとエラー 3: Anancondaを自分はInstallしてあり、source activate env_ziplineをした後にPipやるとうまくいく 4: だからDoc追加

以下英語のPRに載せる文

Motivation

There was no description for anaconda user to install dependencies to build docs. So I run the pip install command below in my local Mac environment, but an error happened.

pip install -r ./etc/requirements_docs.in -c ./etc/requirements_locked.txt
This is the error I encountered ``` Requirement already satisfied: Sphinx>=1.3.2 in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from -r ./etc/requirements_docs.in (line 1)) (3.1.2) Requirement already satisfied: numpydoc>=0.5.0 in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from -r ./etc/requirements_docs.in (line 2)) (1.1.0) Collecting sphinx-autobuild>=0.6.0 Downloading sphinx_autobuild-2020.9.1-py3-none-any.whl (9.8 kB) Collecting sphinx-rtd-theme Downloading sphinx_rtd_theme-0.5.0-py2.py3-none-any.whl (10.8 MB) |████████████████████████████████| 10.8 MB 2.6 MB/s Requirement already satisfied: sphinxcontrib-serializinghtml in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (1.1.4) Requirement already satisfied: snowballstemmer>=1.1 in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (2.0.0) Requirement already satisfied: alabaster<0.8,>=0.7 in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (0.7.12) Requirement already satisfied: sphinxcontrib-htmlhelp in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (1.0.3) Requirement already satisfied: sphinxcontrib-jsmath in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (1.0.1) Requirement already satisfied: Pygments>=2.0 in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (2.6.1) Requirement already satisfied: sphinxcontrib-applehelp in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (1.0.2) Requirement already satisfied: sphinxcontrib-devhelp in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (1.0.2) Requirement already satisfied: docutils>=0.12 in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (0.16) Requirement already satisfied: babel>=1.3 in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (2.8.0) Requirement already satisfied: sphinxcontrib-qthelp in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (1.0.3) Requirement already satisfied: setuptools in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (49.2.0.post20200714) Requirement already satisfied: imagesize in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (1.2.0) Requirement already satisfied: packaging in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from Sphinx>=1.3.2->-r ./etc/requirements_docs.in (line 1)) (20.4) Collecting jinja2==2.10.1 Downloading Jinja2-2.10.1-py2.py3-none-any.whl (124 kB) |████████████████████████████████| 124 kB 1.4 MB/s Collecting requests==2.20.1 Downloading requests-2.20.1-py2.py3-none-any.whl (57 kB) |████████████████████████████████| 57 kB 813 kB/s Collecting livereload Downloading livereload-2.6.3.tar.gz (25 kB) Collecting pytz==2018.5 Downloading pytz-2018.5-py2.py3-none-any.whl (510 kB) |████████████████████████████████| 510 kB 1.2 MB/s Collecting pyparsing==2.0.3 Downloading pyparsing-2.0.3-py2.py3-none-any.whl (37 kB) Collecting six==1.11.0 Downloading six-1.11.0-py2.py3-none-any.whl (10 kB) Collecting markupsafe==0.23 Downloading MarkupSafe-0.23.tar.gz (13 kB) Collecting idna==2.7 Downloading idna-2.7-py2.py3-none-any.whl (58 kB) |████████████████████████████████| 58 kB 1.9 MB/s Requirement already satisfied: chardet==3.0.4 in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from -c ./etc/requirements_locked.txt (line 14)) (3.0.4) Collecting urllib3==1.24.3 Downloading urllib3-1.24.3-py2.py3-none-any.whl (118 kB) |████████████████████████████████| 118 kB 968 kB/s Collecting certifi==2018.8.24 Downloading certifi-2018.8.24-py2.py3-none-any.whl (147 kB) |████████████████████████████████| 147 kB 2.0 MB/s Requirement already satisfied: tornado in /Users/yoshinobu.a.nakada/opt/anaconda3/lib/python3.8/site-packages (from livereload->sphinx-autobuild>=0.6.0->-r ./etc/requirements_docs.in (line 3)) (6.0.4) Building wheels for collected packages: markupsafe, livereload Building wheel for markupsafe (setup.py) ... done Created wheel for markupsafe: filename=MarkupSafe-0.23-cp38-cp38-macosx_10_9_x86_64.whl size=17655 sha256=fa8d89488e104cb5322c8d71a7f3f88769abe89a61eeaf22e47db095fd1886dd Stored in directory: /Users/yoshinobu.a.nakada/Library/Caches/pip/wheels/65/8f/24/603cee4e10464a0504406b5eae7754495e357b227ac3b61ac5 Building wheel for livereload (setup.py) ... done Created wheel for livereload: filename=livereload-2.6.3-py2.py3-none-any.whl size=24713 sha256=1123cda9cf9620197f823267000d289c3a831746ea9402a35ff4763c1c192b9d Stored in directory: /Users/yoshinobu.a.nakada/Library/Caches/pip/wheels/48/d7/34/372e0521bd5c9f6dcdff307e37ef6f9c00c1e1e2afc9707b5c Successfully built markupsafe livereload ERROR: astroid 2.4.2 has requirement six~=1.12, but you'll have six 1.11.0 which is incompatible. Installing collected packages: certifi, idna, markupsafe, jinja2, pyparsing, pytz, urllib3, requests, six, livereload, sphinx-autobuild, sphinx-rtd-theme Attempting uninstall: certifi Found existing installation: certifi 2020.6.20 Uninstalling certifi-2020.6.20: Successfully uninstalled certifi-2020.6.20 Attempting uninstall: idna Found existing installation: idna 2.10 Uninstalling idna-2.10: Successfully uninstalled idna-2.10 Attempting uninstall: markupsafe Found existing installation: MarkupSafe 1.1.1 Uninstalling MarkupSafe-1.1.1: Successfully uninstalled MarkupSafe-1.1.1 Attempting uninstall: jinja2 Found existing installation: Jinja2 2.11.2 Uninstalling Jinja2-2.11.2: Successfully uninstalled Jinja2-2.11.2 Attempting uninstall: pyparsing Found existing installation: pyparsing 2.4.7 Uninstalling pyparsing-2.4.7: Successfully uninstalled pyparsing-2.4.7 Attempting uninstall: pytz Found existing installation: pytz 2020.1 Uninstalling pytz-2020.1: Successfully uninstalled pytz-2020.1 Attempting uninstall: urllib3 Found existing installation: urllib3 1.25.9 Uninstalling urllib3-1.25.9: Successfully uninstalled urllib3-1.25.9 Attempting uninstall: requests Found existing installation: requests 2.24.0 Uninstalling requests-2.24.0: Successfully uninstalled requests-2.24.0 Attempting uninstall: six Found existing installation: six 1.15.0 Uninstalling six-1.15.0: Successfully uninstalled six-1.15.0 Successfully installed certifi-2018.8.24 idna-2.7 jinja2-2.10.1 livereload-2.6.3 markupsafe-0.23 pyparsing-2.0.3 pytz-2018.5 requests-2.20.1 six-1.11.0 sphinx-autobuild-2020.9.1 sphinx-rtd-theme-0.5.0 urllib3-1.24.3 ```

However, I have followed this instruction and already installed Anaconda and finished until the following command, then the pip command succeeded without an error.

$ source activate env_zipline

Solution

So I modified this doc for contribution to add a description for Anaconda users.

What do you think about this modification? Also if there is any grammatical mistake, please let me know.

yoshinobu1579 commented 4 years ago

以下のPRを作成しました! https://github.com/quantopian/zipline/pull/2772

yoshinobu1579 commented 4 years ago

背景: 別のDocの修正PRを作ろうとして、DocをBuildするのに必要なLibをInstallしようとした際にエラーが出た(LocalのMac)でもAnacondaでやるとうまくいった。 AnacondaでBuildに必要なLibをInstallする方法がなかった。

knokmki612 commented 4 years ago

フィードバックの意図が伝わって開発元に反映されていますね! おつかれさまでした!