Repository: quantopian/zipline

Issue #2222: Quandl ingest does not produce expected .sqlite file
Created: 2018-06-25T23:37:07Z
Environment
quantopian/zipline docker container on MacOS host


Operating System:
Linux 657988c09d2a 4.9.87-linuxkit-aufs #1 SMP Wed Mar 14 15:12:16 UTC 2018 x86_64 GNU/Linux


Python Version:
Python 3.5.5


Python Bitness:
64


How did you install Zipline:
docker run -v notebooks:/projects -v ~/.docker_containers/.zipline:/root/.zipline -p 8888:8888/tcp --name zipline -it quantopian/zipline
edited Dockerfile ln 65 to && pip install jupyterlab


Python packages:


alembic==0.9.9
backcall==0.1.0
bcolz==0.12.1
bleach==2.1.3
Bottleneck==1.2.1
certifi==2018.4.16
chardet==3.0.4
click==6.7
contextlib2==0.5.5
cycler==0.10.0
cyordereddict==1.0.0
Cython==0.28.3
decorator==4.3.0
empyrical==0.5.0
entrypoints==0.2.3
html5lib==1.0.1
idna==2.7
intervaltree==2.1.0
ipykernel==4.8.2
ipython==6.4.0
ipython-genutils==0.2.0
jedi==0.12.0
Jinja2==2.10
jsonschema==2.6.0
jupyter-client==5.2.3
jupyter-core==4.4.0
jupyterlab==0.32.1
jupyterlab-launcher==0.10.5
kiwisolver==1.0.1
Logbook==1.4.0
lru-dict==1.1.6
Mako==1.0.7
MarkupSafe==1.0
matplotlib==2.2.2
mistune==0.8.3
multipledispatch==0.5.0
nbconvert==5.3.1
nbformat==4.4.0
networkx==1.11
notebook==5.5.0
numexpr==2.6.5
numpy==1.14.5
pandas==0.18.1
pandas-datareader==0.5.0
pandocfilters==1.4.2
parso==0.2.1
patsy==0.5.0
pexpect==4.6.0
pickleshare==0.7.4
prompt-toolkit==1.0.15
ptyprocess==0.6.0
Pygments==2.2.0
pyparsing==2.2.0
python-dateutil==2.7.3
python-editor==1.0.3
pytz==2018.4
pyzmq==17.0.0
requests==2.19.1
requests-file==1.4.3
requests-ftp==0.3.1
scipy==0.19.1
Send2Trash==1.5.0
simplegeneric==0.8.1
six==1.11.0
sortedcontainers==2.0.4
SQLAlchemy==1.2.8
statsmodels==0.9.0
TA-Lib==0.4.17
tables==3.4.4
terminado==0.8.1
testpath==0.3.1
toolz==0.9.0
tornado==5.0.2
traitlets==4.3.2
urllib3==1.23
wcwidth==0.1.7
webencodings==0.5.1

Description of Issue
After building the container,

navigate to localhost:8888
login to jupyterlab
open terminal in jupyterlab
run /bin/bash to open bash shell
run export QUANDL_API_KEY=<key>
run zipline ingest -b quantopian-quandl

