我刚刚按照说明安装了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]我使用的是OSX10.6.8,已经通过管理员设置了CouchDB,并且.couchapprc文件的默认数据库设置为http://user:pass@localhost:5984/mydb。我已经按照couchapp.org的说明安装了Homebrew。我唯一能理解的是,这是一个与Python相关的问题,但我不了解Python,也不知道为什么这个东西会失败。任何帮助追踪这个问题并解决它的人都将不胜感激。
谢谢。
发布于 2012-08-08 05:44:09
当这种情况发生在我身上时,它通常意味着SOMEWHERE....SOMEHOW,_doc文件夹中的一些JSON格式很糟糕,可能是在一个奇怪的级别上。所以就像两个_ids或者一个_rev,它不应该在那里。
发布于 2012-07-26 00:41:35
我得到了同样的问题,并解决了它,通过降级到其他版本。
https://github.com/downloads/couchapp/couchapp/couchapp-0.8.1-macosx.zip
目前看来,这是最好的解决方案。
https://stackoverflow.com/questions/11172772
复制相似问题