GAM-team / got-your-back

Got Your Back (GYB) is a command line tool for backing up your Gmail messages to your computer using Gmail's API over HTTPS.
https://github.com/GAM-team/got-your-back/wiki
Apache License 2.0
2.61k stars 207 forks source link

AttributeError: 'OperationalError' object has no attribute 'message' #253

Closed djwesterfield closed 4 years ago

djwesterfield commented 4 years ago

The issue tracker is for reporting product deficiencies. How do I questions should be posted to the discussion forum at https://groups.google.com/group/got-your-back. When in doubt, start at the discussion forum and return here only when instructed to do so.

Please confirm the following:

Full steps to reproduce the issue:

  1. I selected the prompt for 'Gmail Restore Only'
  2. Verified all of the links
  3. Use snippit: gyb --email theemail@gmail.com --action restore --local-folder "D:\Download\Mail"
  4. Received this error: Using backup folder D:\Downloads\Mail Traceback (most recent call last): File "gyb.py", line 1125, in get_db_settings sqlite3.OperationalError: no such table: settings

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "gyb.py", line 2171, in File "gyb.py", line 1550, in main File "gyb.py", line 1129, in get_db_settings AttributeError: 'OperationalError' object has no attribute 'message' [26836] Failed to execute script gyb

Expected outcome (what are you trying to do?): I was expecting it would upload all of my .mbox emails to my new gmail address. Actual outcome (what errors or bad behavior do you see instead?): Nothing was transferred.

jay0lee commented 4 years ago

--action restore implies that your files in D:\Downloads\Mail are stored in GYB's own format. Since they are mbox files you need to run:

gyb --email theemail@gmail.com --action restore-mbox --local-folder "D:\Download\Mail"