MalloyDelacroix / DownloaderForReddit

The Downloader for Reddit is a GUI application with some advanced features to extract and download submitted content from reddit.
GNU General Public License v3.0
514 stars 48 forks source link

"A save file could not be created..." error when loading old config #49

Closed mavrc closed 5 years ago

mavrc commented 5 years ago

I have been receiving errors after updating from DFR 2.22 to 2.3x - I have tried 2.31 and 2.32. OS Win10. To find the tidiest way to duplicate this problem here's what I did:

After overwrite this error immediately appears, and it also appears if the app is closed and reopened:

image

If the config directory is purged completely and a new config is created, the app works fine.

See attached log: DownloaderForReddit.log

MalloyDelacroix commented 5 years ago

Usually this particular error occurs if you have saved content or saved posts for either users or subreddits. Can you check each user or subreddit in your list (hopefully it's not a large list) and see if they have any saved posts or submissions?

If you go to user or subreddit settings via context menu and right click on the previous downloads box, you can select to display either saved posts or submissions and clear them. Try clearing these lists and see if that resolves the issue. I recommend copying the save file to another location for backup first, in case this does not solve the issue, you will not lose your saved items.

bababap commented 5 years ago

I had the same issue simply by updating from 2.2.2 to 2.3.2, all user list data is gone. Is there any way to make it work again or do I need to extract the user names from the save_file.dat file?

{"levelname": "INFO", "name": "DownloaderForReddit.Persistence.ObjectStateHandler", "filename": "ObjectStateHandler.py", "module": "ObjectStateHandler", "funcName": "load_pickled_state", "lineno": 83, "message": "Object lists loaded from save file", "asctime": "01/11/2019 07:32:53 AM", "total_users": 54, "total_subreddits": 0, "updated_users": 0, "updated_subreddits": 0}

{"levelname": "INFO", "name": "DownloaderForReddit.GUI.DownloaderForRedditGUI", "filename": "DownloaderForRedditGUI.py", "module": "DownloaderForRedditGUI", "funcName": "load_state", "lineno": 1325, "message": "Save_file successfully loaded into gui", "asctime": "01/11/2019 07:32:53 AM"}

{"levelname": "INFO", "name": "DownloaderForReddit.Persistence.ObjectStateHandler", "filename": "ObjectStateHandler.py", "module": "ObjectStateHandler", "funcName": "save_pickled_state", "lineno": 126, "message": "Objects successfully saved", "asctime": "01/11/2019 07:33:17 AM", "total_users_saved": 108, "total_subreddits_saved": 0}

{"levelname": "INFO", "name": "DownloaderForReddit.DownloaderForReddit.Persistence.SettingsManager", "filename": "SettingsManager.py", "module": "SettingsManager", "funcName": "check_first_run", "lineno": 54, "message": "First run of new version", "asctime": "01/11/2019 07:34:01 AM", "new_version": "v2.3.2", "old_version": "v2.2.2"}

{"levelname": "ERROR", "name": "DownloaderForReddit.DownloaderForReddit.Persistence.ObjectStateHandler", "filename": "ObjectStateHandler.py", "module": "ObjectStateHandler", "funcName": "load_pickled_state", "lineno": 93, "message": "Failed to load from save file", "asctime": "01/11/2019 07:34:02 AM", "exc_info": "Traceback (most recent call last):\n File \"shelve.py\", line 111, in getitem\nKeyError: 'user_list_models'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"DownloaderForReddit\Persistence\ObjectStateHandler.py\", line 62, in load_pickled_state\n File \"shelve.py\", line 114, in getitem\nModuleNotFoundError: No module named 'Core'", "save_file_location": "C:\Users\___\AppData\Roaming\SomeGuySoftware\DownloaderForReddit\save_file"}

{"levelname": "INFO", "name": "DownloaderForReddit.DownloaderForReddit.Persistence.ObjectStateHandler", "filename": "ObjectStateHandler.py", "module": "ObjectStateHandler", "funcName": "save_pickled_state", "lineno": 126, "message": "Objects successfully saved", "asctime": "01/11/2019 07:34:12 AM", "total_users_saved": 0, "total_subreddits_saved": 0}

MalloyDelacroix commented 5 years ago

@bababap This appears to be the same issue. Do you have any saved posts or content in any of the users or subreddits in the save file you are trying to load? Also, are you running on Windows or Linux?