Menu

Windows Connect and Build Issues Fixed

Help
2005-09-26
2012-09-19
  • Craig Emery

    Craig Emery - 2005-09-26

    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.

     
    • Craig Emery

      Craig Emery - 2005-09-27

      Issue 1305605 reflects this issue and has a patch.

      Enjoy.

      Craig

       
    • Andy Dustman

      Andy Dustman - 2005-09-26

      You should set extra_compile_args = []. Create a bug or patch for this issue so I can put it in 1.2.1.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.