我添加了一堆js和图像文件,现在当我尝试解析部署时出现此错误
$ parse deploy
Uploading source files
Error talking to the Parse servers, try again
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
File "/usr/local/bin/parse/__main__.py", line 6, in <module>
File "/usr/local/bin/parse/main.py", line 537, in main
File "/usr/local/bin/parse/main.py", line 159, in handle_deploy
File "/usr/local/bin/parse/parse.py", line 324, in deploy
ValueError: need more than 2 values to unpack
我的python版本是2.7,我看到我上传的文件中没有任何空格字符在名称中。
答案 0 :(得分:0)
从文件名中删除空格。所以,
public/web page.html
renamed to:
public/webpage.html
有关详细信息,请参阅此处: https://www.parse.com/questions/parse-deploy-fails-python-error
(这是由于我使用Dropbox进行同步而在两台不同的计算机上创建的冲突文件版本。我rm -rf public / *并重建我的项目并解析部署工作正常。)