Skip to content

UnicodeDecodeError backtrace during scan #688

Closed
@dengste

Description

@dengste

Using scancode 2.0.1. I get an abort with a UnicodeDecodeError backtrace. I'm guessing this is due to same illegal encoding in some file, but I cannot figure out which file exactly is responsible. The backtrace does not tell me much because I cannot see the original backtrace that triggered this but only the one from the multiprocessing pool:

Traceback (most recent call last):
  File "/home/engsterd/scancode-toolkit-2.0.1/bin/scancode", line 11, in <module>
    load_entry_point('scancode-toolkit', 'console_scripts', 'scancode')()
  File "/home/engsterd/scancode-toolkit-2.0.1/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/engsterd/scancode-toolkit-2.0.1/src/scancode/utils.py", line 76, in main
    standalone_mode=standalone_mode, **extra)
  File "/home/engsterd/scancode-toolkit-2.0.1/local/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/engsterd/scancode-toolkit-2.0.1/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/engsterd/scancode-toolkit-2.0.1/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/engsterd/scancode-toolkit-2.0.1/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/engsterd/scancode-toolkit-2.0.1/src/scancode/cli.py", line 402, in scancode
    ignore=user_ignore)
  File "/home/engsterd/scancode-toolkit-2.0.1/src/scancode/cli.py", line 515, in scan
    result = scanned.next()
  File "/home/engsterd/scancode-toolkit-2.0.1/local/lib/python2.7/site-packages/click/_termui_impl.py", line 259, in next
    rv = next(self.iter)
  File "/home/engsterd/scancode-toolkit-2.0.1/src/scancode/pool.py", line 46, in wrap
    return func(self, timeout=timeout or 1e10)
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 668, in next
    raise value
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb1 in position 28: ordinal not in range(128)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions