Python import randomly fails
Here's my script:
When I execute it, about 60% of the time it fails with the following error messages:
Tweaking
#requirement psd_tools
doesn't help. Other dependencies don't work as well. I cannot reproduce it reliably.4 Replies
Upon further testing, only one of the three workers can import correctly, thus the errors appear random.
Do you know why only one of the worker can import correctly?
The first one to install it. I investigated a bit, and other containers have no read permission to the shared volumn.
It seems related to Podman's rootless container stuff
I assume that since all the workers have different UID on the host, Windmill's way of sharing dependencies by mounting the same volumn under different containers don't work
It's possible that rootless Docker suffers from the same issue. Maybe you should document this surprising behavior?
Rather than documenting that behavior, we would probably want to write a full template for different setups such as rootless docker and podman. If you feel like contributing, that could be a great first addition.