0
我一直在搜索,似乎無法解決這個問題。我正試圖設置Travis整合來扮演這個角色。根據docs我需要先進行身份驗證。然後我運行ansible-galaxy login
,提供我的github詳細信息,然後: Unexpected Exception: No JSON object could be decoded
。ansible-galaxy登錄:意外的例外:沒有JSON對象可以解碼
回溯:
File "/usr/local/bin/ansible-galaxy", line 85, in <module>
sys.exit(cli.run())
File "/usr/local/lib/python2.7/site-packages/ansible/cli/galaxy.py", line 152, in run
self.execute()
File "/usr/local/lib/python2.7/site-packages/ansible/cli/__init__.py", line 99, in execute
fn()
File "/usr/local/lib/python2.7/site-packages/ansible/cli/galaxy.py", line 553, in execute_login
galaxy_response = self.api.authenticate(github_token)
File "/usr/local/lib/python2.7/site-packages/ansible/galaxy/api.py", line 119, in authenticate
data = json.load(resp)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 290, in load
**kw)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
我甚至試圖重新安裝ansible但沒有運氣。 有什麼建議嗎?
這似乎現在在v2.0.0.2中工作。 – louwandre90