我剛剛從指令中安裝了couchapp
,並且已經通過了入門教程。當我運行couchapp push
我得到一個錯誤這樣的:couchapp push給出[Errno 22]無效參數
2012-06-23 14:05:08 [CRITICAL] unknown error [[Errno 22] Invalid argument]
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/couchapp/dispatch.py", line 48, in dispatch
return _dispatch(args)
File "/Library/Python/2.6/site-packages/couchapp/dispatch.py", line 92, in _dispatch
return fun(conf, conf.app_dir, *args, **opts)
File "/Library/Python/2.6/site-packages/couchapp/commands.py", line 76, in push
dbs = conf.get_dbs(dest)
File "/Library/Python/2.6/site-packages/couchapp/config.py", line 146, in get_dbs
return [Database(dburl, use_proxy=use_proxy) for dburl in dburls]
File "/Library/Python/2.6/site-packages/couchapp/client.py", line 223, in __init__
self.res.head()
File "/Library/Python/2.6/site-packages/restkit/resource.py", line 122, in head
params_dict=params_dict, **params)
File "/Library/Python/2.6/site-packages/couchapp/client.py", line 143, in request
raise RequestFailed("unknown error [%s]" % str(e))
RequestFailed: unknown error [[Errno 22] Invalid argument]
我在OS X 10.6.8,CouchDB的是已經設置與管理員和.couchapprc
文件具有默認dB設置爲http://user:[email protected]:5984/mydb
。我遵循couchapp.org的指示進行自制安裝。我唯一能想到的就是這是一個與Python有關的問題,但我不知道Python,似乎也無法弄清楚爲什麼這個東西會失敗。任何幫助追蹤這個問題並修復它將不勝感激。
謝謝。
我得到完全一樣的東西。以下是我用來安裝CouchApp的命令,獲取示例Sofa應用程序,然後推送:https://gist.github.com/3137964 –
您可以查看CouchDB日誌並查看couchapp是否連接到服務器?是否有任何事情發送到服務器或它只是立即失敗? –