My issue has been resolved going with pip.
and are you sure these are the same env vars available when the agent does the same?
When the task finally failed, I was kicked of from the container
How to make sure that the python version is correct?
Yes indeed, but what about the possibility to do the clone/poetry installation ourself in the init bash script of the task?
I also did that in the following way:
- I put a sleep inside the bash script
- I ssh-ed to the fresh container and did all commands myself (cloning, installation) and again it worked...
How do you explain that it works when I ssh-ed into the same AWS container instance from the autoscaler?
Using a pyenv virtual env then exporting LOCALPYTHON env var
I see it's running inside 3.9, so I assume it's correct
@<1556812486840160256:profile|SuccessfulRaven86> , did you install poetry inside the EC2 instance or inside the docker? Basically, where do you put the poetry installation bash script - in the 'init script' section of the autoscaler or on the task's 'setup shell script' in execution tab (This is basically the script that runs inside the docker)
It sounds like you're installing poetry on the ec2 instance itself but the experiment runs inside a docker container