Mesye Konpe
Mesye Konpe

Reputation: 91

How to migrate Google App Engine from Python2.7 and DataStore to Python3

My website was built using Google AppEngine, DataStore and Python2.7. It’s no longer working This site can’t be reached. I need to migrate to Python3 but I cannot identify which migration guide is best suited for me. Can anyone point me to the correct set? I would like to get it running as quickly as possible (I only have one hour a day to try to correct it -- I have an unrelated full-time job).

Upvotes: 0

Views: 614

Answers (1)

Mushroomator
Mushroomator

Reputation: 9248

Migration guide

Google provides a step-by-step migration guide especially for AppEngine which you should follow. Additionally, you will find lots of useful links there where you can read about the differences between Python 2 and Python 3 and the various migration tools available. Depending on your application those tools might even be able to do the migration (more or less) automatically for you.

Please note: This is the migration guide for the AppEngine standard environment. If you don't know what you're using, you're most likely using the standard environment. While some steps will differ when using the flexible environment, migration of the code base as described in the guide will always be required.

Video: Python 2 to 3: Migration Patterns & Motivators (Cloud Next '19)

There also is a recording of a talk by the Google Cloud Team on migration from Python 2 to 3 on YouTube.

Still having issues?

Migrating from Python 2 to 3 is a well-known problem and there is tons of information available on the internet. Most likely the problems you face have already been solved by someone, so a Google search for a specific problem will likely give you a working solution.

Upvotes: 1

Related Questions