about the error for 'conda install -c quantopian/label/ci -c quantopian zipline

39 views
Skip to first unread message

Tik Ho Hui

unread,
Jan 30, 2018, 4:08:12 AM1/30/18
to Zipline Python Opensource Backtester
I have used the above commands 'conda install -c quantopian/label/ci -c quantopian zipline' for installation of new version of zipline, However, it seems unstable that the following errors still happens. May I ask how could I solve for it ?

[2018-01-30 09:03:53.800340] INFO: Loader: Cache at C:\Users\hthhui/.zipline\data\SPY_benchmark.csv does not have data from 1990-01-02 00:00:00+00:00 to 2018-01-26 00:00:00+00:00.

[2018-01-30 09:03:53.800340] INFO: Loader: Downloading benchmark data for 'SPY' from 1989-12-29 00:00:00+00:00 to 2018-01-26 00:00:00+00:00
Traceback (most recent call last):
  File "C:\Users\hthhui\AppData\Local\Continuum\Anaconda3\envs\py362\Scripts\zipline-script.py", line 11, in <module>
    load_entry_point('zipline==1.1.1+133.gaa32252f', 'console_scripts', 'zipline')()
  File "C:\Users\hthhui\AppData\Local\Continuum\Anaconda3\envs\py362\lib\site-packages\click\core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "C:\Users\hthhui\AppData\Local\Continuum\Anaconda3\envs\py362\lib\site-packages\click\core.py", line 697, in main
    rv = self.invoke(ctx)
  File "C:\Users\hthhui\AppData\Local\Continuum\Anaconda3\envs\py362\lib\site-packages\click\core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Users\hthhui\AppData\Local\Continuum\Anaconda3\envs\py362\lib\site-packages\click\core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Users\hthhui\AppData\Local\Continuum\Anaconda3\envs\py362\lib\site-packages\click\core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "C:\Users\hthhui\AppData\Local\Continuum\Anaconda3\envs\py362\lib\site-packages\zipline\__main__.py", line 97, in _
    return f(*args, **kwargs)
  File "C:\Users\hthhui\AppData\Local\Continuum\Anaconda3\envs\py362\lib\site-packages\click\decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "C:\Users\hthhui\AppData\Local\Continuum\Anaconda3\envs\py362\lib\site-packages\zipline\__main__.py", line 240, in run
    environ=os.environ,
  File "C:\Users\hthhui\AppData\Local\Continuum\Anaconda3\envs\py362\lib\site-packages\zipline\utils\run_algo.py", line 132, in _run
    env = TradingEnvironment(asset_db_path=connstr, environ=environ)
  File "C:\Users\hthhui\AppData\Local\Continuum\Anaconda3\envs\py362\lib\site-packages\zipline\finance\trading.py", line 99, in __init__
    self.bm_symbol,
  File "C:\Users\hthhui\AppData\Local\Continuum\Anaconda3\envs\py362\lib\site-packages\zipline\data\loader.py", line 167, in load_market_data
    environ,
  File "C:\Users\hthhui\AppData\Local\Continuum\Anaconda3\envs\py362\lib\site-packages\zipline\data\loader.py", line 231, in ensure_benchmark_data
    last_date,
  File "C:\Users\hthhui\AppData\Local\Continuum\Anaconda3\envs\py362\lib\site-packages\zipline\data\benchmarks.py", line 50, in get_benchmark_returns
    last_date
  File "C:\Users\hthhui\AppData\Local\Continuum\Anaconda3\envs\py362\lib\site-packages\pandas_datareader\data.py", line 105, in DataReader
    session=session).read()
  File "C:\Users\hthhui\AppData\Local\Continuum\Anaconda3\envs\py362\lib\site-packages\pandas_datareader\base.py", line 207, in read
    df = self._read_one_data(self.url, params=self._get_params(self.symbols))
  File "C:\Users\hthhui\AppData\Local\Continuum\Anaconda3\envs\py362\lib\site-packages\pandas_datareader\base.py", line 95, in _read_one_data
    return self._read_lines(out)
  File "C:\Users\hthhui\AppData\Local\Continuum\Anaconda3\envs\py362\lib\site-packages\pandas_datareader\base.py", line 146, in _read_lines
    rs = read_csv(out, index_col=0, parse_dates=True, na_values='-')[::-1]
  File "C:\Users\hthhui\AppData\Local\Continuum\Anaconda3\envs\py362\lib\site-packages\pandas\io\parsers.py", line 577, in parser_f
    return _read(filepath_or_buffer, kwds)
  File "C:\Users\hthhui\AppData\Local\Continuum\Anaconda3\envs\py362\lib\site-packages\pandas\io\parsers.py", line 328, in _read
    parser = TextFileReader(filepath_or_buffer, **kwds)
  File "C:\Users\hthhui\AppData\Local\Continuum\Anaconda3\envs\py362\lib\site-packages\pandas\io\parsers.py", line 660, in __init__
    self._make_engine(self.engine)
  File "C:\Users\hthhui\AppData\Local\Continuum\Anaconda3\envs\py362\lib\site-packages\pandas\io\parsers.py", line 817, in _make_engine
    self._engine = CParserWrapper(self.f, **self.options)
  File "C:\Users\hthhui\AppData\Local\Continuum\Anaconda3\envs\py362\lib\site-packages\pandas\io\parsers.py", line 1237, in __init__
    self._reader = _parser.TextReader(src, **kwds)
  File "pandas\parser.pyx", line 523, in pandas.parser.TextReader.__cinit__ (pandas\parser.c:5214)
pandas.io.common.EmptyDataError: No columns to parse from file


==> info about zipline on anaconda (conda list zipline)


# packages in environment at C:\Users\hthhui\AppData\Local\Continuum\Anaconda3\envs\py362:
#
zipline                   1.1.1           np111py34_133_gaa32252f    quantopian/label/ci






Tik Ho Hui

unread,
Jan 31, 2018, 9:52:06 PM1/31/18
to Zipline Python Opensource Backtester
Any help on this ? I find that the new zipline version has been very unstable, sometimes OK , sometimes not, with much different errors come out !

Freddie Vargus

unread,
Jan 31, 2018, 9:59:51 PM1/31/18
to Tik Ho Hui, Zipline Python Opensource Backtester

Hi Tik,

I noticed you're using a conda env called py362. We currently only build packages for Py 3.5 and Py 2.7. Can you try a Py3.5 conda env?


--
You received this message because you are subscribed to the Google Groups "Zipline Python Opensource Backtester" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zipline+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tik Ho Hui

unread,
Jan 31, 2018, 10:53:16 PM1/31/18
to Zipline Python Opensource Backtester
Actually, I am using Python version 3.4, since we need to modify the program for suiting the FX data, so would like to keep on using it ! and I find out that using in Python 3.4 sometimes work, but sometimes not, especially in spooling SPY data. May I ask is there any changes within the source data or source code ?


On Tuesday, January 30, 2018 at 5:08:12 PM UTC+8, Tik Ho Hui wrote:

Tik Ho Hui

unread,
Jan 31, 2018, 11:38:09 PM1/31/18
to Zipline Python Opensource Backtester
2 questions 

a.) Can version 3.4 be applied for the case ?

b.) Is there any changes on the source data or server ?

Please help if you can reply ! Thanks !


On Tuesday, January 30, 2018 at 5:08:12 PM UTC+8, Tik Ho Hui wrote:
Reply all
Reply to author
Forward
0 new messages