django-mysql-pymysql
django-mysql-pymysql copied to clipboard
mysql_pymysql/base.py can't find module SafeUnicode
File "/usr/local/lib/python3.3/site-packages/mysql_pymysql/base.py", line 29, in
Django version: Dev (Version 1.5 has same problem)
Modified the following...
SafeString ==> SafeBytes SafeUnicode ==> SafeText
File "/usr/local/Cellar/python3/3.3.1/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/PyMySQL3-0.5-py3.3.egg/pymysql/cursors.py", line 108, in execute ==> 96 if isinstance(query, bytes): 97 query = query.encode(charset)
then seems worked...
It seems that SafeUnicode
and SafeString
are removed completely in Django 1.5. The name changes are listed in the Porting to Python 3 documentation. A simple find-and-replace should be enough. @jloic's fork corrected this (and others); you might want to take a look.
thanks for the info.