Giter Site home page Giter Site logo

Comments (4)

shk3 avatar shk3 commented on July 16, 2024

Which file is that line in? It seems not the code in our program.
Are you using the latest script in this repository?

from edx-dl.

lenberman avatar lenberman commented on July 16, 2024

I downloaded the most recent code today.

Traceback (most recent call last):
File "edx-dl.py", line 387, in
main()
File "edx-dl.py", line 235, in main
print('%d - %s -> %s' % (c, course[0], course[2]))
File "/usr/lib/python2.7/codecs.py", line 351, in write
data, consumed = self.encode(object, self.errors)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2014' in
position 39: ordinal not in range(128)

--Len Berman
Chief Entertainment Officer Out to Pasture
Enterpriseshttp://www.outtopastureenterprises.com
Blog http://outtopastureenterprises.blogspot.com/

On Thu, Dec 12, 2013 at 3:33 PM, George Monkey [email protected]:

Which file is that line in? It seems not the code in our program.
Are you using the latest script in this repository?


Reply to this email directly or view it on GitHubhttps://github.com//issues/51#issuecomment-30459038
.

from edx-dl.

faisalv avatar faisalv commented on July 16, 2024

yeah - i had a similar problem on windows 7 using python 2.7 - but i used lxml as a parser and replaced the offending line with the following and all seems to work:
print('%d - %s -> %s' % (c, course[0], course[2])) ==> print('%d - %r -> %s' % (c, course[0], course[2]))

from edx-dl.

shk3 avatar shk3 commented on July 16, 2024

Thank you, @lenberman . It is a great fix, but python3 seems not supporting this. I have added a temporary solution for it as above.

from edx-dl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.