Bug #78425 Fail to install mysql-connector-python if python2.6 is missing
Submitted: 14 Sep 2015 3:09 Modified: 14 Sep 2015 6:52
Reporter: Aleksandr Kuzminsky Email Updates:
Status: Verified Impact on me:
None 
Category:Connector / Python Severity:S3 (Non-critical)
Version:2.0.4-1debian7.6 OS:Debian (7)
Assigned to: CPU Architecture:Any

[14 Sep 2015 3:09] Aleksandr Kuzminsky
Description:
Debian 7 comes with python2.7 by default (See https://wiki.debian.org/Python).
python2.6 comes as a separate package and may not be installed.

On a system with python2.7 but w/o python2.6 mysql-connector-python can not be installed.

# apt-get install mysql-connector-python
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  mysql-connector-python
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 111 kB of archives.
After this operation, 570 kB of additional disk space will be used.
Get:1 http://repo.mysql.com/apt/debian/ wheezy/connector-python-2.0 mysql-connector-python all 2.0.4-1debian7.6 [111 kB]
Fetched 111 kB in 2s (51.0 kB/s)
Selecting previously unselected package mysql-connector-python.
(Reading database ... 29651 files and directories currently installed.)
Unpacking mysql-connector-python (from .../mysql-connector-python_2.0.4-1debian7.6_all.deb) ...
Setting up mysql-connector-python (2.0.4-1debian7.6) ...
/var/lib/dpkg/info/mysql-connector-python.postinst: 1: /var/lib/dpkg/info/mysql-connector-python.postinst: python2.6: not found
dpkg: error processing mysql-connector-python (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 mysql-connector-python
E: Sub-process /usr/bin/dpkg returned an error code (1)

How to repeat:
On Debian 7 with python2.7 and w/o python2.6 run apt-get install mysql-connector-python

Suggested fix:
Fix postinst/postrm/etc scripts to not use python2.6 if it's not installed.

Or add dependency on python2.6
[14 Sep 2015 6:52] Umesh Shastry
Hello Aleksandr Kuzminsky,

Thank you for the report.

Thanks,
Umesh