test_LONG, test_TEXT failing with UnicodeEncodeError on utf8 database, table

Help
naref
2013-03-19
2013-03-20
  • naref
    naref
    2013-03-19

    Hello,

    My installation is failing a test but I don't know how to resolve it.

    Python-2.7.3
    MySQL-python-1.2.4b4
    Fedora Core 16 x86_64
    mysql-5.0.67-linux-x86_64-glibc23
    mysql-5.5.28-linux2.6-x86_64
    user "root"
    Database "test" DEFAULT_CHARACTER_SET_NAME=utf8, DEFAULT_COLLATION_NAME=utf8

    Using either of these databases, (5.0.67, 5.5.28), when running test_LONG and test_TEXT called from test_MySQLdb_capabilities I get the following error for both tests:

    UnicodeEncodeError: 'latin-1' codec can't encode characters in position 256-16383: ordinal not in range(256)

    These are the only two tests that setup.py seems to fail. However, the entire test process also does not exit cleanly:

    Error in atexit._run_exitfuncs:
    Traceback (most recent call last):
    File "/opt/python-2.7.3/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, kargs)
    File "/opt/python-2.7.3/lib/python2.7/multiprocessing/util.py", line 284, in _exit_function
    info('process shutting down')
    TypeError: 'NoneType' object is not callable
    Error in sys.exitfunc:
    Traceback (most recent call last):
    File "/opt/python-2.7.3/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs,
    kargs)
    File "/opt/python-2.7.3/lib/python2.7/multiprocessing/util.py", line 284, in _exit_function
    info('process shutting down')
    TypeError: 'NoneType' object is not callable

    Thank you for any advice you can provide.

     
  • Andy Dustman
    Andy Dustman
    2013-03-19

    Use 1.2.4 and not 1.2.4b4

     
  • naref
    naref
    2013-03-19

    Thank you for your fast response.
    The 1.2.4b4 version seems to be the default version linked for this project. Under Files/mysql-python I can access 1.2.3 and prior but I don't see a link for accessing any other revisions of the 1.2.4 release history.
    Under Files/mysql-python-test I can access 1.2.4b4, 1.2.4b3, and 1.2.4b2.

    Can you provide a link for the 1.2.4 release?