Python code Deployment to Catalyst Appsail via CLI
Hi Support Team,
Our python code is run properly in windows os catalyst local environment without any issue so we tried to deploy to catalyst dev environment and deployed the code successfully without any issue.
We got an invocation url for Appsail so we try to run our Appsail code via browser. Finally we have checked the logs in catalyst got error as module 'os' has no attribute 'add_dll_directory'.
We asked help to Catalyst support they replied like
create a requirements.txt file in the lib folder that contains all the neccessary packages for your application and add the below code snippet in the "scripts" key in the app-config.json from your appsail folder.
- "scripts": {
- "preserve":"del /q .\\lib\\* /s && python3.9 -m pip install -r requirements.txt -t .",
- "predeploy":"del /q .\\lib\\* /s && python3.9 -m pip install --only-binary=:all: --platform manylinux2014_aarch64 -r requirements.txt -t ."
- }
Our Python verson is 3.12.1 and we have installed all the packages inside the lib folder as per our python verson.
Is it to change/install all the packages as per catalyst dev environment python verson 3.9 before deploy the code to development envirnment?
Announcements
[Webinar] Upgrade Retail Experiences with Serverless & AI
Ever wondered if you could build lightning-fast, intelligent retail solutions and experiences without touching infrastructure? Join our upcoming live session to explore how you can combine the agility of serverless with the power of large language models
[Webinar] Powering Industry Innovation: Building Unified Solutions with Catalyst
Struggling with fragmented apps or patchwork workflows across teams? Join us for a practical session on how developers are building unified, scalable industry solutions using Catalyst by Zoho—without wrangling with infrastructure. In this live session,
[Webinar] Bridging the Gap: Middleware for Cloud & On-Prem Integration with Catalyst by Zoho
Integrating cloud and on-prem systems can be complex - but it doesn’t have to be. Join us for a live webinar where we break down how middleware simplifies integrations, enhances scalability, and ensures secure data exchange. 🔹 Learn from Experts – Chris
Important Announcements in Support for Catalyst Features
Hello Catalyst Users, This announcement is to bring to your notice some of the recent updates in our support for various Catalyst components, to ensure that your existing Catalyst applications function properly. You can continue to build robust applications
Introducing Catalyst 2.0, the simplest cloud-based pro-code development platform.
Dear Catalyst Community, We are beyond thrilled to present you Catalyst 2.0—the new-age, pro-code development platform that redefines the way you build, deploy, and scale apps. Catalyst 2.0 is not a mere upgrade, but a significant leap into the future