Observe:
Downloading Bundle: quantopian-quandl  [####################################]  100%
[2018-06-25 22:20:40.846461] INFO: zipline.data.bundles.quandl: Writing data to /root/.zipline/data/quantopian-quandl/2018-06-25T22;19;39.980603.

ls /root/.zipline/data/quantopian-quandl/
2018-06-25T22;19;39.980603

Prove zipline works:
zipline run --help
Usage: zipline run [OPTIONS]

  Run a backtest for the given algorithm.

Options:
  -f, --algofile FILENAME         The file that co...[truncated output]

Example fails:
root@657988c09d2a:/projects# pwd
/projects
root@657988c09d2a:/projects# zipline run -f ../../zipline/examples/buyapple.py --start 2016-1-1 --end 2018-1-1 -o buyapple_out.pickle
Usage: zipline run [OPTIONS]

Error: Invalid value for "-f" / "--algofile": Could not open file: ../../zipline/examples/buyapple.py: No such file or directory
root@657988c09d2a:/projects#

Try jupyter notebook:
IN %reload_ext zipline
OUT /zipline/zipline/__init__.py:40: UserWarning: Found TradingCalendar instances after zipline import.
Zipline startup will be much slower until this is fixed!
  "Found TradingCalendar instances after zipline import.\n"

IN %env QUANDL_API_KEY=<key with no quotes>
OUT env: QUANDL_API_KEY='<key redacted>'

IN %zipline ingest -b quantopian-quandl
OUT ---------------------------------------------------------------------------
UsageError                                Traceback (most recent call last)
<ipython-input-20-7c0c9aebe8e1> in <module>()
----> 1 get_ipython().run_line_magic('zipline', 'ingest -b quantopian-quandl')

/usr/local/lib/python3.5/site-packages/IPython/core/interactiveshell.py in run_line_magic(self, magic_name, line, _stack_depth)
   2129                 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
   2130             with self.builtin_trap:
-> 2131                 result = fn(*args,**kwargs)
   2132             return result
   2133 

/zipline/zipline/__main__.py in zipline_magic(line, cell)
    292             '%s%%zipline' % ((cell or '') and '%'),
    293             # don't use system exit and propogate errors to the caller
--> 294             standalone_mode=False,
    295         )
    296     except SystemExit as e:

/usr/local/lib/python3.5/site-packages/click/core.py in main(self, args, prog_name, complete_var, standalone_mode, **extra)
    694         try:
    695             try:
--> 696                 with self.make_context(prog_name, args, **extra) as ctx:
    697                     rv = self.invoke(ctx)
    698                     if not standalone_mode:

/usr/local/lib/python3.5/site-packages/click/core.py in make_context(self, info_name, args, parent, **extra)
    619         ctx = Context(self, info_name=info_name, parent=parent, **extra)
    620         with ctx.scope(cleanup=False):
--> 621             self.parse_args(ctx, args)
    622         return ctx
    623 

/usr/local/lib/python3.5/site-packages/click/core.py in parse_args(self, ctx, args)
    883             ctx.fail('Got unexpected extra argument%s (%s)'
    884                      % (len(args) != 1 and 's' or '',
--> 885                         ' '.join(map(make_str, args))))
    886 
    887         ctx.args = args

/usr/local/lib/python3.5/site-packages/click/core.py in fail(self, message)
    474         :param message: the error message to fail with.
    475         """
--> 476         raise UsageError(message, self)
    477 
    478     def abort(self):

UsageError: Got unexpected extra argument (ingest)

IN %%zipline --start 2016-1-1 --end 2018-1-1
from zipline.api import symbol, order, record

def initialize(context):
    pass

def handle_data(context, data):
    order(symbol('AAPL'), 10)
    record(AAPL=data[symbol('AAPL')].price)

OUT ---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-21-522b5c60fc93> in <module>()
----> 1 get_ipython().run_cell_magic('zipline', '--start 2016-1-1 --end 2018-1-1', "from zipline.api import symbol, order, record\n\ndef initialize(context):\n    pass\n\ndef handle_data(context, data):\n    order(symbol('AAPL'), 10)\n    record(AAPL=data[symbol('AAPL')].price)")

/usr/local/lib/python3.5/site-packages/IPython/core/interactiveshell.py in run_cell_magic(self, magic_name, line, cell)
   2165             magic_arg_s = self.var_expand(line, stack_depth)
   2166             with self.builtin_trap:
-> 2167                 result = fn(magic_arg_s, cell)
   2168             return result
   2169 

/zipline/zipline/__main__.py in zipline_magic(line, cell)
    292             '%s%%zipline' % ((cell or '') and '%'),
    293             # don't use system exit and propogate errors to the caller
--> 294             standalone_mode=False,
    295         )
    296     except SystemExit as e:

/usr/local/lib/python3.5/site-packages/click/core.py in main(self, args, prog_name, complete_var, standalone_mode, **extra)
    695             try:
    696                 with self.make_context(prog_name, args, **extra) as ctx:
--> 697                     rv = self.invoke(ctx)
    698                     if not standalone_mode:
    699                         return rv

/usr/local/lib/python3.5/site-packages/click/core.py in invoke(self, ctx)
    893         """
    894         if self.callback is not None:
