Re: [dabo-users] sqlite3 error

Author: Ed Leafe

Posted: 2010-09-30 at 17:58:42

On Sep 30, 2010, at 5:49 PM, Jim Byrnes wrote:

> I am handcoding a Dabo app. When I run it I get the following error:

>

> Traceback (most recent call last):

> File "dMask.py", line 66, in <module>

> testBizobj = TestBizobj(conn)

> File "/usr/local/lib/python2.6/dist-packages/dabo/biz/dBizobj.py",

> line 51, in __init__

> self.setConnection(conn)

> File "/usr/local/lib/python2.6/dist-packages/dabo/biz/dBizobj.py",

> line 129, in setConnection

> self.dbapiCursorClass = self._cursorFactory.getDictCursorClass()

> AttributeError: 'sqlite3.Connection' object has no attribute

> 'getDictCursorClass'

>

> Version info: Platform: GTK

> Python Version: 2.6.5 on linux2

> Dabo Version: Version 0.9.2; Revision ~5924

> UI Version: 2.8.11.0 on wxGTK (gtk2)

>

> Sqlite3 was installed with Ubuntu Lucid so it should be version 3.6.22-1

The error has nothing to do with Sqlite; it's in the dConnection class (which is the bizobj's _cursorFactory). My guess is that you are using a plain connection to the database, and not a Dabo dConnection.

Can you show me the code where the 'conn' in the dMask.py code is defined?

-- Ed Leafe

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/7EA7F30A-5542-4FE9-B826-4D49AE1C0FAA@leafe.com

©2010 Ed Leafe