Can't convert 'bytes' object to str implicitly


#1

This is my code:

for status in statuses:
    if (status.lang =='en'):
        text += status.text.encode('utf-8')

When I run it in Python 3.5 I get this error:

Can't convert 'bytes' object to str implicitly

Is there a way to fix this without using Python 2.7? Would really prefer to keep it in Python 3.5.


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.