Code Monkey home page Code Monkey logo

Comments (7)

walter avatar walter commented on June 21, 2024

@derekeder can you take a look at this ASAP, please. This is blocking us for a server set up.

from legistar-scrape.

derekeder avatar derekeder commented on June 21, 2024

@rchekaluk could you post a full traceback for this error?

from legistar-scrape.

derekeder avatar derekeder commented on June 21, 2024

@rchekaluk actually, it looks like an error with the print statement. Will push up a fix shortly.

print str.decode('utf-8')

from legistar-scrape.

derekeder avatar derekeder commented on June 21, 2024

fixed with 65c4495

@rchekaluk give it another try

from legistar-scrape.

rchekaluk avatar rchekaluk commented on June 21, 2024

Typo, this fix fails per below. I think you meant "encode" not "decode" (see opengovernment/opengovernment-local#9 (comment)); I experimented with "encode" manually and it resolved the issue.

saving Councilmember O'Brien 5232113d12a96075ffde86c7
saving Councilmember Oh 5232113d12a96075ffde86c8
saving Councilmember O'Neill 5232113d12a96075ffde86c9
saving
Traceback (most recent call last):
  File "/u/apps/legistar-scrape-staging/import.py", line 89, in <module>
    print 'saving', member['Person Name'].decode('utf-8'), council_member_id
  File "/u/apps/virtualenvs/legistar/lib64/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in position 17: ordinal not in range(128)

from legistar-scrape.

derekeder avatar derekeder commented on June 21, 2024

@rchekaluk hmm strange. not quite sure why that worked. uploaded a fix with encode 22495fe

from legistar-scrape.

rchekaluk avatar rchekaluk commented on June 21, 2024

Success, thx.

from legistar-scrape.

Related Issues (4)

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.