When the deployment using the AwsPlatform nodetype is triggered by an application within a Python virtual environment (virtualenv), the hardcoded --user flags for the pip install commands in the configure.yaml [1] seem to lead to an error message and a failure of the respective deployment.
ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv."
Once the --user flag was removed manually/locally, the issue went away.
In my opinion the playbooks should only alter user- or system-wide state if really necessary. Otherwise, maybe doing that in a virtualenv would be better suited.
When the deployment using the AwsPlatform nodetype is triggered by an application within a Python virtual environment (
virtualenv
), the hardcoded--user
flags for thepip install
commands in theconfigure.yaml
[1] seem to lead to an error message and a failure of the respective deployment.ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv."
Once the
--user
flag was removed manually/locally, the issue went away.In my opinion the playbooks should only alter user- or system-wide state if really necessary. Otherwise, maybe doing that in a
virtualenv
would be better suited.[1] https://github.com/radon-h2020/radon-particles/blob/master/nodetypes/radon.nodes.aws/AwsPlatform/files/configure/configure.yml