Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hi,
I am trying to deploy my python scripts which involve externally installed python packages to Digital Ocean Functions, however, I get the following error every time during the deployment process
Installing collected packages: psycopg2, numpy, pandas ERROR: Could not install packages due to an OSError: [Errno 30] Read-only file system: ‘/usr/local/lib/python3.9/site-packages/psycopg2’
Here are how my scripts and folders are structured:
cryptometrics
My project.yml script is as follow:
packages:
- name: sentiment
actions:
- name: summary
runtime: 'python:default'
The requirements.txt file contains all Python packages that need to be installed:
pandas==1.4.2
psycopg2==2.9.3
The build.sh file contains instructions to install packages during the remote build process during deployment
#!/bin/bash
set -e
virtualenv virtualenv
source virtualenv/bin/activate
pip install -r requirements.txt
deactivate
This error would pop up after running the following command for a while:
doctl serverless deploy cryptometrics --remote-build
Does anyone here face this problem before?
Rory McEwan
Anjanesh Lekshminarayanan
182d09356ab94d3893ddfaca4f0270
Prashant Kumbhat
kprichard
e452769e8f30404d81a3bc803143f4
robert
Eleanor
GamesmenJordan