我刚刚couchapp
按照说明安装并完成了入门教程。当我运行时,couchapp push
我收到这样的错误:
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
文件的默认数据库设置为http://user:pass@localhost:5984/mydb
. 我已按照couchapp.org的说明进行 Homebrew 安装。我唯一能想到的是这是一个与 Python 相关的问题,但我不了解 Python,似乎无法弄清楚为什么这件事会失败。任何帮助追踪此问题并解决它将不胜感激。
谢谢。