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

UnicodeEncodeError #22

Closed
ktosiek opened this issue Dec 5, 2016 · 2 comments
Closed

UnicodeEncodeError #22

ktosiek opened this issue Dec 5, 2016 · 2 comments
Labels

Comments

@ktosiek
Copy link

ktosiek commented Dec 5, 2016

  • safety version: 0.5.1
  • Python version: 2.7.6
  • Operating System: Ubuntu 14.04 LTS

Description

Full report with non-ascii data causes UnicodeEncodeError

What I Did

$ echo 'cryptography==1.3.2' | safety check --stdin --full-report
Traceback (most recent call last):
  File "/home/tkontusz/.local/bin/safety", line 11, in <module>
    sys.exit(cli())
  File "/home/tkontusz/.local/venvs/safety/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/home/tkontusz/.local/venvs/safety/local/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/home/tkontusz/.local/venvs/safety/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/tkontusz/.local/venvs/safety/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/tkontusz/.local/venvs/safety/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/tkontusz/.local/venvs/safety/local/lib/python2.7/site-packages/safety/cli.py", line 80, in check
    click.secho(report(vulns=vulns, full=full_report))
  File "/home/tkontusz/.local/venvs/safety/local/lib/python2.7/site-packages/safety/formatter.py", line 62, in report
    table.append("│ {:76} │".format(line))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 22: ordinal not in range(128)

@maratsh
Copy link
Contributor

maratsh commented Feb 25, 2017

I have same error.

@jayvdb
Copy link

jayvdb commented May 27, 2018

#36 should fix this.

Jwomers added a commit that referenced this issue Jul 10, 2018
fix UnicodeDecodeError: 'ascii' codec #22
@Jwomers Jwomers closed this as completed Jul 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants