Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.5 Socket TypeError: a bytes-like object is required, not 'str' 错误 #3

Open
zhangjinzhi opened this issue Jan 17, 2019 · 0 comments

Comments

@zhangjinzhi
Copy link

触动条件:
如果在python3.5运行该项目,执行shared_task任务时,数据库中task_timedtask表会记录错误信息:Python 3.5 Socket TypeError: a bytes-like object is required, not 'str' 。

原因:
查阅资料后发现,python3.5和Python2.7在套接字返回值解码上有区别,因此导致的这个错误。
不少人也遇到类似的错误。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant