crucible.py returns Failed to get a patch. Please make sure to call the script from an SCM directory with local changes, or pipe in some input
When a user is trying to create a review using crucible.py as mentioned in Creating reviews from the command line in P4 workspace, it throws an error as
.. .. DEBUG:root:Checking <class '__main__.P4Source'>.is_active DEBUG:root:Trying to execute (['p4'],) Failed to get a patch. Please make sure to call the script from an SCM directory with local changes, or pipe in some input.
Script is trying to execute the p4 executables but not able to pipe the output from subprocess
- It may be an issue as explained in - CRUC-8206Getting issue details... STATUS . If you are running the script in a workspace containing a P4 repo is a symbolic link, try the workaround mentioned in the bug.
- Please verify the p4 is in environment variable PATH. We have seen similar issues when the p4 is made available with alias.