Python版本:2.7
在lektor server
命令上显示以下错误:
Traceback (most recent call last):
File "/Users/item4/Projects/lektor/lektor/devserver.py", line 49, in build
builder.prune()
File "/Users/item4/Projects/lektor/lektor/builder.py", line 1062, in prune
for aft in build_state.iter_unreferenced_artifacts(all=all):
File "/Users/item4/Projects/lektor/lektor/builder.py", line 371, in iter_unreferenced_artifacts
and is_primary_source''', [artifact_name])
ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.
最后我得到了答案。可能有用
我编辑过/Users/item4/Projects/lektor/lektor/生成器.py加了一行
在下一行之后
参考链接:http://hakanu.net/sql/2015/08/25/sqlite-unicode-string-problem/
相关问题 更多 >
编程相关推荐