Running Anvil locally - ._anvil_designer could not be resolved

For Windows, install Python, Coretto (Java runtime), and Git first.

You mentioned: ‘this implies needing to install the JVM and Postgresql but I don’t get to that stage yet’. You need the Java runtime before continuing the rest of the process. I’ve used Coretto versions 11 and later successfully with anvil-app-server on Windows.

Next, create and activate your python environment:

python -m venv anvildir
cd anvildir
Scripts\activate

Then install the anvil_app_server (optionally with a version identifier), and any python libraries imported in your app:

pip install anvil_app_server==1.7.3
pip install bcrypt pandas

Then clone your git repository:

git clone ssh://name%40site.com@anvil.works:2222/ASDFAS12ASDFASDF.git App_Name

Then run anvil-app-server:

anvil-app-server --app <insert_your_cloned_APP_NAME_directory_here> --origin http://192.169.1.100:3031 (insert the IP address of the machine runnig your app, and optionally the port on which you want to run your app (3030 is default))

The first time you run the your app in the Python environment folder you created above, anvil-app-server will download the required Java server and Postgres database software.

2 Likes