Details
Failure: PIP - Pip Inspector |
For more output please click to expand.
👉 Click to see more output 👈
[main] --- ======== Detect Issues ======== |
ENVIRONMENT:
- Product: synopsys-detect-7.11.1.jar
- Others: OpenJDK 11, Python 3.6 and Python 2.7.5
Root cause
More output of this run, I see it used python
(which is python2) not python3
,
so run pip-inspector.py failed.
DEBUG [main-Executable_Stream_Thread] --- Python 2.7.5 |
Solution
Link python to python3, it works in my case.
For example
# save python to other name |
Then try to run bash <(curl -s -L https://detect.synopsys.com/detect7.sh)
again, my test commands:
bash <(curl -s -L https://detect.synopsys.com/detect7.sh) --blackduck.url=https://org.blackducksoftware.com --blackduck.api.token=MmMwMjdlOTctMT --detect.project.name=HUB --detect.project.version.name=TEST_v1.1.1 --detect.source.path=/workdir/test --logging.level.com.synopsys.integration=DEBUG --blackduck.trust.cert=TRUE --detect.tools.excluded=POLARIS --detect.blackduck.signature.scanner.snippet.matching=SNIPPET_MATCHING |
If you want to use Docker to do Blackduck scan, you can create a Docker image. like this
FROM openjdk:11 |
Hope this help.
转载本站文章请注明作者和出处,请勿用于任何商业用途。欢迎关注公众号「DevOps攻城狮」