Python论坛  - 讨论区

标题:[python-chinese] pysqlite出错

2007年06月29日 星期五 22:23

马踏飞燕 honeyday.mj在gmail.com
星期五 六月 29 22:23:10 HKT 2007

去下载一个pysqlite对应python2.4版的exe,然后安装一下就好了。
至于sqlite3.exe这个文件根pysqlite的使用没有直接的关系。pysqlite已经用pyd的方式实现了c语言部分的sqlite的功能。

在 07-6-29,kergee!z<kergee在gmail.com> 写道:
> 不过要用python2.4怎么办呢?有些应用只能在python2.4上运行
>
> 在07-6-29,baozhu <freeandnil在gmail.com> 写道:
> > PYTHON2.5版本带SQLITE3了吧.不需要另安装
> >
> >
> > 在07-6-29,kergee!z <kergee在gmail.com> 写道:
> >
> > > 请问安装哪一个呢,怎么安装呢?我把pysqlite3.exe拷贝到c:\windows下不管用。
> > >
> > >
> > > 在07-6-29,Ben Luo <benluo在gmail.com> 写道:
> > > >
> > > > 你有没有安装 Sqlite ?
> > > >
> > > >
> > > >
> > > > On 6/28/07, kergee!z < kergee在gmail.com > wrote:
> > > > >
> > > > >
> > > > > 我安装了python 2.4和相应的pysqlite,运行以下代码,出现错误,请问各位如何解决啊?
> > > > > >>> from pysqlite2 import test
> > > > > >>> test.test()
> > > > >
> > > > >
> > > > >
> ................................................................................................................................................................................E
> > > > >
> ======================================================================
> > > > > ERROR: CheckUsefulErrorMessage
> (pysqlite2.test.regression.RegressionTests)
> > > > >
> ----------------------------------------------------------------------
> > > > > Traceback (most recent call last):
> > > > >   File
> "C:\Python24\Lib\site-packages\pysqlite2\test\regression.py",
> line 105, in CheckUsefulErrorMessage
> > > > >     if e.message != "cannot start a transaction within a
> transaction":
> > > > > AttributeError: OperationalError instance has no attribute 'message'
> > > > >
> > > > >
> ----------------------------------------------------------------------
> > > > > Ran 177 tests in 4.031s
> > > > >
> > > > > FAILED (errors=1)
> > > > > _______________________________________________
> > > > > python-chinese
> > > > > Post: send python-chinese在lists.python.cn
> > > > > Subscribe: send subscribe to
> python-chinese-request在lists.python.cn
> > > > > Unsubscribe: send unsubscribe to
> python-chinese-request在lists.python.cn
> > > > > Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
> > > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > python-chinese
> > > > Post: send python-chinese在lists.python.cn
> > > > Subscribe: send subscribe to
> python-chinese-request在lists.python.cn
> > > > Unsubscribe: send unsubscribe to
> python-chinese-request在lists.python.cn
> > > > Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
> > > >
> > >
> > >
> > > _______________________________________________
> > > python-chinese
> > > Post: send python-chinese在lists.python.cn
> > > Subscribe: send subscribe to
> python-chinese-request在lists.python.cn
> > > Unsubscribe: send unsubscribe to
> python-chinese-request在lists.python.cn
> > > Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
> > >
> >
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese在lists.python.cn
> > Subscribe: send subscribe to
> python-chinese-request在lists.python.cn
> > Unsubscribe: send unsubscribe to
> python-chinese-request在lists.python.cn
> > Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
> >
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to
> python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to
> python-chinese-request在lists.python.cn
> Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号