Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 86889 invoked from network); 20 Jan 2009 14:47:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jan 2009 14:47:40 -0000 Received: (qmail 16250 invoked by uid 500); 20 Jan 2009 14:47:38 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 16223 invoked by uid 500); 20 Jan 2009 14:47:38 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 16212 invoked by uid 99); 20 Jan 2009 14:47:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2009 06:47:37 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mich569@gmail.com designates 209.85.218.19 as permitted sender) Received: from [209.85.218.19] (HELO mail-bw0-f19.google.com) (209.85.218.19) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2009 14:47:30 +0000 Received: by bwz12 with SMTP id 12so784338bwz.11 for ; Tue, 20 Jan 2009 06:47:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=dWEENGjvPmGt8fGxKS5lajU4c2u1KOa3heHggSdAe+M=; b=qjyYJLnZziYJH8CVKR8mdtGdLp8ptJF87HYsjSzLTNaG2zQNl/2GFujnAV9m0Zy2wP 3H7g74tDVC5v7hFCJjBATy097GVIoy1NRhgtsYycMR93jMfaoubQ/fVTsr3+UxEACGlD YIBCLh3hgSccVQ2+/R4jsfnPDp4O9Sb7Ghf6Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=CHmY/FFX/b/MwJRy5v1+85g7d5YDDjeOftujWgnxkJP1n/khKFQyzCM1KawUApP/e9 qwaiwDwQCfJgoSdG2p8g0D7Zt0yuNnb9QF2j/0djSDR/15MwAe7h5J5XEo2ZDbnTJzXX tauc0OibHGZfke/7wSkprHFyTe8fya4IIqfoo= Received: by 10.181.197.1 with SMTP id z1mr2505019bkp.118.1232462695345; Tue, 20 Jan 2009 06:44:55 -0800 (PST) Received: by 10.181.198.18 with HTTP; Tue, 20 Jan 2009 06:44:55 -0800 (PST) Message-ID: <3fd73c480901200644i6828029av9a2f213720ae040a@mail.gmail.com> Date: Tue, 20 Jan 2009 15:44:55 +0100 From: eF To: user@couchdb.apache.org Subject: Re: beginner question In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_26361_4543563.1232462695332" References: <8E0988F1-00D9-4BF7-AC56-EB520AD0E8C0@gmail.com> <5aaed53f0901191129t69aeb43fqd15a10ec54cdbab3@mail.gmail.com> <3fd73c480901200051j5b3ff14fpb02a803aa445b3c6@mail.gmail.com> <5aaed53f0901200534y2f705b2btcb1056830fd18f89@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_26361_4543563.1232462695332 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline ha! works! It was this couchpy not view.py thing. I was suggested by ms vista config where the file is pointed. Thanks! 2009/1/20 Jan Lehnardt > > On 20 Jan 2009, at 14:34, Jeff Hinrichs - DM&T wrote: > > On Tue, Jan 20, 2009 at 2:51 AM, eF wrote: >> >>> actually I followed the post You mentioned, and while I didnt find >>> local.ini >>> I changed couch.ini.. so.. how to generate local.ini (where it come >>> from?) >>> >>> That depends on what platform you are installing on. Building from >> source on Ubuntu 8.x it is just there. When I installed on FreeBSD 7 >> from ports, I had to make my own. It is just a text file that doesn't >> change when you update, where as the couch.ini file may change. You >> need to specify both when starting couchdb >> -c \"/usr/local/etc/couchdb/default.ini\" -c >> \"/usr/local/etc/couchdb/local.ini\" >> > > > It actually depends on the CouchDB version :) the 0.8 series ships with > couch.ini, the 0.9 series ships with default.ini and local.ini. > > Cheers > Jan > -- > > > The settings from the second config listed, override the 1st. When >> you make changes to the configuration via Futon, it modifies the last >> config file specified. >> In your cmd line. In the above it would be the local.ini >> >> so in your couch.ini (my default.ini) There is the following: >> [query_servers] >> javascript = /usr/local/bin/couchjs >> /usr/local/share/couchdb/server/main.js >> >> In your local modifications file (local.ini or the second specified), >> create a [query_servers] section like: >> [query_servers] >> python = /usr/bin/couchpy >> >> you should put the second config file in the same directory as the >> first, with the same permissions. >> (** if you are just kicking the tires, go ahead and modify the >> existing config and don't worry about the creating a second. Just >> remember it may be over written when/if you update couchdb.) >> >> Then restart couch and go to the configuration section and you should see >> query_servers >> javascript /usr/local/bin/couchjs >> /usr/local/share/couchdb/server/main.js >> python /usr/bin/couchpy >> >> Now go to Custom Query... in a database and enter the following simple >> map function >> def fun(doc): >> yield None, doc >> >> click "Run" and if it works, you are golden. >> >> Remember, couchpy is what you want to point to for the python view >> server and not view.py directly. In my installation it is installed >> in /usr/bin >> which couchpy is your friend, and when you think you have it, try to >> run it from the command line with >> /usr/bin/couchpy --help >> >> to make sure >> >> >> Have Fun! >> >> -Jeff >> >> 2009/1/19 Jeff Hinrichs - DM&T >>> >>> On Mon, Jan 19, 2009 at 8:18 AM, Michal wrote: >>>> >>>>> >>>>> what went wrong when I get this error: >>>>> >>>>> couchdb.client.ServerError: (500, ('error', >>>>> >>>> "{{nocatch,{map_process_error,{exit_status,0}}},\n >>>> [{couch_query_servers,readline,2},\n >>>> {couch_query_servers,read_json,1},\n >>>> {couch_query_servers,prompt,2},\n >>>> {couch_query_servers,'-start_doc_map/2-fun-0-',2},\n >>>> {lists,foreach,2},\n >>>> {couch_query_servers,start_doc_map,2},\n {couch_view,view_compute,2},\n >>>> {couch_view,update_group,1}]}")) >>>> >>>>> >>>>> I was trying to configure couchdb to use it with python. I modified >>>>> >>>> couch.ini and path points to view.py from couchdb-python. The same query >>>> works when it is written in JS (db exists and all tests are passed). The >>>> same program works on vista, on leopard if fails. >>>> >>>>> >>>>> br >>>>> michal z >>>>> >>>> >>>> view server not set up correctly. See >>>> http://mail-archives.apache.org/mod_mbox/couchd, >>>> tech@dundeemt.comb-user/200812.mbox/% >>>> 3C39FCE8C0-888D-48F1-82EC-F3AE81E31872@gmail.com%3E< >>>> http://mail-archives.apache.org/mod_mbox/couchdb-user/200812.mbox/%3C39FCE8C0-888D-48F1-82EC-F3AE81E31872@gmail.com%3E >>>> > >>>> >>>> You should probably be editing your local.ini and not the couch.ini file >>>> too. >>>> >>>> -Jeff >>>> >>>> >>> >> > ------=_Part_26361_4543563.1232462695332--