We were facing the below issue while running scancode-toolkit.
It generates scancode_myproject_result.html file ,but the size is 0Kb
- Downloaded scancode-toolkit from https://github.com/nexB/scancode-toolkit.git
- Downloaded Python 2.7 32 bit from https://www.python.org/ftp/python/2.7.12/python-2.7.12.msi
and installed on C:Drive
Python:
C:\Python27>python
Python 2.7.12 (v2.7.12:d33edcf92851, Jun 27 2016, 11:09:22) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
Error:
C:\Downloads\scancode-toolkit-develop>scancode --format html samples/MyProject_1.0 scancode_myproject_result.html
Scanning files...
[####################################] 1622
Scanning done.
Traceback (most recent call last):
File "c:\downloads\scancode-toolkit-develop\bin\scancode-script.py", line 9, in
load_entry_point('scancode-toolkit', 'console_scripts', 'scancode')()
File "c:\downloads\scancode-toolkit-develop\lib\site-packages\click\core.py", line 664, in call
return self.main(*args, **kwargs)
File "c:\downloads\scancode-toolkit-develop\src\scancode\utils.py", line 61, in main
standalone_mode=standalone_mode, **extra)
File "c:\downloads\scancode-toolkit-develop\lib\site-packages\click\core.py", line 644, in main
rv = self.invoke(ctx)
File "c:\downloads\scancode-toolkit-develop\lib\site-packages\click\core.py", line 837, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\downloads\scancode-toolkit-develop\lib\site-packages\click\core.py", line 464, in invoke
return callback(*args, **kwargs)
File "c:\downloads\scancode-toolkit-develop\src\scancode\cli.py", line 268, in scancode
save_results(files_count, results, format, input, output_file)
File "c:\downloads\scancode-toolkit-develop\src\scancode\cli.py", line 410, in save_results
output_file.write(as_template(scanned_files))
File "c:\downloads\scancode-toolkit-develop\src\scancode\format.py", line 194, in as_template
'start': entry['start_line'],
TypeError: string indices must be integers, not str
Note: MyProject_1.0 is a gradle based java web application project.
We were facing the below issue while running scancode-toolkit.
It generates scancode_myproject_result.html file ,but the size is 0Kb
and installed on C:Drive
Python:
C:\Python27>python
Python 2.7.12 (v2.7.12:d33edcf92851, Jun 27 2016, 11:09:22) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
Error:
C:\Downloads\scancode-toolkit-develop>scancode --format html samples/MyProject_1.0 scancode_myproject_result.html
Scanning files...
[####################################] 1622
Scanning done.
Traceback (most recent call last):
File "c:\downloads\scancode-toolkit-develop\bin\scancode-script.py", line 9, in
load_entry_point('scancode-toolkit', 'console_scripts', 'scancode')()
File "c:\downloads\scancode-toolkit-develop\lib\site-packages\click\core.py", line 664, in call
return self.main(*args, **kwargs)
File "c:\downloads\scancode-toolkit-develop\src\scancode\utils.py", line 61, in main
standalone_mode=standalone_mode, **extra)
File "c:\downloads\scancode-toolkit-develop\lib\site-packages\click\core.py", line 644, in main
rv = self.invoke(ctx)
File "c:\downloads\scancode-toolkit-develop\lib\site-packages\click\core.py", line 837, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\downloads\scancode-toolkit-develop\lib\site-packages\click\core.py", line 464, in invoke
return callback(*args, **kwargs)
File "c:\downloads\scancode-toolkit-develop\src\scancode\cli.py", line 268, in scancode
save_results(files_count, results, format, input, output_file)
File "c:\downloads\scancode-toolkit-develop\src\scancode\cli.py", line 410, in save_results
output_file.write(as_template(scanned_files))
File "c:\downloads\scancode-toolkit-develop\src\scancode\format.py", line 194, in as_template
'start': entry['start_line'],
TypeError: string indices must be integers, not str
Note: MyProject_1.0 is a gradle based java web application project.