[ERROR] can't concat str to bytes

How to solve the problem: “[ERROR] can’t concat str to bytes”?