python - Heroku 上的 Flask 应用程序出现错误 : TypeError: 'unicode' does not have the buffer interface

标签 python heroku unicode

我有一个 Flask 应用程序,我正在尝试将其部署在 Heroku 上。它在工头的领导下工作得很好,但是当我部署它时,我的登录过程失败并出现错误:

类型错误:“unicode”没有缓冲区接口(interface)

发生错误的代码行如下所示: person = verify_email_password(email, request.form["xyzABC123"])

通过谷歌搜索,我发现最近(2014 年 6 月上旬)setuptools 中的回归导致了此错误,但我没有使用 setuptools。

最佳答案

将 Werkzeug 升级到 0.9.6(根据此讨论:https://github.com/miguelgrinberg/flasky/issues/17)今天对我有用。

关于python - Heroku 上的 Flask 应用程序出现错误 : TypeError: 'unicode' does not have the buffer interface,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24144934/

相关文章:

ruby - IndexTank 自动完成 : modifying the autocomplete field text for each result returned

django - 使用特殊字符在 Heroku(通过 powershell)中设置环境变量

heroku - iframe 无法在 heroku 上运行

Go Unicode 组合字符(字素簇)和 MS Windows 控制台 cmd.exe

python - Python 字符集转换

python - pandas str contains 返回匹配项

python - 每个键具有多个值的字典列表作为数据框

c++ - 在 Windows 中,如何检测 Unicode 字符是否呈现为正方形( bean 腐)?

java - 正则表达式的字符串中的COLON unicode和冒号之间有区别吗?

类或函数的python装饰器