On Wed, Mar 16, 2005 at 06:45:23PM +0800, cross wind wrote:
> AttributeError: 'module' object has no attribute 'connect'

Mine's installed from source.

$ python2.3
Python 2.3.4 (#1, Sep 27 2004, 11:38:44)
[GCC 2.95.4 20020320 [FreeBSD]] on freebsd4
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite
>>> cx = sqlite.connect('/tmp/1.db')
>>> cu = cx.cursor()
>>> cu.execute('create table t1 (a,b,c)')
>>> cu.execute('insert into t1 values (1,2,3)')
>>> cx.commit()
>>> cu.execute('select * from t1')
>>> print cu.fetchall()
[('1', '2', '3')]

> ### What seems to be wrong? I have installed:
> ### pysqlite-1.1.6.win32-py2.3.exe

Packaging error? 


-- 
Ng Pheng Siong <[EMAIL PROTECTED]> 

http://sandbox.rulemaker.net/ngps -+- M2Crypto, ZServerSSL for Zope, Blog
http://www.sqlcrypt.com -+- Database Engine with Transparent AES Encryption

Reply via email to