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

Unicode Error #3

Closed
mobiuscoffee opened this issue Jul 7, 2015 · 6 comments
Closed

Unicode Error #3

mobiuscoffee opened this issue Jul 7, 2015 · 6 comments

Comments

@mobiuscoffee
Copy link

I tried to use $ sc auth on an account that used unicode in its name and it connected, but gave an error.

Traceback (most recent call last):
  File "/usr/local/bin/sc", line 3, in <module>
    cli.main()
  File "/home/john/.local/lib/python2.7/site-packages/soundcloud_cli/cli.py", line 216, in main
    args.command(args)
  File "/home/john/.local/lib/python2.7/site-packages/soundcloud_cli/cli.py", line 23, in command_auth
    user_input = raw_input('enter username ({0}): '.format(username))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 1-10: ordinal not in range(128)

Also, if I tried to use sc auth again it just gave the same error and would not let me change accounts.

Deleting ~/.sc stopped the error and allowed me to authenticate another account, as long as it didn't have unicode in it.

@zeekay zeekay closed this as completed in 8cb96ec Jul 7, 2015
@zeekay
Copy link
Owner

zeekay commented Jul 7, 2015

Should be fixed in 0.2.7. Let me know if you have any other issues!

@mobiuscoffee
Copy link
Author

Should be fixed in 0.2.7. Let me know if you have any other issues!

A reinstall with pip should fix everything then?

@zeekay
Copy link
Owner

zeekay commented Jul 7, 2015

Well, that error at least :)

@mobiuscoffee
Copy link
Author

I get the same error if i use sc list and the user has tracks in unicode.

@mobiuscoffee
Copy link
Author

would this fix work for the sc list problem as well? If so, I'll try it out when I have the time!

@zeekay
Copy link
Owner

zeekay commented Jul 9, 2015

I need to update soundcloud-cli to use unicode internally. I'll take a look at that later this evening!

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