#One thing maybe worth noting is that my
1 messages · Page 1 of 1 (latest)
Not an issue, but it seems like your pipeline is in dagger_project/app.py and assuming you're loading /src with src = client.host().directory(".") as in the guide, then paths are relative to the dir you're executing the pipeline in. Are you not executing then the pipeline with python dagger_project/app.py from the root of the project?
The guide also installs dependencies with pip install -e .[test]. Here, [test] is an extra that the FastAPI project defines. Does your project have it or did you update that command in your pipeline?
@spiral copper might make sense to move the discussion to this separate thread to reduce spam within the main channel. I think the problem is that you have the dependencies only in the poetry section but the default example installs with pip instead of poetry (e.g. the example from fastapi https://github.com/tiangolo/fastapi/blob/master/pyproject.toml#L52 ). When this issue is solved I think you will face a second problem: you have created a recursive call of the test.py (probably pytest will fail immediately as dagger is not installed in the container)
Hmm ok, thanks. Not 100% clear on this (all the different ways to manage projects and deps in Python is kind of a mess), but I'll try a simple pip install and see if that resolves it. Appreciate the replies.
true...using pip/poetry/conda(or mamba) is confusing for me as well and I am still trying to figure out which is the best way for me (currently relying heavily on vs code devcontainers + simple pip). If you want I can push my simple test to github and I can share it with you
devcontainers meaning https://containers.dev/? I was eyeing that as well a bit ago
Development containers documentation and specification page.
Would be great to see your example, thanks
in my case I am creating a dev container which has access to my docker socket
will need to clean it up a bit (was currently trying to find a way to access my GPU from Docker Desktop on Windows via Dagger...but not yet there 😁 )
If you want I can push my simple test to github and I can share it with you
Would you mind sharing that with me when you have a chance? Thanks.
will post in this thread once I have pushed it (probably today)