--> 895             return ctx.invoke(self.callback, **ctx.params)
    896 
    897 

/usr/local/lib/python3.5/site-packages/click/core.py in invoke(*args, **kwargs)
    533         with augment_usage_errors(self):
    534             with ctx:
--> 535                 return callback(*args, **kwargs)
    536 
    537     def forward(*args, **kwargs):

/usr/local/lib/python3.5/site-packages/click/decorators.py in new_func(*args, **kwargs)
     15     """
     16     def new_func(*args, **kwargs):
---> 17         return f(get_current_context(), *args, **kwargs)
     18     return update_wrapper(new_func, f)
     19 

/zipline/zipline/__main__.py in run(ctx, algofile, algotext, define, data_frequency, capital_base, bundle, bundle_timestamp, start, end, output, trading_calendar, print_algo, metrics_set, local_namespace)
    257         metrics_set=metrics_set,
    258         local_namespace=local_namespace,
--> 259         environ=os.environ,
    260     )
    261 

/zipline/zipline/utils/run_algo.py in _run(handle_data, initialize, before_trading_start, analyze, algofile, algotext, defines, data_frequency, capital_base, data, bundle, bundle_timestamp, start, end, output, trading_calendar, print_algo, metrics_set, local_namespace, environ)
    136             bundle,
    137             environ,
--> 138             bundle_timestamp,
    139         )
    140 

/zipline/zipline/data/bundles/core.py in load(name, environ, timestamp)
    522         return BundleData(
    523             asset_finder=AssetFinder(
--> 524                 asset_db_path(name, timestr, environ=environ),
    525             ),
    526             equity_minute_bar_reader=BcolzMinuteBarReader(

/zipline/zipline/assets/assets.py in __init__(self, engine, future_chain_predicates)
    265     @preprocess(engine=coerce_string_to_eng(require_exists=True))
    266     def __init__(self, engine, future_chain_predicates=CHAIN_PREDICATES):
--> 267         self.engine = engine
    268         metadata = sa.MetaData(bind=engine)
    269         metadata.reflect(only=asset_db_table_names)

/zipline/zipline/utils/input_validation.py in preprocessor(func, argname, arg)
    790     def preprocessor(func, argname, arg):
    791         if isinstance(arg, from_):
--> 792             return to(arg, **to_kwargs)
    793         return arg
    794     return preprocessor

/zipline/zipline/utils/sqlite_utils.py in check_and_create_engine(path, require_exists)
     44 def check_and_create_engine(path, require_exists):
     45     if require_exists:
---> 46         verify_sqlite_path_exists(path)
     47     return sa.create_engine('sqlite:///' + path)
     48 

/zipline/zipline/utils/sqlite_utils.py in verify_sqlite_path_exists(path)
     33 def verify_sqlite_path_exists(path):
     34     if path != ':memory:' and not os.path.exists(path):
---> 35         raise ValueError("SQLite file {!r} doesn't exist.".format(path))
     36 
     37 

ValueError: SQLite file '/root/.zipline/data/quandl/2018-06-25T21;53;44.880174/assets-6.sqlite' doesn't exist.

IN import os
os.listdir('/root/.zipline/data/quandl/')
OUT ['2018-06-25T21;53;44.880174', '2018-06-25T21;44;20.642592', '.cache']

IN import os
os.listdir('/root/.zipline/data/quandl/2018-06-25T21;53;44.880174/')
OUT []

IN import os
os.listdir('/root/.zipline/data/quandl/2018-06-25T21;44;20.642592')
OUT []

...
What steps have you taken to resolve this already?
destroyed container, re-built, same results
...
Thanks in advance for your suggestions.

Duplicate issue #2335: Zipline Tutorial - Cannot run sample algorithm - ValueError: SQLite file '...assets-6.sqlite' doesn't exist.
Created: 2018-10-21T08:53:59Z
Dear Zipline Maintainers,
Before I tell you about my issue, let me describe my environment:
Environment


Operating System: (MacOS)
Python Version: Python 3.5.6 : Anaconda, Inc.
Python Bitness:
How did you install Zipline: conda
Python packages:

Name                    Version                   Build  Channel
_ipyw_jlab_nb_ext_conf    0.1.0                    py35_0
alabaster                 0.7.11                   py35_0
alembic                   0.7.7                    py35_0    Quantopian
anaconda-client           1.7.2                    py35_0
anaconda-navigator        1.9.2                    py35_0
anaconda-project          0.8.2                    py35_0
appdirs                   1.4.3            py35h28b3542_0
appnope                   0.1.0            py35hd172556_0
appscript                 1.0.1            py35h1de35cc_1
asn1crypto                0.24.0                   py35_0
astroid                   2.0.4                    py35_0
astropy                   3.0.4            py35h1de35cc_0
atomicwrites              1.2.1                    py35_0
attrs                     18.2.0           py35h28b3542_0
automat                   0.7.0                    py35_0
babel                     2.6.0                    py35_0
backcall                  0.1.0                    py35_0
backports                 1.0                      py35_1
backports.shutil_get_terminal_size 1.0.0                    py35_2
bcolz                     0.12.1              np114py35_0    Quantopian
beautifulsoup4            4.6.3                    py35_0
bitarray                  0.8.3            py35h1de35cc_0
bkcharts                  0.2              py35h18a45e2_0
blas                      1.0                         mkl
blaze                     0.11.3                   py35_0
bleach                    2.1.4                    py35_0
blosc                     1.14.4               hd9629dc_0
bokeh                     0.13.0                   py35_0
boto                      2.49.0                   py35_0
bottleneck                1.2.1            py35h1d22016_1
bzip2                     1.0.6                h1de35cc_5
ca-certificates           2018.03.07                    0
certifi                   2018.8.24                py35_1
cffi                      1.11.5           py35h6174b99_1
chardet                   3.0.4                    py35_1
click                     6.7              py35hcc65ea6_0
cloudpickle               0.5.5                    py35_0
clyent                    1.2.2                    py35_1
colorama                  0.3.9            py35h1d66b2b_0
conda                     4.5.11                   py35_0
conda-build               3.15.1                   py35_0
conda-env                 2.6.0                         1
constantly                15.1.0           py35h28b3542_0
contextlib2               0.5.5            py35hc2c67b4_0
cryptography              2.3.1            py35hdbc3d79_0
curl                      7.61.0               ha441bb4_0
cycler                    0.10.0           py35hb89929e_0
cyordereddict             0.2.2                    py35_0    Quantopian
cython                    0.28.5           py35h0a44026_0
cytoolz                   0.9.0.1          py35h1de35cc_1
dask                      0.19.2                   py35_0
dask-core                 0.19.2                   py35_0
datashape                 0.5.4                    py35_1
dbus                      1.13.2               h760590f_1
decorator                 4.3.0                    py35_0
defusedxml                0.5.0                    py35_1
distributed               1.23.2                   py35_0
docutils                  0.14             py35hb13dbd9_0
empyrical                 0.5.0                    py35_0    Quantopian
entrypoints               0.2.3                    py35_2
et_xmlfile                1.0.1            py35h40eb147_0
expat                     2.2.6                h0a44026_0
fastcache                 1.0.2            py35h1de35cc_2
filelock                  3.0.8                    py35_0
flask                     1.0.2                    py35_1
flask-cors                3.0.6                    py35_0
freetype                  2.9.1                hb4e5f40_0
get_terminal_size         1.0.0                h7520d66_0
gettext                   0.19.8.1             h15daf44_3
glib                      2.56.2               hd9629dc_0
glob2                     0.6              py35hdef87b6_0
gmp                       6.1.2                hb37e062_1
gmpy2                     2.0.8            py35h212fb8a_2
greenlet                  0.4.15           py35h1de35cc_0
h5py                      2.8.0            py35h878fce3_3
hdf5                      1.10.2               hfa1e0ec_1
heapdict                  1.0.0                    py35_2
html5lib                  1.0.1                    py35_0
hyperlink                 18.0.0                   py35_0
icu                       58.2                 h4b95b61_1
idna                      2.7                      py35_0
imageio                   2.4.1                    py35_0
imagesize                 1.1.0                    py35_0
incremental               17.5.0                   py35_0
inflection                0.3.1                    py35_1
intel-openmp              2019.0                      118
intervaltree              2.1.0                    py35_0    Quantopian
ipykernel                 4.10.0                   py35_0
ipython                   6.5.0                    py35_0
ipython_genutils          0.2.0            py35hf129286_0
ipywidgets                7.4.1                    py35_0
isort                     4.3.4                    py35_0
itsdangerous              0.24                     py35_1
jbig                      2.1                  h4d881f8_0
jdcal                     1.4                      py35_0
jedi                      0.12.1                   py35_0
jinja2                    2.10                     py35_0
jpeg                      9b                   he5867d9_2
jsonschema                2.6.0            py35h2dd9e4b_0
jupyter                   1.0.0                    py35_7
jupyter_client            5.2.3                    py35_0
jupyter_console           5.2.0            py35hd2aa692_1
jupyter_core              4.4.0                    py35_0
jupyterlab                0.34.9                   py35_0
jupyterlab_launcher       0.13.1                   py35_0
keyring                   13.2.1                   py35_0
kiwisolver                1.0.1            py35h219a9d8_0
lazy-object-proxy         1.3.1            py35h1de35cc_2
libcurl                   7.61.0               hf30b1f0_0
libcxx                    4.0.1                h579ed51_0
libcxxabi                 4.0.1                hebd6815_0
libedit                   3.1.20170329         hb402a30_2
libffi                    3.2.1                h475c297_4
libgfortran               3.0.1                h93005f0_2
libiconv                  1.15                 hdd342a3_7
libpng                    1.6.34               he12f830_0
libsodium                 1.0.16               h3efe00b_0
libssh2                   1.8.0                h322a93b_4
libtiff                   4.0.9                hcb84e12_2
libxml2                   2.9.8                hab757c2_1
libxslt                   1.1.32               hb819dd2_0
llvmlite                  0.24.0           py35hc454e04_0
locket                    0.2.0            py35h58cf053_1
logbook                   0.12.5                   py35_0    Quantopian
lru-dict                  1.1.4                    py35_0    Quantopian
lxml                      4.2.5            py35hef8c89e_0
lzo                       2.10                 h362108e_2
mako                      1.0.7                    py35_0
markupsafe                1.0              py35h1de35cc_1
matplotlib                3.0.0            py35h54f8f79_0
mccabe                    0.6.1            py35h3f6a9a1_0
mistune                   0.8.3            py35h1de35cc_1
mkl                       2019.0                      118
mkl-service               1.1.2            py35h6b9c3cc_5
mkl_fft                   1.0.6            py35hb8a8100_0
mkl_random                1.0.1            py35h5d10147_1
more-itertools            4.3.0                    py35_0
mpc                       1.0.3                h7a72875_5
mpfr                      3.1.5                h711e7fd_2
mpmath                    1.0.0                    py35_2
msgpack-python            0.5.6            py35h04f5b5a_1
multipledispatch          0.6.0                    py35_0
navigator-updater         0.2.1                    py35_0
nbconvert                 5.4.0                    py35_1
nbformat                  4.4.0            py35h41c2038_0
ncurses                   6.1                  h0a44026_0
networkx                  1.11                     py35_1
nltk                      3.3.0                    py35_0
nose                      1.3.7                    py35_2
notebook                  5.6.0                    py35_0
numba                     0.39.0           py35h6440ff4_0
numexpr                   2.6.1               np114py35_0    Quantopian
numpy                     1.14.6           py35h648b28d_4
numpy-base                1.14.6           py35h8a80b8c_4
numpydoc                  0.8.0                    py35_0
odo                       0.5.1            py35h7f7a387_0
olefile                   0.46                     py35_0
openpyxl                  2.5.6                    py35_0
openssl                   1.0.2p               h1de35cc_0
packaging                 17.1                     py35_0
pandas                    0.22.0           py35h0a44026_0
pandas-datareader         0.6.0                    py35_0
pandoc                    1.19.2.1             ha5e8f32_1
pandocfilters             1.4.2                    py35_1
parso                     0.3.1                    py35_0
partd                     0.3.8            py35h6fadee7_0
path.py                   11.1.0                   py35_0
pathlib2                  2.3.2                    py35_0
patsy                     0.5.0                    py35_0
pcre                      8.42                 h378b8a2_0
pep8                      1.7.1                    py35_0
pexpect                   4.6.0                    py35_0
pickleshare               0.7.4            py35h9517181_0
pillow                    5.2.0            py35hb68e598_0
pip                       10.0.1                   py35_0
pkginfo                   1.4.2                    py35_1
pluggy                    0.7.1            py35h28b3542_0
ply                       3.11                     py35_0
prometheus_client         0.3.1            py35h28b3542_0
prompt_toolkit            1.0.15           py35h93950c5_0
psutil                    5.4.7            py35h1de35cc_0
ptyprocess                0.6.0                    py35_0
py                        1.6.0                    py35_0
pyasn1                    0.4.4            py35h28b3542_0
pyasn1-modules            0.2.2                    py35_0
pycodestyle               2.4.0                    py35_0
pycosat                   0.6.3            py35h745f8c1_0
pycparser                 2.19                     py35_0
pycrypto                  2.6.1            py35h1de35cc_8
pycurl                    7.43.0.2         py35hdbc3d79_0
pyflakes                  2.0.0                    py35_0
pygments                  2.2.0            py35h392a662_0
pylint                    2.1.1                    py35_0
pyodbc                    4.0.24           py35h0a44026_0
pyopenssl                 18.0.0                   py35_0
pyparsing                 2.2.1                    py35_0
pyqt                      5.9.2            py35h655552a_2
pysocks                   1.6.8                    py35_0
pytables                  3.4.4            py35h13cba08_0
pytest                    3.8.1                    py35_0
pytest-arraydiff          0.2              py35h39e3cac_0
pytest-astropy            0.4.0                    py35_0
pytest-doctestplus        0.1.3                    py35_0
pytest-openfiles          0.3.0                    py35_0
pytest-remotedata         0.3.0                    py35_0
python                    3.5.6                hc167b69_0
python-dateutil           2.7.3                    py35_0
python.app                2                        py35_9
pytz                      2018.5                   py35_0
pywavelets                1.0.0            py35h1d22016_0
pyyaml                    3.13             py35h1de35cc_0
pyzmq                     17.1.2           py35h1de35cc_0
qt                        5.9.6                h45cd832_2
qtawesome                 0.4.4            py35h21e61ad_0
qtconsole                 4.4.1                    py35_0
qtpy                      1.5.0                    py35_0
quandl                    3.4.2                    py35_0
readline                  7.0                  h1de35cc_5
requests                  2.19.1                   py35_0
requests-file             1.4.3                    py35_0
requests-ftp              0.3.1                    py35_0
rope                      0.11.0                   py35_0
ruamel_yaml               0.15.46          py35h1de35cc_0
scikit-image              0.14.0           py35h0a44026_1
scikit-learn              0.20.0           py35h4f467ca_1
scipy                     1.1.0            py35hcaad992_0
seaborn                   0.9.0                    py35_0
send2trash                1.5.0                    py35_0
service_identity          17.0.0           py35h28b3542_0
setuptools                40.2.0                   py35_0
simplegeneric             0.8.1                    py35_2
singledispatch            3.4.0.3          py35h0acf360_0
sip                       4.19.8           py35h0a44026_0
six                       1.11.0                   py35_1
snappy                    1.1.7                he62c110_3
snowballstemmer           1.2.1            py35hbb7be01_0
sortedcollections         1.0.1                    py35_0
sortedcontainers          2.0.5                    py35_0
sphinx                    1.7.9                    py35_0
sphinxcontrib             1.0                      py35_1
sphinxcontrib-websupport  1.1.0                    py35_1
spyder                    3.3.1                    py35_1
spyder-kernels            0.2.6                    py35_0
sqlalchemy                1.2.11           py35h1de35cc_0
sqlite                    3.24.0               ha441bb4_0
statsmodels               0.9.0            py35h917ab60_0
sympy                     1.2                      py35_0
ta-lib                    0.4.9               np114py35_0    quantopian
tblib                     1.3.2            py35h1b9c5fd_0
terminado                 0.8.1                    py35_1
testpath                  0.3.1            py35hf8009f4_0
tk                        8.6.8                ha441bb4_0
toolz                     0.9.0                    py35_0
tornado                   5.1.1            py35h1de35cc_0
tqdm                      4.26.0           py35h28b3542_0
trading-calendars         1.0.1                    py35_0    Quantopian
traitlets                 4.3.2            py35hd3d1486_0
twisted                   17.5.0                   py35_0
typed-ast                 1.1.0            py35h6952a12_0
unicodecsv                0.14.1           py35h2154ad0_0
unixodbc                  2.3.7                h1de35cc_0
urllib3                   1.23                     py35_0
wcwidth                   0.1.7            py35hdd0c235_0
webencodings              0.5.1                    py35_1
werkzeug                  0.14.1                   py35_0
wheel                     0.31.1                   py35_0
widgetsnbextension        3.4.1                    py35_0
wrapt                     1.10.11          py35h1de35cc_2
xlrd                      1.1.0                    py35_1
xlsxwriter                1.1.1                    py35_0
xlwings                   0.11.8                   py35_0
xlwt                      1.2.0            py35hf70d7fa_0
xz                        5.2.4                h1de35cc_4
yaml                      0.1.7                hc338f04_2
zeromq                    4.2.5                h0a44026_1
zict                      0.1.3                    py35_0
zipline                   1.3.0               np114py35_0    Quantopian
zlib                      1.2.11               hf3cbc9b_2
zope                      1.0                      py35_1
zope.interface            4.5.0            py35h1de35cc_0

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

What did you expect to happen?
What happened instead?

After having zipline installed, wanted to run "My first Algorithm" in zipline beginner tutorial.
After entering '$ zipline run -f /anaconda3/lib/python3.5/site-packages/zipline/examples/buyapple.py --start 2016-1-1 --end 2018-1-1 -o buyapple_out.pickle', it stops here:
'.....
File "/anaconda3/lib/python3.5/site-packages/zipline/utils/sqlite_utils.py", line 35, in verify_sqlite_path_exists
raise ValueError("SQLite file {!r} doesn't exist.".format(path))
ValueError: SQLite file '/Users/Tobias/.zipline/data/quandl/2018-10-20T16;43;04.775904/assets-6.sqlite' doesn't exist.'
Here is how you can reproduce this issue on your machine:
Reproduction Steps





...
What steps have you taken to resolve this already?
I checked line 35 in my file (File "/anaconda3/lib/python3.5/site-packages/zipline/utils/sqlite_utils.py").
It says:
def verify_sqlite_path_exists(path):
if path != ':memory:' and not os.path.exists(path):
raise ValueError("SQLite file {!r} doesn't exist.".format(path))
However, I don't know what to do with this information.
And when I look up the path "/Users/Tobias/.zipline/data/quandl/2018-10-20T16;43;04.775904/" I can only find an empty folder.
Anything else?
I'd really appreciate any help. Getting to run the algorithm is crucial for me because I need this for my Master Thesis but I am running out of time. Thank you.
Sincerely,
Tobias

Closing comment (2018-10-21T09:12:48Z): maybe this is related to [#2222]
I am not sure.
Here is the information about my notebook:
Model Name:	MacBook Pro
Model Identifier:	MacBookPro12,1
Processor Name:	Intel Core i5
Processor Speed:	2,7 GHz
Number of Processors:	1
Total Number of Cores:	2
L2 Cache (per Core):	256 KB
L3 Cache:	3 MB
Memory:	8 GB