Mary
Mary4w ago

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
rubenf
rubenf4w ago
Hi @Mary , you will likely need to pin python versions manually until we had swift as an exception
rubenf
rubenf4w ago
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.
Mary
MaryOP4w ago
@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/
rubenf
rubenf4w ago
what did you put at top
Mary
MaryOP4w ago
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
rubenf
rubenf4w ago
where did you write #requirements: ?
Mary
MaryOP4w ago
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 ?
rubenf
rubenf4w ago
Did the cli detect the requirements.txt ? it would say so in the logs
Mary
MaryOP4w ago
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 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.
rubenf
rubenf4w ago
na it didn't find the requirements.txt
Mary
MaryOP4w ago
oh , so may I know which step I missed?
rubenf
rubenf4w ago
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
Mary
MaryOP4w ago
yeap, I use windows , that it is my directory layout
No description
rubenf
rubenf4w ago
it's probably an issue with us not handing windows path correctly, I will investigate
Mary
MaryOP4w ago
Thank you so much:)
rubenf
rubenf4w ago
did you do wmill script generate-metadata ?
Mary
MaryOP4w ago
yes, I did

Did you find this page helpful?