Unicode issue causing crash

Issue #56 invalid
Former user created an issue

Crashes on Ten and SBS with unicode error, seems ok on ABC and Nine, on initial list of shows

 40) Billy On The Street S3 Ep6 - When The Easter Bunny Attacks!, with Joel McHale
 41) Billy On The Street S3 Ep7 - It's Not Pitbull, It's Amy Poehler
 42) Billy On The Street S3 Ep8 - Billy Loves Ratatouille, with Patton Oswalt
Traceback (most recent call last):
  File "./grabber.py", line 55, in <module>
    main()
  File "./grabber.py", line 40, in main
    result = choose(options, allow_multi=will_download)
  File "./grabber.py", line 9, in choose
    print("%3d) %s" % (i+1, key))
UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 51: ordinal not in range(128)
grabber@vps:~/current$ ll

Comments (5)

  1. delx repo owner
    • assigned issue to
      delx
    • edited description

    I cannot reproduce this. What version of Python are you using? Do you have the latest WebDL version?

  2. John Bartlett

    Im using Ubuntu 16.04LTS. I have both python 2.7 and 3.5 installed. python is sym linked to python2.7 but the shebang in your scripts explicitly call python3 so I thought all would be ok.

    Any ideas?

  3. delx repo owner
    1. Can you print the output of: git rev-parse HEAD
    2. Did you install the dependencies using virtualenv/pip or apt-get?
    3. Please try running it explicitly with python3: /usr/bin/python3 ./grabber.py
  4. Log in to comment