Comments (7)
@derekeder can you take a look at this ASAP, please. This is blocking us for a server set up.
from legistar-scrape.
@rchekaluk could you post a full traceback for this error?
from legistar-scrape.
@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.
fixed with 65c4495
@rchekaluk give it another try
from legistar-scrape.
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.
@rchekaluk hmm strange. not quite sure why that worked. uploaded a fix with encode
22495fe
from legistar-scrape.
Success, thx.
from legistar-scrape.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from legistar-scrape.