Carmen-Python: the JSON object must be str, not 'bytes' -


i've been using carmen geolocate tweets several months, , it's been working fine carmen-python repository downloaded. however, 3 months ago made changes support python 3.5. had re-clone repository, , when try run carmen on same tweet files using before, gives me error

"typeerror: json object must str, not 'bytes'". 

i figure error in cli.py file. tried add "encoding='utf-8'" in line 47 found in this question, , got rid of b's in "rb" , "wb" in line 67, new error got was

"typeerror: write() argument must str, not bytes" 

which i'm guessing refers line 111, don't know how fix one. there way can fix this, or need wait them fix it?


Comments

Popular posts from this blog

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -