문제

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