【问题标题】:Compiling Mysqldb for jython 2.5 on Solaris在 Solaris 上为 jython 2.5 编译 Mysqldb
【发布时间】:2010-02-09 23:51:29
【问题描述】:

我在 Windows 上使用过 python2.6 + MySQL,并且有可用的二进制文件。

我想让整个事情都在Solaris上工作

因此从here 获得了 Mysql-Python 包

我必须安装 setuptools,这已完成。 爆出MySQL-python-1.2.3c1

当我这 /jython2.5.1/jython setup.py build

错误 -

`File "/opt/somepath/MySQL-python-1.2.3c1/setup_windows.py", line 2, in get_config
import os, sys, _winreg
ImportError: No module named _winreg`

我不明白为什么它需要 windows.py。要么我使用了不正确的代码,要么我没有传递正确的标志。或者我要去别的地方切线 8-)

抱歉,这是我第一次在 Solaris 上编译类似驱动程序的东西。 任何建议表示赞赏。

Jython : 2.5.1
Solaris : 5.9
MySQL - 5.1.42

【问题讨论】:

    标签: python mysql solaris driver jython


    【解决方案1】:

    您应该使用zxJDBC 和 JDBC 而不是外部 DB-API 适配器。

    【讨论】:

    • 谢谢。让我检查一下。所以我不会在另一个问题中重复这一点。如果需要一个用于 mysql 的普通 python 驱动程序与 django 一起使用,我应该使用什么?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-17
    • 2017-06-17
    • 1970-01-01
    • 2018-07-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多