Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#18970 closed Bug (fixed)

Document that Django doesn't work with MySQL under Python 3

Reported by: rajeevramdas@… Owned by: nobody
Component: Python 3 Version: dev
Severity: Release blocker Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I am trying to use the Django with experimental Python 3 support on Linux.
I have installed MySqldb for connectivity with Mysql. (I have used the MySqldb with the python 3 support, from https://github.com/davispuh/MySQL-for-Python-3)
When i run python manage.py syncdb it gives me the following error.

python manage.py syncdb
Creating tables ...
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
Creating table django_content_type
Creating table django_session
Creating table django_site
DatabaseError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%s AND django_content_type.app_label = %s )' at line 1")

Change History (6)

comment:1 by Claude Paroz, 12 years ago

Component: UncategorizedPython 3
Triage Stage: UnreviewedAccepted
Type: UncategorizedNew feature

Yes, it is known that the MySQL support for Python 3 is not yet ready in Django, mainly because the official MySqldb has not migrated to Python 3.

Let's keep this as a TODO reminder or as a documentation ticket to specify that Django-Python3-MySQL is not supported yet if we don't make it before 1.5 release.

comment:2 by Aymeric Augustin, 12 years ago

Severity: NormalRelease blocker
Summary: Django Python 3 experimental support, python manage.py syncdb, 1064 error.Document that Django doesn't work with MySQL under Python 3
Type: New featureBug
Version: 1.4master

We're about to release 1.5.

We should say that MySQL is unsupported in the "Python 3 support" paragraph of the release notes.

Does anyone know if Oracle works? cx_Oracle supports on Python 3, but I don't know if we ever ran the test suite with Oracle and Python 3.

comment:3 by Claude Paroz, 12 years ago

Another important current limitation to document is PIL (no ImageField on Python 3). Our best hope for a Python 3 port is with https://github.com/python-imaging/Pillow.

comment:4 by Claude Paroz, 12 years ago

... and Selenium (LiveServerTestCase), http://code.google.com/p/selenium/issues/detail?id=2139

comment:5 by Aymeric Augustin <aymeric.augustin@…>, 12 years ago

Resolution: fixed
Status: newclosed

In 37b3fd27ae63001cb3258f7d147aeb24712d00a2:

Fixed #18970 -- Documented know limitations under Python 3.

comment:6 by Aymeric Augustin <aymeric.augustin@…>, 12 years ago

In be4259004fd21ff5c78f02e9093a0786780e1c21:

[1.5.x] Fixed #18970 -- Documented know limitations under Python 3.

Backport of 37b3fd2 from master.

Note: See TracTickets for help on using tickets.
Back to Top