Questions tagged [anvil]

Anvil is a Python platform for developing web applications:

pip install anvil-app-server
create-anvil-app hello-world my_project_name
anvil-app-server --app my_project_name
  • first thing it does is download a 240MB java jar file to run as the server
17 questions
2
votes
1 answer

Google Data Studio Community Connector: Accessing URL Parameters in App Script

I am following the Row level filtering with Embedded dashboards tutorial to build a secure, multi-tenant dashboard using Data Studio as the reporting UI/backend (and Anvil as the front-end in Python), with the aim of filtering data from a BigQuery…
1
vote
1 answer

Cannot authenticate my Google Cloud Run service with a service account

I deployed a service on Cloud Run where authentication is needed: gcloud run deploy my-service --project my-project --image eu.gcr.io/my-project/rest-of-path --platform managed --region europe-west4 --no-allow-unauthenticated This seems to work…
1
vote
0 answers

Anvil TypeError: string indices must be integers

I call a function to the server from anvil results = anvil.server.call('ask_qna', topic, question, when='1D', num=10, top_k=3) the server then returns the results but I get a the following error: TypeError: string indices must be integers at…
kw-limited
  • 11
  • 3
1
vote
1 answer

Is it possible to Host an anvil app in Heroku?

I'm trying to deploy my anvil (web)app on Heroku...I don't know if it is possible or not. so if it is possible then how do I configure my Procfile? How it should look like? and what more do I need? after posting this question I've tried…
Abdulla Shafi
  • 53
  • 1
  • 8
1
vote
1 answer

Anvil Error: TypeError: 'NoneType' object is not subscriptable

I'm attempting to return a value from a row in my data table, and am getting the following error: TypeError: 'NoneType' object is not subscriptable (key 'GCWR') Here is the code snippet which is referenced in the error... """ This function gets the…
flyguy712
  • 11
  • 2
1
vote
1 answer

Upload csv file in Anvil with uplink

I have an error like this: TypeError: __init__() takes from 1 to 2 positional arguments but 3 were given at , line 8 called from Form1, line 18 this my code in anvil: class Form1(Form1Template): def __init__(self,…
0
votes
0 answers

Foundry - Anvil mainnet fork EvmError: NotActivated

I am using anvil (Foundry) to create a local fork and run my own transaction in it. Anvil version: anvil 0.1.0 (0e72b71 2023-07-19T00:37:38.599511000Z) The thing is when I run my transaction i am getting : EvmError: NotActivated │ ├─ [39]…
0
votes
0 answers

Anvil Error: files table not found, but the table is already created

I have this server side code in Anvil: import anvil.files from anvil.files import data_files # Server-side code import anvil.server import pandas as pd import io from anvil import tables @anvil.server.callable def…
yamcha
  • 25
  • 5
0
votes
0 answers

ValueError: Shape of passed values is (1, 1), indices imply (1, 9)

I am trying to download a csv report on my customers when a button is pressed in anvil. However, this error keeps popping up. It works if the table has no data, but when there is data then it simply will not download. Here is my error: Warning:…
Zyirene
  • 1
  • 1
0
votes
0 answers

Why am I unable to connect to my Anvil-launched ETH node using 'cast' command?

I launched an ETH node using Anvil, but I cannot connect to it with cast. However, I can successfully call the RPC API using Postman. E:\web3project\hello_foundry>anvil ?[32m _ _ (_) | | …
0
votes
0 answers

Received error message making a webpage with Anvil: "AttributeError: 'ColumnPanel' object has no attribute 'add_compontent' "

I keep getting this error when working with Anvil. I'm trying to make it so that the home page content is inside the column panel (which is functioning like a nav bar). AttributeError: 'ColumnPanel' object has no attribute 'add_compontent' at Base,…
0
votes
0 answers

Error occurs when I was developing web app using anvil

Here is my basic image classifier program in python enter code here from skimage import color from skimage import io import cv2 import matplotlib.pyplot as plt #to output images import numpy as np import tensorflow as tf #main library for AI…
Veg Roast
  • 1
  • 1
0
votes
0 answers

TypeError: __init__() missing 1 required argument: 'id_name'

I am making my first python project which is a grocery store e-commerce page, and Im trying to add a cart section that allows the customer to buy the product, however, whenever I run my code and go to the cart section, I get the error "TypeError:…
0
votes
0 answers

Repeating panel not showing search

I was trying to make a button to search a database of cars using the plate number in a textbox within dates picked by the user where cars were registered, and show them on a repeating panel, I used a suggested method to make it work, but it didn't,…
0
votes
1 answer

plate number for a form in an app from a line of text in python

from a string of text, for example: ['ANT', 'ECUADOR', 'PCP-5453', '0184947', 'ANTi4LTe'] I need to extract only texts that are similar to PCP-5453. this should be: 3 letters one symbol '-' and from 3 to 4 numbers Im doing it on python, for an app…
1
2