Python “设置工具”;上载失败(400):表单数据未正确编码为UTF-8“;,为什么?

Python “设置工具”;上载失败(400):表单数据未正确编码为UTF-8“;,为什么?,python,encoding,utf-8,setuptools,Python,Encoding,Utf 8,Setuptools,我正在尝试将文档上载到PyPI,但收到一条错误消息upload failed(400):表单数据未正确编码为UTF-8。当使用iconv测试单个文件时,它们似乎确实以utf-8正确编码。我做错了什么 $ python3.3 setup.py upload_docs running upload_docs running build_sphinx Running Sphinx v1.2 loading pickled env

我正在尝试将文档上载到PyPI,但收到一条错误消息upload failed(400):表单数据未正确编码为UTF-8。当使用iconv测试单个文件时,它们似乎确实以utf-8正确编码。我做错了什么

$ python3.3 setup.py upload_docs                                     
running upload_docs
running build_sphinx
Running Sphinx v1.2
loading pickled environment... done
building [html]: targets for 0 source files that are out of date
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
no targets are out of date.
Submitting documentation to http://pypi.python.org/pypi
Upload failed (400): Form data is not correctly encoded in UTF-8

手动上传很好。

你的文件名显示了什么?@Hyperboreus你是说
文件doc/build/singlehtml/index.html:html文档文本
?我不确定我是否完全理解您需要的信息。如果您需要,它是否有效?@J.F.Sebastian是的,它有效。现在编辑问题以明确说明这一点。
upload\u docs
命令现在起作用了吗?如果更新
setuptools
,是否有效?您确定您的设置正确吗?例如,您没有在某处传递列表而不是字符串?尝试从干净状态重建文档。否则。