{"action":"opened","issue":{"url":"https://api.github.com/repos/quantopian/zipline/issues/2156","repository_url":"https://api.github.com/repos/quantopian/zipline","labels_url":"https://api.github.com/repos/quantopian/zipline/issues/2156/labels{/name}","comments_url":"https://api.github.com/repos/quantopian/zipline/issues/2156/comments","events_url":"https://api.github.com/repos/quantopian/zipline/issues/2156/events","html_url":"https://github.com/quantopian/zipline/issues/2156","id":318432488,"number":2156,"title":"Unable to ingest default data bundle","user":{"login":"niklay14","id":24392031,"avatar_url":"https://avatars2.githubusercontent.com/u/24392031?v=4","gravatar_id":"","url":"https://api.github.com/users/niklay14","html_url":"https://github.com/niklay14","followers_url":"https://api.github.com/users/niklay14/followers","following_url":"https://api.github.com/users/niklay14/following{/other_user}","gists_url":"https://api.github.com/users/niklay14/gists{/gist_id}","starred_url":"https://api.github.com/users/niklay14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niklay14/subscriptions","organizations_url":"https://api.github.com/users/niklay14/orgs","repos_url":"https://api.github.com/users/niklay14/repos","events_url":"https://api.github.com/users/niklay14/events{/privacy}","received_events_url":"https://api.github.com/users/niklay14/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-27T14:33:04Z","updated_at":"2018-04-27T14:33:04Z","closed_at":null,"author_association":"NONE","body":"Dear Zipline Maintainers,\r\n\r\nBefore I tell you about my issue, let me describe my environment:\r\n\r\n# Environment\r\n\r\n* Operating System: macOS 10.13.4\r\n* Python Version:  3.5\r\n* How did you install Zipline: Conda\r\n* Python packages: \r\n\r\n> # Name                    Version                   Build  Channel\r\n> _ipyw_jlab_nb_ext_conf    0.1.0            py36h2fc01ae_0  \r\n> alabaster                 0.7.10           py36h174008c_0  \r\n> anaconda                  5.1.0                    py36_2  \r\n> anaconda-client           1.6.9                    py36_0  \r\n> anaconda-navigator        1.7.0                    py36_0  \r\n> anaconda-project          0.8.2            py36h9ee5d53_0  \r\n> appnope                   0.1.0            py36hf537a9a_0  \r\n> appscript                 1.0.1            py36h9e71e49_1  \r\n> asn1crypto                0.24.0                   py36_0  \r\n> astroid                   1.6.1                    py36_0  \r\n> astropy                   2.0.3            py36h1de35cc_0  \r\n> attrs                     17.4.0                   py36_0  \r\n> babel                     2.5.3                    py36_0  \r\n> backports                 1.0              py36ha3c1827_1  \r\n> backports.shutil_get_terminal_size 1.0.0            py36hd7a2ee4_2  \r\n> beautifulsoup4            4.6.0            py36h72d3c9f_1  \r\n> bitarray                  0.8.1            py36h1de35cc_1  \r\n> bkcharts                  0.2              py36h073222e_0  \r\n> blaze                     0.11.3           py36h02e7a37_0  \r\n> bleach                    2.1.2                    py36_0  \r\n> bokeh                     0.12.13          py36h2f9c1c0_0  \r\n> boto                      2.48.0           py36hdbc59ac_1  \r\n> bottleneck                1.2.1            py36hbd380ad_0  \r\n> bzip2                     1.0.6                hd86a083_4  \r\n> ca-certificates           2017.08.26           ha1e5d58_0  \r\n> certifi                   2018.1.18                py36_0  \r\n> cffi                      1.11.4           py36h342bebf_0  \r\n> chardet                   3.0.4            py36h96c241c_1  \r\n> click                     6.7              py36hec950be_0  \r\n> cloudpickle               0.5.2                    py36_1  \r\n> clyent                    1.2.2            py36hae3ad88_0  \r\n> colorama                  0.3.9            py36hd29a30c_0  \r\n> conda                     4.4.10                   py36_0  \r\n> conda-build               3.4.1                    py36_0  \r\n> conda-env                 2.6.0                h36134e3_0  \r\n> conda-verify              2.0.0            py36he837df3_0  \r\n> contextlib2               0.5.5            py36hd66e5e7_0  \r\n> cryptography              2.1.4            py36h842514c_0  \r\n> curl                      7.58.0               ha441bb4_0  \r\n> cycler                    0.10.0           py36hfc81398_0  \r\n> cython                    0.27.3           py36h6ecb376_0  \r\n> cytoolz                   0.9.0            py36h1de35cc_0  \r\n> dask                      0.16.1                   py36_0  \r\n> dask-core                 0.16.1                   py36_0  \r\n> datashape                 0.5.4            py36hfb22df8_0  \r\n> dbus                      1.12.2               h5243cc1_1  \r\n> decorator                 4.2.1                    py36_0  \r\n> distributed               1.20.2                   py36_0  \r\n> docutils                  0.14             py36hbfde631_0  \r\n> entrypoints               0.2.3            py36hd81d71f_2  \r\n> et_xmlfile                1.0.1            py36h1315bdc_0  \r\n> expat                     2.2.5                hb8e80ba_0  \r\n> fastcache                 1.0.2            py36h1de35cc_2  \r\n> filelock                  2.0.13           py36hf9de95b_0  \r\n> flask                     0.12.2           py36h5658096_0  \r\n> flask-cors                3.0.3            py36h7387b97_0  \r\n> freetype                  2.8                  h12048fb_1  \r\n> get_terminal_size         1.0.0                h7520d66_0  \r\n> gettext                   0.19.8.1             h15daf44_3  \r\n> gevent                    1.2.2            py36ha70b9d6_0  \r\n> glib                      2.53.6               h33f6a65_2  \r\n> glob2                     0.6              py36h94c9186_0  \r\n> gmp                       6.1.2                hb37e062_1  \r\n> gmpy2                     2.0.8            py36hf9c35bd_2  \r\n> greenlet                  0.4.12           py36hf09ba7b_0  \r\n> h5py                      2.7.1            py36h39cdac5_0  \r\n> hdf5                      1.10.1               ha036c08_1  \r\n> heapdict                  1.0.0                    py36_2  \r\n> html5lib                  1.0.1            py36h2f9c1c0_0  \r\n> icu                       58.2                 h4b95b61_1  \r\n> idna                      2.6              py36h8628d0a_1  \r\n> imageio                   2.2.0            py36h5e01289_0  \r\n> imagesize                 0.7.1            py36h3495948_0  \r\n> intel-openmp              2018.0.0             h8158457_8  \r\n> ipykernel                 4.8.0                    py36_0  \r\n> ipython                   6.2.1            py36h3dda519_1  \r\n> ipython_genutils          0.2.0            py36h241746c_0  \r\n> ipywidgets                7.1.1                    py36_0  \r\n> isort                     4.2.15           py36hceb2a01_0  \r\n> itsdangerous              0.24             py36h49fbb8d_1  \r\n> jbig                      2.1                  h4d881f8_0  \r\n> jdcal                     1.3              py36h1986823_0  \r\n> jedi                      0.11.1                   py36_0  \r\n> jinja2                    2.10             py36hd36f9c5_0  \r\n> jpeg                      9b                   he5867d9_2  \r\n> jsonschema                2.6.0            py36hb385e00_0  \r\n> jupyter                   1.0.0                    py36_4  \r\n> jupyter_client            5.2.2                    py36_0  \r\n> jupyter_console           5.2.0            py36hccf5b1c_1  \r\n> jupyter_core              4.4.0            py36h79cf704_0  \r\n> jupyterlab                0.31.5                   py36_0  \r\n> jupyterlab_launcher       0.10.2                   py36_0  \r\n> lazy-object-proxy         1.3.1            py36h2fbbe47_0  \r\n> libcurl                   7.58.0               hf30b1f0_0  \r\n> libcxx                    4.0.1                h579ed51_0  \r\n> libcxxabi                 4.0.1                hebd6815_0  \r\n> libedit                   3.1                  hb4e282d_0  \r\n> libffi                    3.2.1                h475c297_4  \r\n> libgfortran               3.0.1                h93005f0_2  \r\n> libiconv                  1.15                 hdd342a3_7  \r\n> libpng                    1.6.34               he12f830_0  \r\n> libsodium                 1.0.15               hd9e47c5_0  \r\n> libssh2                   1.8.0                h322a93b_4  \r\n> libtiff                   4.0.9                h0dac147_0  \r\n> libxml2                   2.9.7                hab757c2_0  \r\n> libxslt                   1.1.32               hb819dd2_0  \r\n> llvmlite                  0.21.0           py36hff739e7_0  \r\n> locket                    0.2.0            py36hca03003_1  \r\n> lxml                      4.1.1            py36hef8c89e_1  \r\n> lzo                       2.10                 h362108e_2  \r\n> markupsafe                1.0              py36h3a1e703_1  \r\n> matplotlib                2.1.2            py36h6d6146d_0  \r\n> mccabe                    0.6.1            py36hdaeb55d_0  \r\n> mistune                   0.8.3                    py36_0  \r\n> mkl                       2018.0.1             hfbd8650_4  \r\n> mkl-service               1.1.2            py36h7ea6df4_4  \r\n> mpc                       1.0.3                h7a72875_5  \r\n> mpfr                      3.1.5                h711e7fd_2  \r\n> mpmath                    1.0.0            py36hf1b8295_2  \r\n> msgpack-python            0.5.1            py36h04f5b5a_0  \r\n> multipledispatch          0.4.9            py36hc5f92b5_0  \r\n> navigator-updater         0.1.0            py36h7aee5fb_0  \r\n> nbconvert                 5.3.1            py36h810822e_0  \r\n> nbformat                  4.4.0            py36h827af21_0  \r\n> ncurses                   6.0                  hd04f020_2  \r\n> networkx                  2.1                      py36_0  \r\n> nltk                      3.2.5            py36h1190bce_0  \r\n> nose                      1.3.7            py36h73fae2b_2  \r\n> notebook                  5.4.0                    py36_0  \r\n> numba                     0.36.2          np114py36hc2f221f_0  \r\n> numexpr                   2.6.4            py36habcfcfe_0  \r\n> numpy                     1.14.0           py36h8a80b8c_1  \r\n> numpydoc                  0.7.0            py36he54d08e_0  \r\n> odo                       0.5.1            py36hc1af34a_0  \r\n> olefile                   0.45.1                   py36_0  \r\n> openpyxl                  2.4.10                   py36_0  \r\n> openssl                   1.0.2n               hdbc3d79_0  \r\n> packaging                 16.8             py36he5e8135_0  \r\n> pandas                    0.22.0           py36h0a44026_0  \r\n> pandoc                    1.19.2.1             ha5e8f32_1  \r\n> pandocfilters             1.4.2            py36h3b0b094_1  \r\n> parso                     0.1.1            py36hc90e01c_0  \r\n> partd                     0.3.8            py36hf5c4cb8_0  \r\n> path.py                   10.5             py36h7bcb313_0  \r\n> pathlib2                  2.3.0            py36h877a6d8_0  \r\n> patsy                     0.5.0                    py36_0  \r\n> pcre                      8.41                 hfb6ab37_1  \r\n> pep8                      1.7.1                    py36_0  \r\n> pexpect                   4.3.1                    py36_0  \r\n> pickleshare               0.7.4            py36hf512f8e_0  \r\n> pillow                    5.0.0            py36hfcce615_0  \r\n> pip                       9.0.1            py36h1555ced_4  \r\n> pkginfo                   1.4.1            py36h25bf955_0  \r\n> pluggy                    0.6.0            py36hb1d0581_0  \r\n> ply                       3.10             py36h10e714e_0  \r\n> prompt_toolkit            1.0.15           py36haeda067_0  \r\n> psutil                    5.4.3            py36h1de35cc_0  \r\n> ptyprocess                0.5.2            py36he6521c3_0  \r\n> py                        1.5.2            py36ha69170d_0  \r\n> pycodestyle               2.3.1            py36h83e8646_0  \r\n> pycosat                   0.6.3            py36hee92d8f_0  \r\n> pycparser                 2.18             py36h724b2fc_1  \r\n> pycrypto                  2.6.1            py36h1de35cc_7  \r\n> pycurl                    7.43.0.1         py36hdbc3d79_0  \r\n> pyflakes                  1.6.0            py36hea45e83_0  \r\n> pygments                  2.2.0            py36h240cd3f_0  \r\n> pylint                    1.8.2                    py36_0  \r\n> pyodbc                    4.0.22           py36h0a44026_0  \r\n> pyopenssl                 17.5.0           py36h51e4350_0  \r\n> pyparsing                 2.2.0            py36hb281f35_0  \r\n> pyqt                      5.6.0            py36he5c6137_6  \r\n> pysocks                   1.6.7            py36hfa33cec_1  \r\n> pytables                  3.4.2            py36hfbd7ab0_2  \r\n> pytest                    3.3.2                    py36_0  \r\n> python                    3.6.4                hc167b69_1  \r\n> python-dateutil           2.6.1            py36h86d2abb_1  \r\n> python.app                2                py36h54569d5_7  \r\n> pytz                      2017.3           py36hf0bf824_0  \r\n> pywavelets                0.5.2            py36h2710a04_0  \r\n> pyyaml                    3.12             py36h2ba1e63_1  \r\n> pyzmq                     16.0.3           py36he48b5ad_0  \r\n> qt                        5.6.2               h9975529_14  \r\n> qtawesome                 0.4.4            py36h468c6fb_0  \r\n> qtconsole                 4.3.1            py36hd96c0ff_0  \r\n> qtpy                      1.3.1            py36h16bb863_0  \r\n> readline                  7.0                  hc1231fa_4  \r\n> requests                  2.18.4           py36h4516966_1  \r\n> rope                      0.10.7           py36h68959ac_0  \r\n> ruamel_yaml               0.15.35          py36h1de35cc_1  \r\n> scikit-image              0.13.1           py36h1de35cc_1  \r\n> scikit-learn              0.19.1           py36hffbff8c_0  \r\n> scipy                     1.0.0            py36h1de22e9_0  \r\n> seaborn                   0.8.1            py36h595ecd9_0  \r\n> send2trash                1.4.2                    py36_0  \r\n> setuptools                38.4.0                   py36_0  \r\n> simplegeneric             0.8.1                    py36_2  \r\n> singledispatch            3.4.0.3          py36hf20db9d_0  \r\n> sip                       4.18.1           py36h2824476_2  \r\n> six                       1.11.0           py36h0e22d5e_1  \r\n> snowballstemmer           1.2.1            py36h6c7b616_0  \r\n> sortedcollections         0.5.3            py36he9c3ed6_0  \r\n> sortedcontainers          1.5.9                    py36_0  \r\n> sphinx                    1.6.6                    py36_0  \r\n> sphinxcontrib             1.0              py36h9364dc8_1  \r\n> sphinxcontrib-websupport  1.0.1            py36h92f4a7a_1  \r\n> spyder                    3.2.6                    py36_0  \r\n> sqlalchemy                1.2.1            py36h1de35cc_0  \r\n> sqlite                    3.22.0               h3efe00b_0  \r\n> statsmodels               0.8.0            py36h9c68fc9_0  \r\n> sympy                     1.1.1            py36h7f3cf04_0  \r\n> tblib                     1.3.2            py36hda67792_0  \r\n> terminado                 0.8.1                    py36_1  \r\n> testpath                  0.3.1            py36h625a49b_0  \r\n> tk                        8.6.7                h35a86e2_3  \r\n> toolz                     0.9.0                    py36_0  \r\n> tornado                   4.5.3                    py36_0  \r\n> traitlets                 4.3.2            py36h65bd3ce_0  \r\n> typing                    3.6.2            py36haa2d9ef_0  \r\n> unicodecsv                0.14.1           py36he531d66_0  \r\n> unixodbc                  2.3.4                h4cb4dde_1  \r\n> urllib3                   1.22             py36h68b9469_0  \r\n> wcwidth                   0.1.7            py36h8c6ec74_0  \r\n> webencodings              0.5.1            py36h3b9701d_1  \r\n> werkzeug                  0.14.1                   py36_0  \r\n> wheel                     0.30.0           py36h5eb2c71_1  \r\n> widgetsnbextension        3.1.0                    py36_0  \r\n> wrapt                     1.10.11          py36hc29e774_0  \r\n> xlrd                      1.1.0            py36h336f4a2_1  \r\n> xlsxwriter                1.0.2            py36h3736301_0  \r\n> xlwings                   0.11.5                   py36_0  \r\n> xlwt                      1.2.0            py36h5ad1178_0  \r\n> xz                        5.2.3                h0278029_2  \r\n> yaml                      0.1.7                hc338f04_2  \r\n> zeromq                    4.2.2                ha360ad0_2  \r\n> zict                      0.1.3            py36h71da714_0  \r\n> zlib                      1.2.11               hf3cbc9b_2  \r\n\r\n\r\nNow that you know a little about me, let me tell you about the issue I am\r\nhaving:\r\n\r\nAfter installing zipline I tried to ingest the default data bundle by typing `zipline ingest -b quandl `(also tried it with my API key). However, I always get the following terminal output.\r\n\r\n> (py35) MBP-von-Niklas:~ niklasamslgruber$ zipline ingest -b quandl\r\n> Downloading WIKI metadata:   [------------------------------------]\r\n> Traceback (most recent call last):\r\n>   File \"/Users/niklasamslgruber/anaconda3/envs/py35/lib/python3.5/site-packages/zipline/utils/cache.py\", line 234, in __getitem__\r\n>     with open(self._keypath(key), 'rb') as f:\r\n> FileNotFoundError: [Errno 2] No such file or directory: '/Users/niklasamslgruber/.zipline/data/quandl/.cache/metadata-page-1'\r\n> \r\n> During handling of the above exception, another exception occurred:\r\n> \r\n> Traceback (most recent call last):\r\n>   File \"/Users/niklasamslgruber/anaconda3/envs/py35/lib/python3.5/site-packages/zipline/data/bundles/quandl.py\", line 33, in _fetch_raw_metadata\r\n>     raw = cache[key]\r\n>   File \"/Users/niklasamslgruber/anaconda3/envs/py35/lib/python3.5/site-packages/zipline/utils/cache.py\", line 239, in __getitem__\r\n>     raise KeyError(key)\r\n> KeyError: 'metadata-page-1'\r\n> \r\n> During handling of the above exception, another exception occurred:\r\n> \r\n> Traceback (most recent call last):\r\n>   File \"/Users/niklasamslgruber/anaconda3/envs/py35/bin/zipline\", line 11, in <module>\r\n>     load_entry_point('zipline==1.1.1', 'console_scripts', 'zipline')()\r\n>   File \"/Users/niklasamslgruber/anaconda3/envs/py35/lib/python3.5/site-packages/click/core.py\", line 722, in __call__\r\n>     return self.main(*args, **kwargs)\r\n>   File \"/Users/niklasamslgruber/anaconda3/envs/py35/lib/python3.5/site-packages/click/core.py\", line 697, in main\r\n>     rv = self.invoke(ctx)\r\n>   File \"/Users/niklasamslgruber/anaconda3/envs/py35/lib/python3.5/site-packages/click/core.py\", line 1066, in invoke\r\n>     return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n>   File \"/Users/niklasamslgruber/anaconda3/envs/py35/lib/python3.5/site-packages/click/core.py\", line 895, in invoke\r\n>     return ctx.invoke(self.callback, **ctx.params)\r\n>   File \"/Users/niklasamslgruber/anaconda3/envs/py35/lib/python3.5/site-packages/click/core.py\", line 535, in invoke\r\n>     return callback(*args, **kwargs)\r\n>   File \"/Users/niklasamslgruber/anaconda3/envs/py35/lib/python3.5/site-packages/zipline/__main__.py\", line 312, in ingest\r\n>     show_progress,\r\n>   File \"/Users/niklasamslgruber/anaconda3/envs/py35/lib/python3.5/site-packages/zipline/data/bundles/core.py\", line 451, in ingest\r\n>     pth.data_path([name, timestr], environ=environ),\r\n>   File \"/Users/niklasamslgruber/anaconda3/envs/py35/lib/python3.5/site-packages/zipline/data/bundles/quandl.py\", line 295, in quandl_bundle\r\n>     show_progress=show_progress,\r\n>   File \"/Users/niklasamslgruber/anaconda3/envs/py35/lib/python3.5/site-packages/zipline/data/bundles/quandl.py\", line 117, in fetch_symbol_metadata_frame\r\n>     data = pd.concat(blocks, ignore_index=True).rename(columns={\r\n>   File \"/Users/niklasamslgruber/anaconda3/envs/py35/lib/python3.5/site-packages/pandas/tools/merge.py\", line 845, in concat\r\n>     copy=copy)\r\n>   File \"/Users/niklasamslgruber/anaconda3/envs/py35/lib/python3.5/site-packages/pandas/tools/merge.py\", line 875, in __init__\r\n>     objs = list(objs)\r\n>   File \"/Users/niklasamslgruber/anaconda3/envs/py35/lib/python3.5/site-packages/click/_termui_impl.py\", line 259, in next\r\n>     rv = next(self.iter)\r\n>   File \"/Users/niklasamslgruber/anaconda3/envs/py35/lib/python3.5/site-packages/zipline/data/bundles/quandl.py\", line 61, in _fetch_raw_metadata\r\n>     ' attempts.' % (page_number, retries),\r\n> ValueError: Failed to download metadata page 1 after 5 attempts.\r\n\r\n\r\nSincerely,\r\nNiklas\r\n"}}
{"actor":{"display_login":"niklay14"}}