Skip to content

Scancode failure on Windows and Linux #279

Description

@Cypoman

Windows:

C:\Users\slorber\Desktop\scancode-toolkit-1.6.1>scancode --format html-sap "z:\Documents\EBI4_Build_Local" EBI4_Build_Local.html
Scanning files...
[------------------------------------] 1 Scanning: com.extol.ebi
Scanning done.
Traceback (most recent call last):
File "C:\Users\slorber\Desktop\scancode-toolkit-1.6.1\bin\scancode-script.py", line 9, in load_entry_point('scancode-toolkit==1.6.1', 'console_scripts', 'scancode')()
File "C:\Users\slorber\Desktop\scancode-toolkit-1.6.1\lib\site-packages\click\core.py", line 664, in __call__return self.main(_args, *_kwargs)
File "c:\users\slorber\desktop\scancode-toolkit-1.6.1\src\scancode\utils.py", line 61, in main standalone_mode=standalone_mode, *_extra)
File "C:\Users\slorber\Desktop\scancode-toolkit-1.6.1\lib\site-packages\click\core.py", line 644, in main rv = self.invoke(ctx)
File "C:\Users\slorber\Desktop\scancode-toolkit-1.6.1\lib\site-packages\click\core.py", line 837, in invoke return ctx.invoke(self.callback, *_ctx.params)
File "C:\Users\slorber\Desktop\scancode-toolkit-1.6.1\lib\site-packages\click\core.py", line 464, in invoke return callback(_args, *_kwargs)
File "c:\users\slorber\desktop\scancode-toolkit-1.6.1\src\scancode\cli.py", line 248, in scancode results = scan(input, copyright, license, package, email, url, info, verbose, quiet)
File "c:\users\slorber\desktop\scancode-toolkit-1.6.1\src\scancode\cli.py", line 315, in scan
scan_result.update(scan_one(res, scanners))
File "c:\users\slorber\desktop\scancode-toolkit-1.6.1\src\scancode\cli.py", line 334, in scan_one
scan = list(scan)
File "c:\users\slorber\desktop\scancode-toolkit-1.6.1\src\scancode\api.py", line 56, in get_copyrights from cluecode.copyrights import detect_copyrights
File "c:\users\slorber\desktop\scancode-toolkit-1.6.1\src\cluecode\copyrights.py", line 36, in from textcode import analysis
File "c:\users\slorber\desktop\scancode-toolkit-1.6.1\src\textcode\analysis.py", line 31, in import typecode.contenttype
File "c:\users\slorber\desktop\scancode-toolkit-1.6.1\src\typecode\contenttype.py", line 48, in from typecode import magic2
File "c:\users\slorber\desktop\scancode-toolkit-1.6.1\src\typecode\magic2.py", line 208, in libmagic = load_lib()
File "c:\users\slorber\desktop\scancode-toolkit-1.6.1\src\typecode\magic2.py", line 192, in load_lib root_dir = command.get_base_dirs(typecode.bin_dir)[0]
IndexError: list index out of range

C:\Users\slorber\Desktop\scancode-toolkit-1.6.1>

Ubuntu:

./scancode: /home/slorber/Desktop/scancode-toolkit-1.6.1/bin/scancode: /Users/slorber/Desktop/scancode-toolkit-1.6.1/bin/python: bad interpreter: No such file or directory
slorber@ubuntu:~/Desktop/scancode-toolkit-1.6.1$ python --version
Python 2.7.6

slorber@ubuntu:~/Desktop/scancode-toolkit-1.6.1$

Centos

[e-team@localhost scancode-toolkit-1.6.1]$ ./scancode --help
./scancode: /home/e-team/Desktop/scancode-toolkit-1.6.1/bin/scancode: /Users/slorber/Desktop/scancode-toolkit-1.6.1/bin/python: bad interpreter: No such file or directory
[e-team@localhost scancode-toolkit-1.6.1]$ ./configure

  • Installing components ...
    /bin/sh: /home/e-team/Desktop/scancode-toolkit-1.6.1/bin/pip: /Users/slorber/Desktop/scancode-toolkit-1.6.1/bin/python: bad interpreter: No such file or directory

Failed to execute command:
pip install --no-allow-external --use-wheel --no-index --find-links=/home/e-team/Desktop/scancode-toolkit-1.6.1/thirdparty/prod --find-links=/home/e-team/Desktop/scancode-toolkit-1.6.1/thirdparty/base -r /home/e-team/Desktop/scancode-toolkit-1.6.1/etc/conf/base.txt. Aborting...
[e-team@localhost scancode-toolkit-1.6.1]$

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions