anvil.server.RuntimeUnavailableError: You must migrate to Environments

What I’m trying to do:
I wanted to use a package that wasn’t available in python 3 setting so I followed this:
https://anvil.works/learn/tutorials/using-custom-packages#step-2

and switched my app to the python 3.10 (In the new editor)

However now, when I go to my app url, it says

anvil.server.RuntimeUnavailableError: You must migrate to Environments before using Custom Packages Beta

There must have been a step about Environments before me switching to Python 3.10 but what was it? I am on the individual paid plan.

Thanks for your time.

Sorry about that - looks like we need to add a step in the chain here.
You could try hitting the publish button - this usually triggers a migration to environments.

ok, publishing after changing to 3.10 did not work. Still same error. Let me know what I could try.

Or if I should try an alternative.

Sorry to hear that
When you opened the publish dialogue did you try adding a new environment?
When I do that in an old app inside the new IDE I get the following alert:

After clicking “Yes”, the Python 3.10 beta works for me as expected.
(Before confirming Yes I can reproduce the issue you’re seeing)

1 Like

Hi

No, I do not receive that pop-up. Your screen shot is the first time I
have seen that directive. My browser is not blocking pop-ups for
anvil.works. I tried the same on a different browser and still did not
see the pop-up.

thanks for your time.

Ben

Same issue here.
“You must migrate to Environments before using Custom Packages Beta”
Running Python 3.10 with an external package added to the build
Not seeing the pop up when publishing.

HI, My problem was that I was publishing from the branch. When I
published from the big button at the top of the screen, the pop-up
appeared…