modal-labs / modal-client

Python client library for Modal
https://modal.com/docs
Apache License 2.0
271 stars 35 forks source link

Error on creating `Sandbox` with an uninitialized `App` #2252

Closed aksh-at closed 1 week ago

aksh-at commented 2 weeks ago

We need to explain the whole uninitialized App concept better, but for now this prevents this footgun:

app = modal.App("peyton-sb-test")

sandbox = modal.Sandbox.create(timeout=10, app=app)
aksh-at commented 1 week ago

Is it worth it to talk about the local_entrypoint path too?

Wasn't going to do it initially intentionally, but decided to solve by linking to docs on apps instead.

aksh-at commented 1 week ago

@prbot approve