Python论坛  - 讨论区

标题:[python-chinese] Zope 里面安装O2DB,事关python interface to mySQL

2006年03月13日 星期一 11:40

Sonic pan sonicpan at gmail.com
Mon Mar 13 11:40:40 HKT 2006

我在ZOPE里面安装一个O2DB,但是怎么也安装不上。
现象:O2DB Error information
--------------------------------------------------------------------------------------
 Import Traceback

Traceback (most recent call last):
  File "D:\Program Files\Plone\Zope\lib\python\OFS\Application.py",
line 673, in import_product
    product=__import__(pname, global_dict, global_dict, silly)
  File "D:\Program
Files\Plone\Zope\lib\python\Products\O2DB\__init__.py", line 19, in ?
    from zopeAssists import O2DBFolder, manage_addO2DBFolder,
manage_addO2DBFolderForm
  File "D:\Program
Files\Plone\Zope\lib\python\Products\O2DB\zopeAssists.py", line 30, in
?
    from o2dbConnBroker import *
  File "D:\Program
Files\Plone\Zope\lib\python\Products\O2DB\o2dbConnBroker.py", line 3,
in ?
    import _mysql, CompatMysqldbImportError: No module named _mysql
-----------------------------------------------------------------------------------

安装python interface to
mySQL的时候:URL:\Zope\lib\python\products\MySQLpython>setup.py --install

You need to set the environment variable mysqlroot!
This should be the path to your MySQL installation.
Probably C:\Program Files\MySQL 4.1\ or something like that.

-----------------------------------------------------------------------------------



怎么解决这个问题。。。

还有O2DB是不是只支持MySQL。。。如果改换成MSSQL或者Postgres那些要注意。

谢谢!!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060313/9973c69c/attachment.htm

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号