Bug #86105 | mysql-connector-python fails to work with django 1.11 | ||
---|---|---|---|
Submitted: | 27 Apr 2017 9:11 | Modified: | 28 Jul 2017 2:18 |
Reporter: | Michael Martin | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / Python | Severity: | S2 (Serious) |
Version: | 2.1.6 | OS: | Ubuntu |
Assigned to: | CPU Architecture: | Any | |
Tags: | connector, Django, python |
[27 Apr 2017 9:11]
Michael Martin
[27 Apr 2017 9:56]
Chiranjeevi Battula
Hello Michael Martin, Thank you for the bug report. Verified as described with the help of dev's. Thanks, Chiranjeevi.
[27 Apr 2017 10:07]
Michael Martin
I mistype a command in my steps, I user pip3 to install django.
[28 Jul 2017 2:18]
Paul DuBois
Posted by developer: Fixed in 2.1.7. Connector/Python is now compatible with Django 1.11.
[17 Aug 2017 5:01]
Brad Smith
When is version 2.1.7 going to be available? Here's what I get when I try to get 2.1.7: brad$ pip install mysql-connector==2.1.7 Collecting mysql-connector==2.1.7 Could not find a version that satisfies the requirement mysql-connector==2.1.7 (from versions: 2.1.3, 2.1.4, 2.1.6, 2.2.3) No matching distribution found for mysql-connector==2.1.7 ** and 2.2.3 does not install at all. I am using Python version 3.6.2.
[2 Dec 2017 8:38]
Saurabh Mishra
I had the same problem and was using exact same configuration. So. First I was trying mysqlclient but it didn't work so I installed mysql-connector==2.1.6 and surprisingly it was also not working with Django1.11 so I did some research on google and found the solution. If >>> you are facebook user login and visit https://www.facebook.com/groups/python.django/permalink/1657026527681920/ Else >>> 1) activate your virtualenv. 2) pip3 install mysql-connector==2.1.6 3) visit: https://github.com/mysql/mysql-connector-python/tree/master/lib/mysql/connector/django ...and download base.py for django1.11. 4) Now, go to your env's lib/python(version)/site-packages/mysql/connector/django and replace base.py with downloaded base.py downloaded previously. Enjoy Django!