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

Release v1.3.0 can't use --verbose with other option! #37

Closed
K-Rex opened this issue Jul 27, 2015 · 4 comments
Closed

Release v1.3.0 can't use --verbose with other option! #37

K-Rex opened this issue Jul 27, 2015 · 4 comments

Comments

@K-Rex
Copy link

K-Rex commented Jul 27, 2015

1.$./scancode --verbose -c ../gpl/ aaa

Scanning files...
Traceback (most recent call last):
File "/home/rex/qdu_claro/yuki/tools/scancode-toolkit-1.3.0/bin/scancode", line 9, in
load_entry_point('scancode-toolkit==1.3.0', 'console_scripts', 'scancode')()
File "/home/rex/qdu_claro/yuki/tools/scancode-toolkit-1.3.0/local/lib/python2.7/site-packages/click/core.py", line 664, in call
return self.main(_args, *_kwargs)
File "/home/rex/qdu_claro/yuki/tools/scancode-toolkit-1.3.0/local/lib/python2.7/site-packages/click/core.py", line 644, in main
rv = self.invoke(ctx)
File "/home/rex/qdu_claro/yuki/tools/scancode-toolkit-1.3.0/local/lib/python2.7/site-packages/click/core.py", line 837, in invoke
return ctx.invoke(self.callback, *_ctx.params)
File "/home/rex/qdu_claro/yuki/tools/scancode-toolkit-1.3.0/local/lib/python2.7/site-packages/click/core.py", line 464, in invoke
return callback(_args, **kwargs)
File "/home/rex/qdu_claro/yuki/tools/scancode-toolkit-1.3.0/src/scancode/cli.py", line 282, in scancode
for input_file in file_iter(files):
File "/home/rex/qdu_claro/yuki/tools/scancode-toolkit-1.3.0/src/commoncode/fileutils.py", line 299, in file_iter
for top, _dirs, files in walk(location, ignored):
File "/home/rex/qdu_claro/yuki/tools/scancode-toolkit-1.3.0/src/commoncode/fileutils.py", line 265, in walk
if filetype.is_file(location) :
File "/home/rex/qdu_claro/yuki/tools/scancode-toolkit-1.3.0/src/commoncode/filetype.py", line 46, in is_file
return (location and os.path.isfile(location)
File "/home/rex/qdu_claro/yuki/tools/scancode-toolkit-1.3.0/lib/python2.7/genericpath.py", line 29, in isfile
st = os.stat(path)
TypeError: coercing to Unicode: need string or buffer, generator found

2.$./scancode --verbose --format html-app ../gpl/ gpl.html

TypeError: coercing to Unicode: need string or buffer, generator found

@pombredanne
Copy link
Contributor

The latest develop branch has a fix... Sorry for that bug, that was such a silly mistake!

@pombredanne
Copy link
Contributor

@K-Rex
Copy link
Author

K-Rex commented Jul 28, 2015

It can work!

@pombredanne
Copy link
Contributor

@K-Rex thank you for reporting and testing this!

pombredanne pushed a commit that referenced this issue Jan 12, 2022
    * Replace all references to `tmp` with `venv`

Signed-off-by: Jono Yang <jyang@nexb.com>
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

2 participants