开发者

Compiling Mysqldb for jython 2.5 on Solaris

开发者 https://www.devze.com 2022-12-19 13:18 出处:网络
I have used python2.6 + MySQL on Windows and there are binaries available. I wanted to get the whole thing working on Solaris

I have used python2.6 + MySQL on Windows and there are binaries available.

I wanted to get the whole thing working on Solaris

Hence got the Mysql-Python package from here

I had to get the setuptools installed which is done. Exploded the MySQL-python-1.2.3c1

When I this /jython2.5.1/jython setup.py build

Error -

`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`

I don't understand why it would require windows.py. Either I'm using the incorrect code or I'm not passing the correct flags. Or I'm going on a tangent somewhere else 8-)

开发者_如何转开发

Sorry, this is the first time I'm compiling something like a driver on Solaris. Any suggestions are appreciated.

Jython : 2.5.1

Solaris : 5.9

MySQL - 5.1.42


You should be using zxJDBC and JDBC instead of an external DB-API adapter.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号