Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

How to handle python modules in a Node.js serverless framework? #381

@nicolasesnis

Description

@nicolasesnis

I'm working on a nodejs10.x serverless project. My handler.js file calls some Python scripts to run data processing and requires to import external modules (Numpy, Pandas, etc.). I've installed these modules in the project virtualenv and added them into a requirements.txt. I've tried to handle these modules with serverless-python-requirements but I've faced problems with Docker:

Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"nodejs10.x\": executable file not found in $PATH": unknown.

I believe this is because I'm trying to install Python packages in a Node project. Any help on insight on this would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions