Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ryanovas opened this issue Jan 22, 2025 · 0 comments
Labels

Comments

@ryanovas
Copy link

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: 34e9fbb
  • 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 ryanovas added the bug label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant