WindmillWWindmill
Powered by
JacobJ
Windmill•11mo ago•
3 replies
Jacob

Python Dependency hell in windmill

Hello,

I have encountered an issue with the whole dependency setup in windmill.

I have a python script in windmil. I use phidata package. This package is accessed in python with 'from phi import ...'.

As you can see, the whole name phidata is not used but instead an alias 'phi'. Somehow this confuses windmill when it attempts to infer what package to identify.

I have attempted to fix this by following: https://www.windmill.dev/docs/advanced/dependencies_in_python
1) use CLI to add the workspace
2) wmill sync pull
3) add a requirements.txt and list all used packages (including phidata)
4) run wmill script generate-metadata
- I can see the lock file is being updated correctly
5) wmill sync push
6) all changes are correctly transfered to the windmill docker. However it does not register the changes being imposed on the lock file. It keeps the old dependencies (phi==0.6.7 this package is nonsense and does not exist) and not using the new (phidata==2.7.10)
Dependencies in Python | Windmill
In Windmill standard mode, dependencies in Python are handled directly within their scripts without the need to manage separate dependency files.
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Python DLT library in windmill? Compatibel?
riekusRriekus / help
6mo ago
Python dependency managment issue withPyMuPDF
AlexKAAlexK / help
2y ago
Windmill Dependency Resolution taking around 3s for each scripts
Stefan StefanovSStefan Stefanov / help
13mo ago
Automated Tests in Windmill
AlperAAlper / help
6mo ago