No module named functools when using anvil app-server

For some time, my app was running smoothly on Anvil-App-Server v1.8.0.
However, a few hours ago, I started getting the following error in my application:

ModuleNotFoundError: No module named 'functools'
Traceback:
   app/anvil_extras/non_blocking.py:8
   app/SSP/data.py:13
   app/SSP/startup.py:3

image

  • The ‘anvil_extras’ module is used as a dependency and was installed using the cloning method. It is not linked to the current version, and I manually update the dependencies.

  • I have tried switching between multiple Anvil-App-Server versions (1.7.6, 1.8.0, and 1.9.0)

  • Additionally, I upgraded my Python version from 3.8 to 3.10.13

That error seems persistent.

My app’s installation is standalone, using the open-source Anvil runtime. So it’s not linked to Anvil.works or Anvil cloud servers. I’m curious about what might be causing this error. Since no changes were made to the OS or Python environment, I’m wondering what could trigger it.

Any advice on how to fix it?

Okay, I tried avoiding the non_blocking module.

Now getting this

 [ERROR anvil.app-server.run] Error report from client code:
 ModuleNotFoundError: No module named 're'
 Traceback:
   app/SSP/Contacts/AddEditContact/__init__.py:5
   app/SSP/data.py:16
   app/SSP/startup.py:3

Hi @rsmahmud, we’re looking into this and will be releasing a new version of the app-server that fixes this soon, thanks for reporting.

Released! Can you please try the new App Server version 1.10.1?

The errors are fixed in version 1.10.1

after deleting the browser cache, the error was gone. Thanks for the quick release.

would you share some context on what is causing it?

2 Likes

There was a bad build on version 1.9.0.