doctl icon indicating copy to clipboard operation
doctl copied to clipboard

deploying serverless from ubuntu with python dependencies hangs, fails, is generally unclear

Open ryanovas opened this issue 11 months ago • 2 comments

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

#!/bin/bash

set -e

virtualenv --without-pip virtualenv
pip install -r requirements.txt --target virtualenv/lib/python3.11/site-packages

ryanovas avatar Jan 22 '25 02:01 ryanovas

Hi , I’d like to work on this issue. Please assign it to me. @ryanovas

ProgrammingPirates avatar Oct 08 '25 08:10 ProgrammingPirates

I'm not sure I have that power, I think a maintainer needs to do that 🙏

ryanovas avatar Oct 08 '25 19:10 ryanovas