Explicitly set Python requirements? #1346
-
This is actually a question but the only discussion category is "Show and tell" and the only Issue categories are "Bug report" and "Feature request". The Windmill documentation states:
This seems to rely on a direct mapping from the import name to the Python package name, but that is not always the case. Is there a way to specify the Python requirements of a Windmill workflow explicitly? I'm just testing a few imports and I get errors like these. All are rather surprising, because these imports work properly if installed into a normal Python virtual environment.
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Thanks for the great question, You can indeed: https://docs.windmill.dev/docs/reference#dependency-management example, at the top of your script:
Note that you will need to list all the dependencies. Also if you tell us what dependencies doesn't work with the current heuristic, we can add it to the list of mapping |
Beta Was this translation helpful? Give feedback.
-
I've added a new 'Questions' category and we will think of ways of making this answer easier to find directly in the product. |
Beta Was this translation helpful? Give feedback.
-
@NiklasRosenstein We now have a dedicate page for this on the docs: https://docs.windmill.dev/docs/advanced/imports#python and are linking to it in the default python script |
Beta Was this translation helpful? Give feedback.
-
Hey, is it possible to link private dependencies from a github repo? I need access to my own private python packages within Windmill, and the documentation doesn't outline how one might do this via the repo |
Beta Was this translation helpful? Give feedback.
Thanks for the great question,
You can indeed: https://docs.windmill.dev/docs/reference#dependency-management
example, at the top of your script:
Note that you will need to list all the dependencies.
Also if you tell us what dependencies doesn't work with the current heuristic, we can add it to the list of mapping