Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to execute script 'gyb' due to unhandled exception! #448

Open
quack79 opened this issue Jan 27, 2024 · 4 comments
Open

Failed to execute script 'gyb' due to unhandled exception! #448

quack79 opened this issue Jan 27, 2024 · 4 comments

Comments

@quack79
Copy link

quack79 commented Jan 27, 2024

Please confirm the following:

Full steps to reproduce the issue:
Backed up mail from gmail.com, trying to restore into a GSuite Legacy account - no issues
Using the command:

gyb --email [email protected] --action restore --local-folder [email protected] --label-restored "Restore"

Expected outcome (what are you trying to do?):
Mail is restored

Actual outcome (what errors or bad behavior do you see instead?):
Using backup folder [email protected]
Traceback (most recent call last):
File "gyb.py", line 2817, in
File "gyb.py", line 2254, in main
File "gyb.py", line 1990, in convert_timestamp
File "_strptime.py", line 555, in _strptime_datetime
File "_strptime.py", line 336, in _strptime
ValueError: unconverted data remains: .156000
[40044] Failed to execute script 'gyb' due to unhandled exception!

@quack79
Copy link
Author

quack79 commented Jan 28, 2024

After some testing with the python source, and adding in a print(val) to see what it was actually falling over on, I have found a few dates written into the database that it cannot process.

For example:
2013-03-24 17:34:40.756000
2013-03-24 17:34:40.481000

I am now using DB Browser for SQLite to edit the date fields and will try running the code again.

Edit: It is now restoring my email. So manually fixing the database worked.

@davidvankemenade
Copy link

I came across exactly the same issue. Thanks @quack79 for poining me to the manual edit route so that I can continue for now.

@daniellefisla
Copy link

See #459

@grego-r-b
Copy link

Manual edit worked great. Thanks @quack79

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants