Django未定义符号:PyUnicode_AsUTF8 [英] Django undefined symbol: PyUnicode_AsUTF8

查看:427
本文介绍了Django未定义符号:PyUnicode_AsUTF8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Python / Django的新手。我已经设置了运行Django项目所需的环境。当我尝试迁移一个现有的项目时,它会显示这个错误

  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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