Code

Ticket #5512: 5512.diff

File 5512.diff, 907 bytes (added by mboersma, 7 years ago)

Documents the "ImmutableSet not found" gotcha for MySQLdb

Line 
1Index: docs/databases.txt
2===================================================================
3--- docs/databases.txt  (revision 6430)
4+++ docs/databases.txt  (working copy)
5@@ -76,6 +76,12 @@
6 If you are trying to use an older version of MySQL and the ``mysql_old``
7 backend, then 1.2.0 *might* work for you.
8 
9+If you see ``ImportError: cannot import name ImmutableSet``, your MySQLdb
10+installation may contain an outdated ``sets.py`` file that conflicts with
11+the built-in module of the same name from Python 2.4 or later.  To fix this,
12+verify that you have MySQLdb version 1.2.1p2 or newer, then delete any
13+``sets.py`` file in the MySQLdb directory that was left by an earlier version.
14+
15 .. _MySQLdb: http://sourceforge.net/projects/mysql-python
16 
17 Creating your database
18@@ -162,4 +168,3 @@
19       AlterModelOnSyncDB_.
20 
21 .. _AlterModelOnSyncDB: http://code.djangoproject.com/wiki/AlterModelOnSyncDB
22-