Forum Discussion
jira-agile-metrics command is throwing file not found error
for i in pods: subprocess.Popen(["jira-agile-metrics", i], stdout=subprocess.PIPE) output = subprocess.communicate()[0]
This code giving FileNotFoundError: [Errno 2] No such file or directory: 'jira-agile-metrics'
I already installed jira-agile-metrics. How can I solve this issue?
1 Reply
The error you're encountering suggests that the command "jira-agile-metrics" cannot be found in your system's PATH.
Here are some steps you can try to resolve the issue:
1. Verify the installation: Make sure that you have installed "jira-agile-metrics" properly and it's available in your system. You can run the command "which jira-agile-metrics" to see if it's installed and its location.
2. Specify the full path to the command: If the command is installed in a non-standard location, you can specify the full path to the executable file in the subprocess.Popen command, like this:subprocess.Popen(["/path/to/jira-agile-metrics", i], stdout=subprocess.PIPE)3. Add the location of the command to PATH: If the command is installed in a location that's not in your PATH, you can add it by updating your environment variables.
On Windows, you can update your PATH by following these steps:
- Right-click on the Start button and select System.
- Click on Advanced system settings.
- Click on Environment Variables.
- Under System Variables, find the PATH variable and click Edit.
- Add the location of the "jira-agile-metrics" command to the end of the PATH.
- Restart your terminal or command prompt for the changes to take effect.
On Linux or macOS, you can update your PATH by adding the following line to your .bashrc or .bash_profile file:
export PATH=$PATH:/path/to/jira-agile-metrics
After making these changes, try running the code again. This should resolve the "FileNotFoundError: [Errno 2] No such file or directory: 'jira-agile-metrics'" error.