BitBotFactory / MikaLendingBot

Automated lending on Cryptocurrency exchanges Poloniex and Bitfinex
http://poloniexlendingbot.readthedocs.io/en/latest/index.html
MIT License
1.11k stars 344 forks source link

Just updated - getting this error #216

Closed ghost closed 7 years ago

ghost commented 7 years ago
Welcome to Poloniex Lending Bot
Started WebServer, lendingbot status available at http://localhost:8000/lendingbot.html
2017-02-06 11:53:27 Error: list index out of range
Traceback (most recent call last):
  File "C:\Utils\LendingBot\lendingbot.py", line 71, in <module>
    Lending.lend_all()
  File "C:\Utils\LendingBot\modules\Lending.py", line 160, in lend_all
    usable_currencies += lend_cur(cur, total_lended, lending_balances)
  File "C:\Utils\LendingBot\modules\Lending.py", line 268, in lend_cur
    cur_min_daily_rate = get_min_daily_rate(active_cur)
  File "C:\Utils\LendingBot\modules\Lending.py", line 179, in get_min_daily_rate
    recommended_min = Analysis.get_rate_suggestion(cur)
  File "C:\Utils\LendingBot\modules\MarketAnalysis.py", line 122, in get_rate_suggestion
    result = rates[index]
IndexError: list index out of range

Unhandled error, please open a Github issue so we can fix it!
Evanito commented 7 years ago

This is due to it attempting to find a suggestion from a blank list. A fix will be pushed soon, for now just wait for it to populate the lists in market_data a bit then it should run fine. Can you tell me if that solves it for you?

Edit: or install numpy

ghost commented 7 years ago

No, waiting doesn’t help. I run lendingbot.py from Windows command line. This error is generated every 1 minute until I close the window.

From: Evan [mailto:notifications@github.com] Sent: Monday, February 6, 2017 7:11 PM To: Mikadily/poloniexlendingbot poloniexlendingbot@noreply.github.com Cc: realrover ilinykh@gmail.com; Author author@noreply.github.com Subject: Re: [Mikadily/poloniexlendingbot] Just updated - getting this error (#216)

This is due to it attempting to find a suggestion from a blank list. A fix will be pushed soon, for now just wait for it to populate the lists in market_data a bit then it should run fine. Can you tell me if that solves it for you?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Mikadily/poloniexlendingbot/issues/216#issuecomment-277856859 , or mute the thread https://github.com/notifications/unsubscribe-auth/AEKoSU0fDrALo_40JUJHJCbwPVYUfi7Tks5rZ7Z-gaJpZM4L4c6M . https://github.com/notifications/beacon/AEKoSbRsWg5KP37YDVx_TBSUKeruAHt_ks5rZ7Z-gaJpZM4L4c6M.gif

Evanito commented 7 years ago

What do the .csv files in your market_data folder look like? Are they empty/nonexistent?

ghost commented 7 years ago

No, look below.


From: Evan [mailto:notifications@github.com] Sent: Tuesday, February 7, 2017 2:38 AM To: Mikadily/poloniexlendingbot poloniexlendingbot@noreply.github.com Cc: realrover ilinykh@gmail.com; Author author@noreply.github.com Subject: Re: [Mikadily/poloniexlendingbot] Just updated - getting this error (#216)

What do the .csv files in your market_data folder look like? Are they empty/nonexistent?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Mikadily/poloniexlendingbot/issues/216#issuecomment-277923310 , or mute the thread https://github.com/notifications/unsubscribe-auth/AEKoSdQMvtaZNLKP5i_UXTuKuaWuqJ2Tks5raB9qgaJpZM4L4c6M . https://github.com/notifications/beacon/AEKoSXRtXozx3hlM30M4mrz0m4ot4gCkks5raB9qgaJpZM4L4c6M.gif

Evanito commented 7 years ago

I do not see anything below, is the problem resolved?

ghost commented 7 years ago

Sorry, I've inserted picture into the email, but it wasn't displayed here for some reason. Here it is again:

image

Evanito commented 7 years ago

Okay, please update to the most recent version which includes some fixes from today and see if your problem is fixed.

ghost commented 7 years ago

Here is what I get:

C:\Utils\LendingBot>lendingbot.py WARN: Module Numpy not found, using manual percentile method instead. It is recommended to install Numpy. Error: Importing the multiarray numpy extension module failed. Most likely you are trying to import a failed build of numpy. If you're working with a numpy git repo, try git clean -xdf (removes all files not under version control). Otherwise reinstall numpy.

Welcome to Poloniex Lending Bot Started WebServer, lendingbot status available at http://192.168.0.115:8000/lendingbot.html, http://127.0.0.1:8000/lendingbot.html WARN: Exception found when analysing markets, if this happens for more than a couple minutes please make a Github issue so we can fix it. Ot herwise, you can safely ignore it. Error: list index out of range WARN: Exception found when analysing markets, if this happens for more than a couple minutes please make a Github issue so we can fix it. Ot herwise, you can safely ignore it. Error: list index out of range endDate reached. Bot can no longer lend. Exiting...

Evanito commented 7 years ago

Thanks for putting up with the questions, found the bug and it has been squashed with extreme prejudice. Update and you won't find this error anymore.