错误' Module_six_moves_urllib_parse'对象没有属性' urlsplit'

时间:2016-06-21 10:39:37

标签: python pip python-sphinx six urlsplit

使用Six运行Sphinx时出错。当我在项目文档中运行Make HTML时,我收到错误

 Running Sphinx v1.4.1 making output directory...
1.4.1
loading pickled environment... not yet created

Exception occurred:
  File "/Library/Python/2.7/site-packages/sphinx/ext/intersphinx.py", line 148, in _strip_basic_auth
    url_parts = parse.urlsplit(url)
AttributeError: 'Module_six_moves_urllib_parse' object has no attribute 'urlsplit'

六个包说明它在1.4.1但是当运行pip list

alabaster (0.7.7)
awscli (1.10.23)
awsebcli (3.7.6)
Babel (2.3.3)
blessed (1.9.5)
botocore (1.4.14)
cement (2.8.2)
colorama (0.3.3)
CommonMark (0.5.4)
docker-py (1.7.2)
dockerpty (0.4.1)
docopt (0.6.2)
docutils (0.12)
futures (3.0.5)
google-api-python-client (1.5.1)
httplib2 (0.9.2)
imagesize (0.7.0)
Jinja2 (2.8)
jmespath (0.9.0)
MarkupSafe (0.23)
oauth2client (2.2.0)
pathspec (0.3.4)
pip (8.1.2)
pyasn1 (0.1.9)
pyasn1-modules (0.0.8)
Pygments (2.1.3)
python-dateutil (2.5.3)
pytz (2016.4)
PyYAML (3.11)
recommonmark (0.4.0)
requests (2.9.1)
rsa (3.3)
s3transfer (0.0.1)
semantic-version (2.5.0)
setuptools (19.4)
simplejson (3.8.2)
six (1.5.0)
snowballstemmer (1.2.1)
Sphinx (1.4.1)
sphinx-rtd-theme (0.1.9)
texttable (0.8.4)
uritemplate (0.6)
virtualenv (15.0.2)
wcwidth (0.1.6)
websocket-client (0.37.0)
wheel (0.26.0)

它在1.5.0

有人能在这看到问题吗? 谢谢一家工厂。 VIN

1 个答案:

答案 0 :(得分:0)

刚刚发现了这个问题。我需要将Sphinx更新为1.4.4