zheng-hao / ga-bitbot

Automatically exported from code.google.com/p/ga-bitbot
GNU General Public License v3.0
0 stars 0 forks source link

gal.py - Indexerror: #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. bcfeed_synch.py -d to bootstrap data.
2. invoke gal.py, processes continue and bot starts up.
3. Terminate bot
4. invoke gal.py

What is the expected output? What do you see instead?
Expected:

Checking potential for incremental update...
Downloading mtgox historic data...
Download complete.
Processing input...
Writing output file...
Updating the datafeed directory directly...no need to manualy move the output 
file
Writing incremental update...
Done.

Seen:
Checking potential for incremental update...
Downloading mtgox historic data...
Download complete.
Processing input...
Traceback (most recent call last):
  File "bcfeed_synch.py", line 58, in <module>
    last_t = d[0].split(',')[0]
IndexError: list index out of range
Starting the live datafeed capture script...

What version of the product are you using? On what operating system?
Version: git clone* latest revisions.
OS:Ubuntu 10.4_x86_64 w/python2.7

Please provide any additional information below.

Deleting datafeed files, copying datafeed_reboot file into datafeed folder, and 
running bcfeed_synch.py -d allows startup with gal.py and expected result.

Original issue reported on code.google.com by dgravi...@gmail.com on 6 Jan 2012 at 10:17

GoogleCodeExporter commented 8 years ago
exception handling added to catch the case where no input data is available 
(downloaded or empty input file).
In the repo, will be included in the next software release.

Original comment by brian.mo...@gmail.com on 8 Jan 2012 at 3:14