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
I'm trying to analyse, scan and evaluate a Python project whose dependencies are defined in a requirements.txt file. When running the analyzer, the repository and projects vcs and vcs_processed sections are missing the type, url, revision and path info. Without this info, the evaluator performed later returns the following error:
Could not resolve provenance for package '...:'
I saw in the mime-types example that the package.json file contains basic info about the project, and then tried to do the same for my project defining a setup.py as follows:
But then I got the following error running the analyzer:
Exception in thread "main" java.lang.IllegalArgumentException: The VcsInfo(type=Git, url=https://github.com/esa/gaia-bhthree.git, revision=, path=) of project 'PIP::gaia-bhthree-with-requirements-requirements.txt:1.0' cannot be found in Repository(vcs=VcsInfo(type=, url=, revision=, path=), vcsProcessed=VcsInfo(type=, url=, revision=, path=), nestedRepositories={}, config=RepositoryConfiguration(analyzer=null, excludes=Excludes(paths=[], scopes=[]), resolutions=Resolutions(issues=[], ruleViolations=[], vulnerabilities=[]), curations=Curations(packages=[], licenseFindings=[]), packageConfigurations=[], licenseChoices=LicenseChoices(repositoryLicenseChoices=[], packageLicenseChoices=[]), snippetChoices=[])).
at org.ossreviewtoolkit.model.OrtResult.getFilePathRelativeToAnalyzerRoot(OrtResult.kt:233)
at org.ossreviewtoolkit.model.OrtResult.getDefinitionFilePathRelativeToAnalyzerRoot(OrtResult.kt:199)
at org.ossreviewtoolkit.model.config.Excludes.findPathExcludes(Excludes.kt:61)
at org.ossreviewtoolkit.model.OrtResult$projects$2.invoke(OrtResult.kt:164)
at org.ossreviewtoolkit.model.OrtResult$projects$2.invoke(OrtResult.kt:160)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at org.ossreviewtoolkit.model.OrtResult.getProjects(OrtResult.kt:160)
at org.ossreviewtoolkit.model.OrtResult.isProjectExcluded(OrtResult.kt:573)
at org.ossreviewtoolkit.model.OrtResult$packages$2.invoke(OrtResult.kt:137)
at org.ossreviewtoolkit.model.OrtResult$packages$2.invoke(OrtResult.kt:121)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at org.ossreviewtoolkit.model.OrtResult.getPackages(OrtResult.kt:121)
at org.ossreviewtoolkit.model.OrtResult.getUncuratedPackages(OrtResult.kt:496)
at org.ossreviewtoolkit.model.OrtResult.getUncuratedPackages$default(OrtResult.kt:495)
at org.ossreviewtoolkit.model.utils.OrtResultExtensionsKt.setPackageCurations(OrtResultExtensions.kt:49)
at org.ossreviewtoolkit.analyzer.Analyzer.analyze(Analyzer.kt:157)
at org.ossreviewtoolkit.plugins.commands.analyzer.AnalyzerCommand.run(AnalyzerCommand.kt:202)
at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:279)
at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:292)
at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:41)
at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:457)
at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:454)
at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:474)
at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:481)
at org.ossreviewtoolkit.cli.OrtMainKt.main(OrtMain.kt:85)
Could you please help to understand the issue better?
Is there any place in the documentation where the basic info that a project should contain is defined? I will need to do the same for java projects later on.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I'm trying to analyse, scan and evaluate a Python project whose dependencies are defined in a requirements.txt file. When running the analyzer, the repository and projects vcs and vcs_processed sections are missing the type, url, revision and path info. Without this info, the evaluator performed later returns the following error:
Could not resolve provenance for package '...:'
I saw in the mime-types example that the package.json file contains basic info about the project, and then tried to do the same for my project defining a setup.py as follows:
But then I got the following error running the analyzer:
Could you please help to understand the issue better?
Is there any place in the documentation where the basic info that a project should contain is defined? I will need to do the same for java projects later on.
Many thanks,
Luis
Beta Was this translation helpful? Give feedback.
All reactions