Skip to content

mysql_pymysql/base.py can't find module SafeUnicode #1

@zuxfoucault

Description

@zuxfoucault

File "/usr/local/lib/python3.3/site-packages/mysql_pymysql/base.py", line 29, in
from django.utils.safestring import SafeString, SafeUnicode
ImportError: cannot import name SafeUnicode

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions