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

Yolk crashes when PyPi package descriptions contain certain characters #6

Closed
orome opened this issue Nov 28, 2015 · 2 comments
Closed

Comments

@orome
Copy link

orome commented Nov 28, 2015

Yolk (0.8.7) reports and encoding error when printing information about packages.

For example, when I

yolk -M crypto-enigma

I get

UnicodeEncodeError: 'ascii' codec can't encode character u'\u03b2' in
position 2322: ordinal not in range(128)

because the PyPi page for the package has a β in it. Or if I try

yolk -M Metafone

I get

UnicodeEncodeError: 'ascii' codec can't encode characters in position 3291-3292: ordinal not in range(128)

Is there a way to avoid this error? It seems like a bug that Yolk would crash just because there's a Greek character or mathematical symbol in the PyPi page for a package.

@myint
Copy link
Owner

myint commented Nov 28, 2015

This seems to manifest only on Python 2. I'll take a look.

@myint myint closed this as completed in fc842a3 Nov 28, 2015
@orome
Copy link
Author

orome commented Nov 28, 2015

Cool. I can confirm that the error vanishes for me in 0.8.8.

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