cookbook icon indicating copy to clipboard operation
cookbook copied to clipboard

[Run in Google Colab] An exception occurred User location is not supported for the API use

Open maxuechaogao opened this issue 1 year ago • 2 comments
trafficstars

Hello, according to the example https://github.com/google-gemini/cookbook/blob/main/quickstarts/Video.ipynb,Run in Google Colab Execution, the following error occurred, image image

maxuechaogao avatar Apr 17 '24 03:04 maxuechaogao

Are you running from an available region?

markmcd avatar Apr 17 '24 03:04 markmcd

Are you running from an available region?

After logging into my Google account, it was automatically assigned to me and I did not actively select any nodes

maxuechaogao avatar Apr 18 '24 04:04 maxuechaogao

Unfortunately there's no way to force where Colab runtimes are created. Try deleting your runtime and creating a new one to have it pick a region again. You can use !curl ipinfo.io to see where your session is located.

williamito avatar Apr 19 '24 21:04 williamito