Re: ValueError: too many values to unpack

Rich Shepard <[email protected]>
Newsgroups gmane.comp.python.db.pysqlite.user
Message-ID <[email protected]>
On Thu, 30 Nov 2006, Jim Vickroy wrote:

> Your table has 5 columns, but, in the for-loop statement, you are trying
> to unpack a fetched row into only 4 columns. Either modify the select
> statement to retrieve only 4 columns or modify the for-loop statement to
> accept 5 columns.

Jim,

   Oh, d'oh! I'm not using the first column, and that's where it got out of
sync. Thanks very much.

Rich

-- 
Richard B. Shepard, Ph.D.               |    The Environmental Permitting
Applied Ecosystem Services, Inc.(TM)    |            Accelerator
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.