Open wentwild opened 10 years ago
I tried again with the same setup except I do not do the --no-friend-zone. I skipped pasting the steps but it was clone, add credentials, and no thumbs.
When I start a new installation this way I get a different error:
$ python Gonewild.py --config
[2014-06-21T02:43:55Z] DB: __init__: using database file: ../database.db
[2014-06-21T02:43:55Z] Gonewild: Dumping configuration values...
[2014-06-21T02:43:55Z] Gonewild: add_top_users = "true"
[2014-06-21T02:43:55Z] Gonewild: excluded_subreddits = ""
[2014-06-21T02:43:55Z] Gonewild: friend_zone = "some"
[2014-06-21T02:43:55Z] Gonewild: last_user = ""
[2014-06-21T02:43:55Z] Gonewild: save_thumbnails = "false"
me@host:~/GW/py$ python Gonewild.py
[2014-06-21T02:44:17Z] DB: __init__: using database file: ../database.db
[2014-06-21T02:44:18Z] Reddit: logged in
[2014-06-21T02:44:18Z] Gonewild: add_top_users: loading top posts for the week from gonewild
[2014-06-21T02:44:18Z] Reddit: loading http://www.reddit.com/r/gonewild/top.json?t=week
[2014-06-21T02:44:19Z] Gonewild: add_top_users: Found new user, adding /u/Kelesyonique
[2014-06-21T02:44:19Z] Gonewild: add_top_users: Found new user, adding /u/natural_red
SNIP
[2014-06-21T02:44:24Z] Gonewild: add_top_users: Found new user, adding /u/Controlz_magic
Traceback (most recent call last):
File "Gonewild.py", line 706, in <module>
gw.infinite_loop()
File "Gonewild.py", line 325, in infinite_loop
user = users[last_index]
IndexError: list index out of range
Thanks for the report. I think I fixed the bugs with https://github.com/4pr0n/gonewilder/commit/a6b9b57215a8c845e7d8fa3d0c4450dba4d91232
I had this error before but I never got around to testing on a clean installation. Running on debian/unstable basic setup I get user is not defined on my first run. In the existing installation it seems to come up whenever a new user makes it to the front page.
Full installation transcript:
Restarting the process and it begins where it left off and downloads everything for the user that gave the initial error. After this first user is finished and the script goes to parse top entries for the week it bombs out again. :
At this point I have to restart the script over and over until it has added all the users found in top-week. The script will plug along just fine until a new user is encountered on the top page.