couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Metson <simonmet...@googlemail.com>
Subject Problem with python view server
Date Sun, 22 Feb 2009 18:42:49 GMT
Hi All,
	Using CouchDB 0.9.0a722639-incubating I get the following error when  
trying to access a python view server:

{"error":"{badmatch,{start_array,{decoder,null, 
37,1,38,trim}}}","reason":"[{mochijson2,json_decode,2},\n  
{couch_query_servers,read_json,1},\n {couch_query_servers,prompt,2},\n  
{couch_query_servers,'-map_docs/2-fun-1-',2},\n {lists,map,2},\n  
{couch_query_servers,map_docs,2},\n {couch_view,view_compute,2},\n  
{couch_view,update_group,1}]"}

http://localhost:5984/_config/query_servers/ has:
{"python":"/Users/metson/Documents/Workspace/PlayGround/couchdb-python/ 
build/lib/couchdb/view.py","javascript":"/Users/metson/Documents/ 
Workspace/PlayGround/couchdb/install/bin/couchjs /Users/metson/ 
Documents/Workspace/PlayGround/couchdb/install/share/couchdb/server/ 
main.js"}

which is from the latest trunk of couchdb-python, and the view is:
def mapfun(doc): yield doc

The script is executable, and, as far as I can tell the python path is  
correct (I can import all the libs).
Am I doing something obviously wrong? Should I update to a more recent  
couch build?
Cheers
Simon
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message