MySQL-python-1.2.1_p2, Python 2.5 and OS X Tiger

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • scum

    #1

    MySQL-python-1.2.1_p2, Python 2.5 and OS X Tiger

    How do you install MySQL-python-1.2.1_p2 on a PPC OS X 10.4 machine
    with MySQL 4.1?
    >>python setup.py build
    ....
    ....
    _mysql.c:2854: error: parse error before ')' token
    _mysql.c:2854: error: called object '&<erroneous-expression>' is not a
    function
    _mysql.c:2854: error: called object '&<erroneous-expression>' is not a
    function
    _mysql.c:2854: error: called object '*(&<erroneous-expression>)' is not
    a function
    lipo: can't figure out the architecture type of: /var/tmp//ccurx79n.out
    error: command 'gcc' failed with exit status 1

  • scum

    #2
    Re: MySQL-python-1.2.1_p2, Python 2.5 and OS X Tiger

    And I know about the precompiled binary... I'm just sick of getting
    this warning....

    Python 2.5 (r25:51918, Sep 19 2006, 08:49:13)
    [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
    Type "help", "copyright" , "credits" or "license" for more information.
    >>import _mysql
    __main__:1: RuntimeWarning: Python C API version mismatch for module
    _mysql: This Python has API version 1013, module _mysql has version
    1012.

    Comment

    Working...