-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/bin/sh: /usr/bin/env python3: No such file or directory #161
Comments
Thanks for the information. |
It is supported with Ansible 2.0 and will be available with that release. |
@prasad-valmeti-broadcom We are currently using our own Ansible modules for the Brocade SAN switches. These modules work against the CLI. We would very much like to move to the brocade.fos Ansible collection and sunset our own modules, but using Ansible 2.7 is not an option for us. So we depend on this change and would like to get it as soon as possible. Would it be possible to change just the shebang header in your Ansible modules and release a brocade.fos version 1.4.0 with that, so that we don't have to wait for the 2.0 version? We tested locally that changing just the shebang header is sufficient to make it work with the latest ansible-core version. We were testing with the zone and alias modules. from:
to:
|
We are also facing same issue, can we fix this as quickly as possible. We can upgrade our collection to 1.3.4, however due to this issue, it will not help either as "py" files have '/usr/bin/env python3' |
I have a problem with ansible 2.17.4 on MacOS. It says "/bin/sh: /usr/bin/env python3: No such file or directory\n"
Error:
I think the problem is here with quoting:
EXEC /bin/sh -c ''"'"'/usr/bin/env python3'"'"' ...
Reproduce:
Ansible seems to try to run "/usr/bin/env python3" as binary with space "env python3".
The solutions is just to remove "#!/usr/bin/env python3" in the first line of .py files
The text was updated successfully, but these errors were encountered: