我刚刚从说明中安装了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,似乎无法弄清楚为什么这个东西失败了。任何帮助追踪此问题并修复它将非常感激。
感谢。
答案 0 :(得分:0)
通过降级到其他版本,我得到了同样的问题并解决了它。
https://github.com/downloads/couchapp/couchapp/couchapp-0.8.1-macosx.zip
现在似乎是最好的解决方案。
答案 1 :(得分:0)
当这种情况发生在我身上时,它通常意味着某种情况......有些情况下,_doc文件夹中的某些JSON格式错误,而且可能处于奇怪的层面。所以就像两个_ids或_rev那样不应该。