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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -