#plausible :: Daggerverse
1 messages ยท Page 1 of 1 (latest)
Interestingly if I call the module on its own it seems to work just fine :/
The instructionsin the changelog do not seem to work for me because I cant get past dagger develop
sdk/python/v0.13.0 - 2024-09-11
This SDK uses ๐ Engine + ๐ CLI version v0.13.0. See what changed in that release.
๐ https://pypi.org/project/dagger-io/v0.13.0/
๐ https://dagger-io.readthedocs.io/en...
@marsh gyro in your daggerverse/plausible I ran dagger develop with v0.13.0 which succeeded for me.
Yeah same here, I can run the module just fine, but when I try to run it as a dependent module I run into this issue.
fyi @lethal trench this looks related to uv?
It's possible the older version didn't pick up on the issue here with the plausible Module. The problem is that there's a dependency in pyproject.toml for requests, but it's not in the requirements.lock file. If there's a lock file, the runtime will install from the lock and it's now correctly validating that the required dependency isn't installed:
Checked 37 packages in 0.99ms
Found 1 incompatibility
The package `main` requires `requests`, but it's not installed
If you dagger develop, the runtime will update the requirements.lock file for you, even if you use v0.12.7. That's what fixes it. However, you can also update the lock with uv directly, or even switch to uv.lock in v0.13.0.
๐ indeed, that does look to be the issue, thanks ๐
Thanks @lethal trench , i tried this based on the instructions in the change log but the issue occurs when I run dagger develop
Which module are you running dagger develop in?
I was doing it in a project that uses this module, but ah I think I see the issue, I need to do this and then push a new release?
Yep
Thanks, will do that!
thanks again @lethal trench that did the trick, im all set now.
From now on, for new dependencies, you can just do uv add requests and that'll update pyproject.toml, uv.lock, install it in the .venv (create it if it doesn't exist too), and you're ready to go ๐
What If I dont use uv :p ?
But sounds like it really improves the world, ill give it a shot
You have no idea. I suggest you read this: https://astral.sh/blog/uv-unified-python-packaging
I def will!
It's what I've been waiting for a very long time in the Python ecosystem!
Doesn't it break your heart that its in rust though?
Feels like when Linux was using a proprietary vcs system in the pre-git days haha
No, not at all!
Haha, I need to change my mindset then ๐