Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 77624 invoked from network); 3 Dec 2010 08:32:41 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Dec 2010 08:32:41 -0000 Received: (qmail 8838 invoked by uid 500); 3 Dec 2010 08:32:39 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 8684 invoked by uid 500); 3 Dec 2010 08:32:39 -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 8676 invoked by uid 99); 3 Dec 2010 08:32:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Dec 2010 08:32:38 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of wabarry@gmail.com designates 209.85.160.180 as permitted sender) Received: from [209.85.160.180] (HELO mail-gy0-f180.google.com) (209.85.160.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Dec 2010 08:32:32 +0000 Received: by gyd5 with SMTP id 5so4901559gyd.11 for ; Fri, 03 Dec 2010 00:32:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=VXeTKsjqVP0JUV1OMGXn+IxR/zSmlVSvgeKvbXT9l8M=; b=CY+Sxgg5X30Am7BWqzo5YSo2NIZlPcr6AbLr8TUUXzJHPVlW2UGzWLjuNWbTBcORn9 7CuhsYNTmcDJs+X9hDu9FgignJd523G1BHpo5RXpivP8W/nEqvb63kmDFUWJAWr62wAM qEXSrr9XEQeQk5MfhMgRp3G9YvPsRE3ALeRPQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; b=PLeoH72fEI3LTOxNj2VXUMqlnXxICT49TraLIb6I+i42H4EHIwvWqxN5pp3iqlV1El PIAfgXvBYWlfW4JmJkjLCC7SFPa8dzhkImtzc+4YNpajyhExLLaX0Ouy4NhAYUvgO7Eh AwF3nUwyX7LjbXIJJaAJVZaYiO4ZojlGqU6nk= Received: by 10.150.203.4 with SMTP id a4mr3430471ybg.95.1291365131322; Fri, 03 Dec 2010 00:32:11 -0800 (PST) MIME-Version: 1.0 Sender: wabarry@gmail.com Received: by 10.236.95.47 with HTTP; Fri, 3 Dec 2010 00:31:51 -0800 (PST) In-Reply-To: References: From: Bill Barry Date: Fri, 3 Dec 2010 00:31:51 -0800 X-Google-Sender-Auth: IvaHi4EhaYx-KwHCtr-auMudAEs Message-ID: Subject: Re: Couchapp on Windows: KeyError for deleted document To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=000e0cd5d024ed8be904967d5f34 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd5d024ed8be904967d5f34 Content-Type: text/plain; charset=UTF-8 On Sun, Nov 21, 2010 at 7:21 PM, Wordit Ltd wrote: > Can anyone help with Couchapp on Windows? > > After I deleted a document via Futon, the push command is giving a > critical error (KeyError: 'test.html') and stopping the upload. The > document no longer exists in the db or in the local directory. I tried > re-cloning the db, but the error persists. I also recreated the > document (test.html) locally, but that did not change anything either. > Here is the traceback: > > Note: This setup was working fine until the file test.html was deleted > via Futon. > > ----------------------------------- > C:\Python27\Scripts\semclone>couchapp push > 2010-11-22 04:06:37 [CRITICAL] 'test.html' > > Traceback (most recent call last): > File "C:\Python27\lib\site-packages\couchapp\dispatch.py", line 48, in > dispatc > h > return _dispatch(args) > File "C:\Python27\lib\site-packages\couchapp\dispatch.py", line 92, in > _dispat > ch > return fun(conf, conf.app_dir, *args, **opts) > File "C:\Python27\lib\site-packages\couchapp\commands.py", line 77, in > push > doc.push(dbs, noatomic, browse, force) > File "C:\Python27\lib\site-packages\couchapp\localdoc.py", line 101, in > push > doc = self.doc(db, force=force) > File "C:\Python27\lib\site-packages\couchapp\localdoc.py", line 189, in > doc > del attachments[name] > KeyError: 'test.html' > > --------------------------- > > I found one way around this problem. In futon in your _design/yourapp there is a field couchapp signatures. Double click on the line for test.html and delete that line then save it by clicking the green check mark and then doing a Save Document. Deleting the document via futon does not delete the signature and this is giving couchapp problems. Bill --000e0cd5d024ed8be904967d5f34--