digitalocean / digitalocean/doctl
deploying serverless from ubuntu with python dependencies hangs, fails, is generally unclear
- Dominant language
- Go
- Stars
- 3.4k
- Forks
- 496
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 31
Description
**Describe the Issue:**
I am trying to deploy a very simple python script with a handful of dependencies via doctl and I just keep running into issue after issue:
- It seems the only way to install dependencies is to include a build script. However it is not clear without a ton of digging that snap installations will not let you build locally
- the deploy when building remotely appears to hang because there is no output whatsoever until the build is complete
- installing just 3 dependencies seems impossible. The build times out (and there's no way to change that timeout) every time
- If I add the --verbose-build flag then I get some stout back, but only so much before I just get `413 Payload Too Large` instead.
- I also got an out of memory error once for the build. It's literally just running pip.
- --verbose and --trace don't change the output at all
**Environment:**
- doctl version:
doctl version 1.120.2-release
Git commit hash: 34e9fbbe
- OS: Ubuntu 24.04 LTS
- Installation method: snap
**Additional Details:**
my requirements.txt:
```
pyiceberg[s3fs]==0.8.1
aiobotocore==2.17.0
polars==1.20.0
```
my build.sh
```shell
#!/bin/bash
set -e
virtualenv --without-pip virtualenv
pip install -r requirements.txt --target virtualenv/lib/python3.11/site-packages
```
Contributor guide
Assessment
This issue has not been assessed yet.