swiftclient can't be installed in windmill
When I ran the statement of import swiftclient by a python script, I had the error below
{
"error": {
"name": "ExecutionErr",
"message": "execution error:
pip compile failed: Lock file generation failed.
command: /usr/local/bin/uv pip compile -q --no-header requirements.in --strip-extras -o requirements.txt --index-strategy unsafe-best-match --cache-dir /tmp/windmill/cache/uv -p 3.11 --python-preference only-managed
ExitStatus("uv", 1)"
× No solution found when resolving dependencies:
╰─▶ Because there are no versions of swiftclient and you require
swiftclient, we can conclude that your requirements are unsatisfiable.
May I please have any suggestion, I tried to install some similar modules that could be worked the same as swiftcflient, but the same issue
17 Replies
Hi @Mary , you will likely need to pin python versions manually until we had swift as an exception
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.
@rubenf Thank you for the help, I will try it 👍
@rubenf Hey, rubenf, I followed the steps from the guaidences , but I still have the same issue as below resolving dependencies...
content of requirements:
swiftclient
wmill
× No solution found when resolving dependencies:
╰─▶ Because there are no versions of swiftclient and you require
swiftclient, we can conclude that your requirements are unsatisfiable.
I created a requirents.txt, and ran wmill script generate-metadata f/demo/site_report.py ,still fails to get the module which could be seen on https://pypi.org/project/python-swiftclient/1.3.0/
I created a requirents.txt, and ran wmill script generate-metadata f/demo/site_report.py ,still fails to get the module which could be seen on https://pypi.org/project/python-swiftclient/1.3.0/
what did you put at top
py311
anyio==4.8.0
certifi==2025.1.31
h11==0.14.0
httpcore==1.0.7
httpx==0.28.1
idna==3.10
sniffio==1.3.1
typing-extensions==4.12.2
wmill==1.473.0
python-swiftclient==1.3.0
pandas
couchdb
Above are the contents from requirements.txt
where did you write
#requirements:
?on my local development by using vs code , and I have a demo folder , which has site_report.py , and I havea requirments,txt under the demo folder as well
when I pushed the files from my local dev to windmill, I can't see the requirments.txt on windmill ,may I know if it is normal ?
Did the cli detect the requirements.txt ?
it would say so in the logs
I think so , when I ran wmill script generate-metadata f/demo/site_report.py
I have the log below,
This command only works for workspace scripts, for flows inline scripts use
^ LockfileGenerationError: Failed to generate lockfile: execution error: Error locking file: Lock file generation failed. command: /usr/local/bin/uv pip compile -q --no-header requirements.in --strip-extras -o requirements.txt --index-strategy unsafe-best-match --cache-dir /tmp/windmill/cache/uv -p 3.11 --python-preference only-managed ExitStatus("uv", 1) logs: job=01956315-8b81-f3c7-9896-2a4c3ab6e671 tag=python3 worker=wk-default-bb74ff17a372-q03DP hostname=bb74ff17a372 resolving dependencies... content of requirements: swiftclient wmill × No solution found when resolving dependencies: ╰─▶ Because there are no versions of swiftclient and you require swiftclient, we can conclude that your requirements are unsatisfiable.
wmill flow generate - locks
Generating metadata for f/demo/site_report.py
file:///C:/Users/testaccount/AppData/Roaming/npm/node_modules/windmill-cli/esm/metadata.js:226
throw new LockfileGenerationError(Failed to generate lockfile: ${response?.["error"]?.["message"]}
);^ LockfileGenerationError: Failed to generate lockfile: execution error: Error locking file: Lock file generation failed. command: /usr/local/bin/uv pip compile -q --no-header requirements.in --strip-extras -o requirements.txt --index-strategy unsafe-best-match --cache-dir /tmp/windmill/cache/uv -p 3.11 --python-preference only-managed ExitStatus("uv", 1) logs: job=01956315-8b81-f3c7-9896-2a4c3ab6e671 tag=python3 worker=wk-default-bb74ff17a372-q03DP hostname=bb74ff17a372 resolving dependencies... content of requirements: swiftclient wmill × No solution found when resolving dependencies: ╰─▶ Because there are no versions of swiftclient and you require swiftclient, we can conclude that your requirements are unsatisfiable.
na it didn't find the requirements.txt
oh , so may I know which step I missed?
you're on windows it seems, we may have a bug on windows for detecting requirements.txt, not certain. Can you print your current file/directory layout
yeap, I use windows , that it is my directory layout

it's probably an issue with us not handing windows path correctly, I will investigate
Thank you so much:)
did you do
wmill script generate-metadata
?yes, I did