windmill icon indicating copy to clipboard operation
windmill copied to clipboard

The python module is not enabled properly, can I manually install the python module I need in the container?

Open sx98083714 opened this issue 2 years ago • 4 comments

I use the httpx module in my python script, httpx supports the http2.0 protocol, and to enable it requires the pip command to install and enable:

pip install httpx[http2]

windmill installs and loads modules automatically by importing module names into the script, but for the httpx module, how do I get it to automatically install and enable http2.0 support, or can I manually enter the docker container and manually execute the pip command to install and enable it? Who can tell me what I should do?

sx98083714 avatar Oct 29 '24 02:10 sx98083714

similar issue here, I need to use taxii2-client module in python On my PC: pip install taxii2-client In python: from taxii2client.v21 import Collection, Server that works

but in windmill no go... no matter what I try, I haven't tried any manual requirements.txt mentioned here https://www.windmill.dev/docs/advanced/dependencies_in_python#lockfile-per-script-inferred-from-a-requirementstxt, maybe that is the only solution?

william-scholes avatar Nov 25 '24 02:11 william-scholes

@sx98083714 https://www.windmill.dev/docs/advanced/dependencies_in_python#pinning-dependencies-and-requirements

grantith avatar Nov 28 '24 19:11 grantith

@sx98083714 https://www.windmill.dev/docs/advanced/dependencies_in_python#pinning-dependencies-and-requirements

Yup that fixed it. Thanks :)

reaperhammer avatar Nov 29 '24 02:11 reaperhammer

@grantith @reaperhammer very good! thanks a lot !

sx98083714 avatar Dec 03 '24 08:12 sx98083714