Questions tagged [gramex]

Gramex is a declarative data analytics and visualization platform

For usage instructions, see the Gramex Guide.

43 questions
1
vote
2 answers

Is there a way to write single prepare function for all the KPIs in Gramex

I have a common function which needs to be evaluated before executing all the KPIs. So I wrote a prepare function but prepare function is calling for all the KPIs separately. Instead I want a prepare function to be executed once for the each…
Manoj
  • 72
  • 11
1
vote
1 answer

How to read specific data(i.e., rows and columns) from a parquet file in gramex formhandler?

I want to read a parquet file with only certain columns and certain rows to formhandler in Gramex.
1
vote
1 answer

Operational Error: An Existing connection was forcibly closed by the remote host. (10054)

Am getting this Operational Error, periodically probably when the application is not active or idle for long hours. On refreshing the page it will vanish. Am using mssql pyodbc connection string ( "mssql+pyodbc:///?odbc_connect= ...") in…
1
vote
1 answer

Unable to access UI components in Red Hat Linux Server

I am not able to access the UI components in gramex. I tried all the things I knew. I am using the Red Hat Linux server. I am getting the following warnings in the logs: Disallow…
1
vote
1 answer

Gramex redis cache set memory error in azure instance

I am unable to set memory through config for redis azure instance in gramex It gives this error: redis.exceptions.ResponseError: unknown command CONFIG, with args beginning with: SET, maxmemory, 1000000000 image reference
1
vote
1 answer

Gramex raises an "inotify watch limited reached" error in a Docker container

We are seeing the following error when we deploy a Gramex portal in production as time passes by. Inotify._raise_error() File "/opt/conda/lib/python3.7/site-packages/watchdog/observers/inotify_c.py", line 421, in _raise_error raise…
S Anand
  • 11,364
  • 2
  • 28
  • 23
1
vote
1 answer

connect pandas in docker-gramex container, to database running on host machine using localhost

after installing docker-gramex connecting app to database server running on host machine fails for connection URL: 'postgresql://db_user:db_passwd@localhost:5432/db_name' throws psycopg2.OperationalError could not connect to server: Connection…
Joshua Baboo
  • 525
  • 1
  • 4
  • 17
1
vote
1 answer

Running Gramex on new Ubuntu 16.04 Installation

I'm having trouble running gramex in Ubuntu 16.04. Running it inside docker works fine, which leads me to suspect that I'm missing some dependency, but can't seem to figure out which one. This is the error that I get, any ideas? INFO 22-Mar…
0
votes
1 answer

Can `gramex` `storelocations` create parent folder structure?

Suppose I want to have custom storelocations location. I can surely pass that path in the yaml. However, If the path does not exist, gramex throws me an error Code I want to use is in gramex.yaml as: storelocations: projects: &PROJECTS url:…
0
votes
1 answer

How to link static files in Gramex sub folder URL properly

Created a tornado template template.html like so: {% set base = '.' %}
0
votes
1 answer

TypeError: Could not guess image MIME subtype

I'm trying to capture the images of charts and attach them to the email template using the img tag. I'm able to send the email local but getting this TypeError: Could not guess image MIME subtype in the server. I'm using Gramex capture API to…
Lahari
  • 461
  • 1
  • 3
  • 16
0
votes
1 answer

Drivehandler: Modify: Is it possible to keep the `GET` request same as default, but only modify the `POST `

Keeping default config from help document we have url: drivehandler: pattern: /$YAMLURL/drive handler: DriveHandler kwargs: path: $YAMLURL/drive modify: mymodule.modify(handler) mymodule.py is created as: def modify(): …
0
votes
1 answer

ESBUILD build fails in gramex 1.91.1 in alpine container

So A container is running in Gramex IDE with following details $ cat /etc/os-release NAME="Alpine Linux" ID=alpine VERSION_ID=3.17.1 PRETTY_NAME="Alpine Linux…
0
votes
1 answer

Is there a similar way to validate login like we validate for signup in Gramex?

In Gramex, for signup we have a validate method which will validate for a certain condition. Like in this example like we are validating the signup using validate() function.: signup: key: signup # ?signup= is used as the…
Lahari
  • 57
  • 8
0
votes
2 answers

Gramex - DBAuth Login only when user is active

I am trying to implement a way by which I can check the value of an is_active column from user database before letting the user log in. So along with the password check, I also want to check if is_active column is True, only then the user must be…
preetika mondal
  • 323
  • 2
  • 12