Cannot install packages - Server runtime failed to start

What I’m trying to do:
Installing a python package, e.g. beautifulsoup4.

What I’ve tried and what’s not working:
Adding the package in the “Python versions” tab.

This gives an error when opening the app: “anvil.server.RuntimeUnavailableError: Internal server error: Server runtime failed to start.”

I’m also not getting the build output mentioned in the docs.

Sometimes the build can run slowly. I’m not a fan of pot watching so I normally hit a run in IDE to start a build then go an make a cup of tea. On the rare occasions they error out, it’s just a case of being patient. It always comes right in the end.

Thank you! How do you know it’s done though? I don’t see anything when clicking on “Build now”.

Ah, I’ve been finding that’s a bit glitchy at the moment. Rather than click build now, close that tab then hit run. You’ll see the console saying it’s starting the build, then reopen the Python bit and you’ll see the build dialogue running. Not sure why it’s like this right now, but that seems to do the trick. And at that point, flick the kettle on and come back in a few!

1 Like

One more thing worth mentioning: you can trigger the build on a dummy app on the same account. Then, after the build success on any app on your account, you can copy the list of dependencies to any other app, and the cached environment will be used without need to rebuild.

4 Likes

Hi, tried to install pickle and got this message:
No solution found when resolving dependencies:
╰─▶ Because pickle was not found in the package registry and you require
pickle, we can conclude that the requirements are unsatisfiable.
Am I using the wrong python base package? I am on the free plan, using Python 3.10 (Beta), Base Package Standard ( same error with Minimal )
When I try to use Basic Python 3 and then click on Install Custom Packages, the selection for Python automagically jumps back to Python 3.10 (Beta).
What am I doing wrong? Or do I need to upgrade to at least hobby, which then lets me use Full Python 3?

SOLVED: Apparently, pickle is part of the Base Package Standard, hence no need to custom install it again.

1 Like