Bug #80282 .deb package for Ubuntu 14.04 fails to install python 2.7 mysql/connector
Submitted: 5 Feb 2016 11:54 Modified: 8 Feb 2016 6:52
Reporter: John Reynolds Email Updates:
Status: Not a Bug Impact on me:
None 
Category:Connector / Python Documentation Severity:S3 (Non-critical)
Version:2.1.3 OS:Ubuntu (14.04 64 bit)
Assigned to: CPU Architecture:Any

[5 Feb 2016 11:54] John Reynolds
Description:
Installing mysql-connector on a base Ubuntu 14.04 installation.

Get the file:

http://dev.mysql.com/get/Downloads/Connector-Python/mysql-connector-python-cext_2.1.3-1ubu...

Following install instructions:

dpkg -i mysql-connector-python-cext_2.1.3-1ubuntu14.04_amd64.deb

This apparently succeeds, and creates _mysql_connector.so in /usr/lib/python2.7/dist-packages

However, it doesn't create the mysql folder or any of the contents, so

import mysql.connector

fails.

How to repeat:
Follow the steps above in the description.
[5 Feb 2016 12:02] John Reynolds
Actually, I now realise I need the second .deb file for this, unlike in the windows installer which installs both.

Would be very helpful if the download page told you this.

It is mentioned at the top of https://dev.mysql.com/doc/connector-python/en/connector-python-installation-binary.html but not on the download page or in the OS specific parts.
[8 Feb 2016 6:52] MySQL Verification Team
Hello John,

Thank you for the report.
Glad to hear that you figured it out and installed both packages. 
I think the "MySQL Connector/Python Installation Instructions" at http://dev.mysql.com/downloads/connector/python/ has all the required details(will lead to binary installation details i.e Installing Connector/Python from a Binary Distribution ) and hence not required to repeat on other pages.

Thanks,
Umesh