Python code Deployment to Catalyst Appsail via CLI

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.

  1. "scripts": {
  2. "preserve":"del /q .\\lib\\* /s && python3.9 -m pip install -r requirements.txt -t .",
  3. "predeploy":"del /q .\\lib\\* /s && python3.9 -m pip install --only-binary=:all: --platform manylinux2014_aarch64 -r requirements.txt -t ."
  4. }

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

    • React Nexus 2025 Recap: Catalyst Slate in Action!

      Hey Catalyst Community! We recently attended the React Nexus 2025 conference, an exciting gathering for frontend enthusiasts and React developers. Our team had an incredible time presenting and conducting a hands-on workshop on Catalyst Slate, our streamlined
    • [Webinar] A hands-on guide to Catalyst Stratus

      Have you used Catalyst Stratus yet? It’s an object storage service that makes it easy to handle large files — whether they're coming from your Catalyst app or other Zoho apps. We’re hosting a live coding session where you’ll build a working prototype
    • Catalyst Video Tutorials!

      Hello everyone! We’ve been brewing something exciting behind the scenes, and we’re thrilled to finally share it with you- Catalyst video tutorials are here! We recognized that videos are the predominant medium for learning and discovery these days, so
    • [Webinar] Catalyst Cloud Browser in Action: PDF & Web Rendering Solutions for Regulated Industries

      Hi everyone, Have you ever struggled with rigid PDF tools or clunky rendering logic in BFSI or healthcare apps? Do your clients struggle to deliver compliant, dynamic, and automated documents — and most are still stuck with brittle, server-heavy PDF generation?
    • Announcing Catalyst Developer Bootcamps in India - Zoho Community

      Hey everyone! We're excited to announce a set of developer bootcamps dedicated to Catalyst! These bootcamps are aimed to empower developers to build, scale, and deploy applications with speed and precision, using Catalyst. Whether you're a newcomer or

      Catalyst Community