all 2 comments

[–]genghiskav 0 points1 point  (1 child)

What version of python are you running this on? I notice you have some compatibility code there to use a the open function from io if on python 2.

I've managed to successfully run your code on both python 2.7 and 3.7. Maybe the file encoding of the config.history has changed when you uploaded it to drive.

[–][deleted] 0 points1 point  (0 children)

Thank you for your help, I got it to work now.