Django未定义符号:PyUnicode_AsUTF8 [英] Django undefined symbol: PyUnicode_AsUTF8
问题描述
django.core.exceptions.ImproperlyConfigured:加载MySQLdb模块时出错:
/usr/local/lib/python3.2/dist-packages/mysqlclient-1.3.6-py3.2-linux-i686.egg
/_mysql.cpython-32mu.so:未定义的符号:PyUnicode_AsUTF8
这个错误的原因。
提前感谢
它的一个错误在 mysqlclient
。在Python 3.2版本的 mysqlclient
中有一些兼容性问题。显然,Python 3.2中仍然不支持 mysqlclient
。
检查这个 django-developers
这个问题提出和讨论的google group线程。
https://groups.google.com/forum /#!topic / django-developers / n-TI8mBcegE
I am new to Python/Django. I have set up the environment needed to run Django project.When I'm trying to migrate an existing project , it shows up this error
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module:
/usr/local/lib/python3.2/dist-packages/mysqlclient-1.3.6-py3.2-linux-i686.egg
/_mysql.cpython-32mu.so: undefined symbol: PyUnicode_AsUTF8
Please can anyone figure out the reason for this error. Thanks in advance.
Its a bug in mysqlclient
. There are some compatibility issues in mysqlclient
with Python's 3.2 version. Apparently, mysqlclient
is still not supported in Python 3.2.
Check this django-developers
google group thread where this issue was raised and discussed.
https://groups.google.com/forum/#!topic/django-developers/n-TI8mBcegE
这篇关于Django未定义符号:PyUnicode_AsUTF8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!