Anvil-standalone-runtime What am I missing?

Followed the instructions from the getting started Git doc below on three different linux versions (Rasbpian, Mint, Ubuntu Server) with the same error when running “pip install anvil-standalone-runtime”:

ERROR: Could not find a version that satisfies the requirement anvil-standalone-runtime (from versions: none)

ERROR: No matching distribution found for anvil-standalone-runtime

$ sudo su
# apt update
# apt install openjdk-8-jdk python3.7 virtualenv
# echo ‘net.ipv4.ip_unprivileged_port_start=0’ > /etc/sysctl.d/50-unprivileged-ports.conf
# sysctl --system
# exit
$ virtualenv -p python3 venv
$ . venv/bin/activate
$ pip install anvil-standalone-runtime
$ git clone git@anvil.works:2222/SOME_APP.git MyApp
$ anvil-app-server --app MyApp --origin https://my-hostname.example.com

I assume I’m missing something obvious!

Because it is not pip install anvil-standalone-runtime

It is pip install anvil-app-server

I got the same issue before. Only find out when read the guide from the very begining

===
If using https, you also need to add --letsencrypt-staging to prevent Let’s Encrypt’s stringent rate limits (cannot make more than 7 https in a weeks I think)

4 Likes

Thanks, for that. I thought I was being dense.

I did read the “Getting started” guide (albeit quickly) but assumed the “Cookbook for serving an Anvil app from a public Linux server” at the end was a summary of the commands required! I guess someone should fix that!

I’ll try it again later then mark your reply as the solution.

Thanks again.

1 Like

Oops! Good catch, @Tony.Nguyen. We’ll get that doc fixed in the next App Server release :slight_smile:

I really look forward to the next release, great job