Skip to content
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

Crash at startup when parsing conda environment.yml #1049

Open
devnewton opened this issue Oct 2, 2024 · 0 comments
Open

Crash at startup when parsing conda environment.yml #1049

devnewton opened this issue Oct 2, 2024 · 0 comments

Comments

@devnewton
Copy link

license_finder report --recursive --format=html --save=license_finder.html
LicenseFinder::NPM: is active for '/scan/myproject'
LicenseFinder::Composer: is active for '/scan/myproject'
LicenseFinder::Conda: is active for '/scan/myproject/conf'
/usr/share/rvm/gems/ruby-3.2.3/gems/license_finder-7.2.1/lib/license_finder/package_managers/conda.rb:70:in `environment_name': undefined method `fetch' for "TZ=Europe/Paris":String (NoMethodError)

      @environment_name ||= YAML.load_file(environment_file).fetch('name')
                                                            ^^^^^^
	from /usr/share/rvm/gems/ruby-3.2.3/gems/license_finder-7.2.1/lib/license_finder/package_managers/conda.rb:78:in `activated_conda'
	from /usr/share/rvm/gems/ruby-3.2.3/gems/license_finder-7.2.1/lib/license_finder/package_managers/conda.rb:88:in `conda_list'
	from /usr/share/rvm/gems/ruby-3.2.3/gems/license_finder-7.2.1/lib/license_finder/package_managers/conda.rb:31:in `current_packages'
	from /usr/share/rvm/gems/ruby-3.2.3/gems/license_finder-7.2.1/lib/license_finder/package_manager.rb:105:in `current_packages_with_relations'
	from /usr/share/rvm/gems/ruby-3.2.3/gems/license_finder-7.2.1/lib/license_finder/scanner.rb:42:in `each'
	from /usr/share/rvm/gems/ruby-3.2.3/gems/license_finder-7.2.1/lib/license_finder/scanner.rb:42:in `flat_map'
	from /usr/share/rvm/gems/ruby-3.2.3/gems/license_finder-7.2.1/lib/license_finder/scanner.rb:42:in `active_packages'
	from /usr/share/rvm/gems/ruby-3.2.3/gems/license_finder-7.2.1/lib/license_finder/core.rb:84:in `current_packages'
	from /usr/share/rvm/gems/ruby-3.2.3/gems/license_finder-7.2.1/lib/license_finder/core.rb:79:in `decision_applier'
	from /usr/share/rvm/rubies/ruby-3.2.3/lib/ruby/3.2.0/forwardable.rb:234:in `acknowledged'
	from /usr/share/rvm/gems/ruby-3.2.3/gems/license_finder-7.2.1/lib/license_finder/license_aggregator.rb:51:in `block in aggregate_packages'
	from /usr/share/rvm/gems/ruby-3.2.3/gems/license_finder-7.2.1/lib/license_finder/license_aggregator.rb:49:in `each'
	from /usr/share/rvm/gems/ruby-3.2.3/gems/license_finder-7.2.1/lib/license_finder/license_aggregator.rb:49:in `flat_map'
	from /usr/share/rvm/gems/ruby-3.2.3/gems/license_finder-7.2.1/lib/license_finder/license_aggregator.rb:49:in `aggregate_packages'
	from /usr/share/rvm/gems/ruby-3.2.3/gems/license_finder-7.2.1/lib/license_finder/license_aggregator.rb:11:in `dependencies'
	from /usr/share/rvm/gems/ruby-3.2.3/gems/license_finder-7.2.1/lib/license_finder/cli/main.rb:161:in `report'
	from /usr/share/rvm/gems/ruby-3.2.3/gems/thor-1.3.1/lib/thor/command.rb:28:in `run'
	from /usr/share/rvm/gems/ruby-3.2.3/gems/thor-1.3.1/lib/thor/invocation.rb:127:in `invoke_command'
	from /usr/share/rvm/gems/ruby-3.2.3/gems/thor-1.3.1/lib/thor.rb:527:in `dispatch'
	from /usr/share/rvm/gems/ruby-3.2.3/gems/thor-1.3.1/lib/thor/base.rb:584:in `start'
	from /usr/share/rvm/gems/ruby-3.2.3/gems/license_finder-7.2.1/bin/license_finder:6:in `<top (required)>'
	from /usr/share/rvm/gems/ruby-3.2.3/bin/license_finder:25:in `load'
	from /usr/share/rvm/gems/ruby-3.2.3/bin/license_finder:25:in `<main>'
	from /usr/share/rvm/gems/ruby-3.2.3/bin/ruby_executable_hooks:22:in `eval'
	from /usr/share/rvm/gems/ruby-3.2.3/bin/ruby_executable_hooks:22:in `<main>'

The environment files contains only:

TZ=Europe/Paris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant