i started using couchdb with python-couchdb recently. The problem is when i use futon run my views written in python i get the following error message:

Error: os_process_error

{exit_status,4}

even for the default view it crashes.

def fun(doc): yield None, doc i set query_server in local.ini to

[query_server] python=C:\Python27\Lib\site-packages\couchpy-0.2dev-py2.7.egg\couchpy enter image description here

有帮助吗?

解决方案

Exit status 4 for Windows means that CouchDB is unable to open or locate file. I suppose you'd mess up couchpy project with couchpy view server. First one is just (afaik) client library, while second one is a part of another client library that ships with view server.

UPD: For Windows Python view server install with next line according your Python path:

[query_servers]
python=C:\Python27\Scripts\couchpy.exe
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top