Giter Site home page Giter Site logo

UnicodeEncodeError: about cv HOT 4 CLOSED

bamos avatar bamos commented on July 16, 2024
UnicodeEncodeError:

from cv.

Comments (4)

bamos avatar bamos commented on July 16, 2024

Thanks for the report and fix @jetheurer!

Can you see if it still works for you?
I changed the open to binary mode to
fix the following error in Arch Linux:

cv(master*)$ m build/cv.md
./generate.py cv.yaml
  + Processing section: interests
  + Processing section: education
  + Processing section: research
  + Processing section: teaching
  + Processing section: publications
  + Processing section: industry
  + Processing section: skills
  + Processing section: honors
Traceback (most recent call last):
  File "./generate.py", line 290, in <module>
    main()
  File "./generate.py", line 285, in main
    process_resume(LATEX_CONTEXT, yaml_data, args.preview)
  File "./generate.py", line 256, in process_resume
    context.write_to_outfile(rendered_resume)
  File "./generate.py", line 210, in write_to_outfile
    out.write(output_data)
TypeError: must be str, not bytes
Makefile:31: recipe for target 'build/cv.md' failed
make: *** [build/cv.md] Error 1

from cv.

bamos avatar bamos commented on July 16, 2024

Also @jetheurer - I think this bug was hidden in my system
because my LOCALE includes UTF-8.
My guess is that your LOCALE doesn't,
and I think I've run into this in another project when
running code on different computers.
Would be nice for Python to tell me about this
incompatibility. :-)

~$ echo $LANGUAGE $LC_ALL $LC_CTYPE $LANG
en_US.UTF-8 en_US.UTF-8

from cv.

bamos avatar bamos commented on July 16, 2024

@jetheurer - I'm closing this issue because I think this issue is resolved.
Ping me if something isn't working for you.

from cv.

jetheurer avatar jetheurer commented on July 16, 2024

ah sorry Brandon, I havent gotten around to checking it yet.

Liz

On Mon, Mar 9, 2015 at 10:41 AM, Brandon Amos [email protected]
wrote:

Closed #9 #9.


Reply to this email directly or view it on GitHub
#9 (comment).

from cv.

Related Issues (19)

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.