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
Introducing Catalyst 3.0: The agent-ready full-stack cloud!
Hi everyone! Catalyst 3.0 is here, bringing a major shift in how you can build and ship applications on Catalyst. With MCP connectors, agent skills, native agent plugins, a non-interactive CLI, zero egress, and 30+ services unified on one platform, Catalyst
[Webinar] Build smarter HR - Payroll Automation
If your HR and payroll teams are still relying on manual exports, spreadsheet reconciliations, or constant back-and-forth coordination to keep employee data aligned, this session is for you. We’re hosting a live webinar featuring Kyle Ferrara , CTO of
[Webinar] How Raptee.HV accelerates its EV platform
Curious about how EV platforms work behind the scenes? What does it actually take to run an EV platform from onboarding users to managing connected vehicles and deploying updates seamlessly? In this session, Raptee.HV shares how their platform is built
[Webinar] Deploy Docker apps with AppSail's custom runtime | Feb. 19
Hi everyone, Join us on February 19, 2026 at 8–9 PM IST for a live Catalyst webinar demonstrating how to deploy OCI-compliant Docker images with AppSail's custom runtime. You’ll learn how to: Package your apps as Docker containers Deploy via CLI or connect
Catalyst backs Vite.js!
Hi everyone, We're happy to support the open-source ecosystem that powers modern web development! If you’re building apps with Vite, Catalyst Slate is your go-to platform to deploy blazing-fast frontend apps with ease, scalability, and zero infrastructure