The py2.3-mysql4.0 binary build didn't work for me when connecting. It said my client didn't support the authentication requested by the server.
I gather the client is built into the binary build, so I thought I'd try and build from source using MySQL downloaded from the web.
On the client I've got Python 2.3.4-win, MySQL 4.1.14-win32 and MS Dev Studio 6. The server is 4.1.13-RHEL3.
When I run "python setup.py build" I get the error message:
Traceback (most recent call last):
File "setup.py", line 147, in ?
extra_compile_args=extra_compile_args,
NameError: name 'extra_compile_args' is not defined
So I open setup.py and sure enough, extra_compile_args is only set when doing a non-win32 build and I set it to None.
Then I get compilation and a link error. Cannot find mysqlclient_r. So I scan the installation directory of mysql and sure enough, it's not there.
Setting mysqlclient to mysqlclient doesn't help at first as the libraries are being looked for in libs and not lib/opt.
Now I have a sucessful link and I make the installer with "python setup.py bdist_wininst" and I'm happy.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The py2.3-mysql4.0 binary build didn't work for me when connecting. It said my client didn't support the authentication requested by the server.
I gather the client is built into the binary build, so I thought I'd try and build from source using MySQL downloaded from the web.
On the client I've got Python 2.3.4-win, MySQL 4.1.14-win32 and MS Dev Studio 6. The server is 4.1.13-RHEL3.
When I run "python setup.py build" I get the error message:
Traceback (most recent call last):
File "setup.py", line 147, in ?
extra_compile_args=extra_compile_args,
NameError: name 'extra_compile_args' is not defined
So I open setup.py and sure enough, extra_compile_args is only set when doing a non-win32 build and I set it to None.
Then I get compilation and a link error. Cannot find mysqlclient_r. So I scan the installation directory of mysql and sure enough, it's not there.
Setting mysqlclient to mysqlclient doesn't help at first as the libraries are being looked for in libs and not lib/opt.
Now I have a sucessful link and I make the installer with "python setup.py bdist_wininst" and I'm happy.
Issue 1305605 reflects this issue and has a patch.
Enjoy.
Craig
You should set extra_compile_args = []. Create a bug or patch for this issue so I can put it in 1.2.1.