You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ~/ort-45.0.0/bin/ort scan --ort-file=ort/analyzer-result.yml --output-dir=ort
Scanning projects with:
Exception in thread "main" java.io.IOException: Cannot run program "scancode": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at org.ossreviewtoolkit.utils.common.ProcessCapture.<init>(ProcessCapture.kt:95)
at org.ossreviewtoolkit.utils.common.CommandLineTool$DefaultImpls.run(CommandLineTool.kt:71)
at org.ossreviewtoolkit.scanner.CommandLinePathScannerWrapper.run(CommandLinePathScannerWrapper.kt:32)
at org.ossreviewtoolkit.utils.common.CommandLineTool$DefaultImpls.run(CommandLineTool.kt:82)
at org.ossreviewtoolkit.scanner.CommandLinePathScannerWrapper.run(CommandLinePathScannerWrapper.kt:32)
at org.ossreviewtoolkit.utils.common.CommandLineTool$DefaultImpls.getVersion(CommandLineTool.kt:88)
at org.ossreviewtoolkit.scanner.CommandLinePathScannerWrapper.getVersion(CommandLinePathScannerWrapper.kt:32)
at org.ossreviewtoolkit.utils.common.CommandLineTool$DefaultImpls.getVersion$default(CommandLineTool.kt:87)
at org.ossreviewtoolkit.scanner.CommandLinePathScannerWrapper.version_delegate$lambda$0(CommandLinePathScannerWrapper.kt:33)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:83)
at org.ossreviewtoolkit.scanner.CommandLinePathScannerWrapper.getVersion(CommandLinePathScannerWrapper.kt:33)
at org.ossreviewtoolkit.plugins.commands.scanner.ScannerCommand.runScanners$lambda$14(ScannerCommand.kt:190)
at kotlin.text.StringsKt__AppendableKt.appendElement(Appendable.kt:84)
at kotlin.collections.CollectionsKt___CollectionsKt.joinTo(_Collections.kt:3493)
at kotlin.collections.CollectionsKt___CollectionsKt.joinToString(_Collections.kt:3510)
at kotlin.collections.CollectionsKt___CollectionsKt.joinToString$default(_Collections.kt:3509)
at org.ossreviewtoolkit.plugins.commands.scanner.ScannerCommand.runScanners(ScannerCommand.kt:190)
at org.ossreviewtoolkit.plugins.commands.scanner.ScannerCommand.run(ScannerCommand.kt:148)
at com.github.ajalt.clikt.core.CoreCliktCommandKt.parse(CoreCliktCommand.kt:107)
at com.github.ajalt.clikt.core.CoreCliktCommandKt.main(CoreCliktCommand.kt:78)
at com.github.ajalt.clikt.core.CoreCliktCommandKt.main(CoreCliktCommand.kt:90)
at org.ossreviewtoolkit.cli.OrtMainKt.main(OrtMain.kt:88)
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
... 23 more
Maybe there is some issue on my side, but it would be convenient if this stacktrace contains more details about the file it can't open.
The text was updated successfully, but these errors were encountered:
Please see the ort requirements command mentioned under system requirements. Depending on the ORT command being used, ORT depends on some third-party tools that either need to be installed manually, or you can user the Docker image.
Also see this discussion and various closed issues about the same topic.
@sschuberth got it! Maybe we can make this stracktrace more informative, in order to avoid similar bug reports in the future? For example, it may say: "run 'requirements' first and make sure there are no missing tools"
I created
analyzer-result.yml
file with the help of this command (no issues):Then, I run this command and fail:
Maybe there is some issue on my side, but it would be convenient if this stacktrace contains more details about the file it can't open.
The text was updated successfully, but these errors were encountered: