-
Notifications
You must be signed in to change notification settings - Fork 9
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
Installation with pip in Python 3.9 - cppcheck_junit is not recognized as an internal or external command, operable program or batch file #14
Comments
Further, I see the python file, but no .bat or .cmd wrapper. Possibly this is just a documentation issue.. C:\>where /R C:\python39 cppcheck_junit
C:\Python39\Lib\site-packages\cppcheck_junit.py
C:\> Indeed, using the full path to cppcheck_junit.py works - 🥳 - but this is a little unwieldy. Possibly pip should have put site-packages on the path. Is this a pip bug/config error? E:\repos\Project>python C:\Python39\Lib\site-packages\cppcheck_junit.py cppcheck-results-all.xml cppcheck-junit.xml
E:\repos\Project>dir *.xml
Volume in drive E is Data
Volume Serial Number is CCA5-58EE
Directory of E:\repos\Project
13/01/2021 17:22 74,299 cppcheck-junit.xml
13/01/2021 16:55 227,275 cppcheck-results-all.xml
2 File(s) 301,574 bytes
0 Dir(s) 716,797,235,200 bytes free
E:\repos\Project> |
Edit: I am using the global @ncook-hxgn A good practice is to use virtual environments: https://docs.python.org/3/tutorial/venv.html Please try this: > py -m venv venv
> venv\Scripts\activate
(venv) > python -m pip install --upgrade pip
(venv) > python -m pip install cppcheck_junit
(venv) > cppcheck_junit --help
usage: cppcheck_junit [-h] input_file output_file
Converts Cppcheck XML version 2 to JUnit XML format.
Usage:
$ cppcheck --xml-version=2 --enable=all . 2> cppcheck-result.xml
$ cppcheck_junit cppcheck-result.xml cppcheck-junit.xml
positional arguments:
input_file Cppcheck XML version 2 stderr file.
output_file JUnit XML output file.
optional arguments:
-h, --help show this help message and exit Whenever you have that |
New machine: installed Visual Studio's Python 3.9 and no other pythons. No Pip. (╯°□°)╯︵ ┻━┻ OK I guess I will install Python like a normal person 😁 |
@johnthagen it works perfectly when installed from 3.9's pip, when there's no cruft from a previous attempt in Python 2.x. I will look into |
Following on from #13 ..
I uninstalled
cppcheck_junit
from Python 2.7's pip, fixed my path to shuffle python versions, and reinstalled into Python 3.9's pip.I now cannot run cppcheck_junit from the commandline.
The following output is from after some trouble shooting.. hence the "cppcheck_junit is already installed to Python 3.9" message:
Please advise any trouble shooting steps I can take.
The text was updated successfully, but these errors were encountered: