Simple builds are failing - memory issue?

I was trying to install a heavy package called docling (for document extraction) in a new anvil app, using Python 3.1 (Beta). I tried to import the package on the standard, data science and machine learning environments, but kept on running into “Error - Build failed” messages. I tried installing some of the dependencies first, but that also failed.

Now I seem to be unable to create any new environments. Even a simple build with the openai and anthropic libraries fails on the Standard environment, which in the past has worked fine.

I wonder whether I might have ran out of space because of the failed builds and a silly attempt to import pytorch at some point, which is one of the dependencies of docling?

Would appreciate some help to figure out what’s going on.

1 Like

I’m also getting the same error message, having not used my app for some time. There is nothing indicating what is causing the error for me - although it gives this error:

anvil.server.RuntimeUnavailableError: Could not launch server runtime - image build failed.
at Accounts_Form, line 76
called from Accounts_Form, line 53
called from Accounts_Form, line 49

From this code:

data = anvil.server.call('get_all_accounts_with_project_count')

Which is calling this server function:

@anvil.server.callable
def get_all_accounts_with_project_count():
    accounts = app_tables.accounts.search()
    account_data = []

I’m also on 3.1 beta with the Machine Learning base package, including a few other packages that all say they’re on the latest version.

Hi @dstoelinga,

Thanks for raising this. Sorry for the inconvenience. This should now be fixed. Please let us know if you see any other issues.

Thanks,
Ryan

Thank you so much Ryan for the super quick turnaround.
Dim

1 Like

My app still won’t build - I’m getting the same error “anvil.server.RuntimeUnavailableError: Internal server error: Server runtime failed to start.”

What’s causing this and how can I resolve it? My app is completely useless whilst this issue persists