rspivak / lsbaws

Let's Build A Web Server
MIT License
657 stars 304 forks source link

Type Error #8

Open ghost opened 7 years ago

ghost commented 7 years ago

Besides having forgotten the parentheses around all the "print" statements in the script for the first part of your tutorial, I get the following error: "TypeError: a bytes-like object is required, not 'str'" on line 20.

Miopas commented 7 years ago

I met the same problem when I used python3. Then I tried to use python2 to run the code. This error didn't appear.

yqlicglingfei commented 6 years ago

When using python3, the problem occurs.