Bug #74339 Fabric should check for supported connpy version
Submitted: 12 Oct 2014 14:20 Modified: 17 Oct 2014 2:39
Reporter: Daniël van Eeden (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Fabric Severity:S3 (Non-critical)
Version:1.5.2 OS:Any
Assigned to: CPU Architecture:Any

[12 Oct 2014 14:20] Daniël van Eeden
Description:
With Fabric 1.5.2 and Connector/Python 1.2.3 running mysqlfabric results in an ImportError.

$ mysqlfabric 
Traceback (most recent call last):
  File "/usr/local/bin/mysqlfabric", line 27, in <module>
    from mysql.fabric.services import (
  File "/usr/local/lib/python2.7/dist-packages/mysql/fabric/services/__init__.py", line 27, in <module>
    import mysql.fabric.protocols.xmlrpc as _protocol
  File "/usr/local/lib/python2.7/dist-packages/mysql/fabric/protocols/xmlrpc.py", line 48, in <module>
    import mysql.fabric.persistence as _persistence
  File "/usr/local/lib/python2.7/dist-packages/mysql/fabric/persistence.py", line 54, in <module>
    import mysql.fabric.server_utils as _server_utils
  File "/usr/local/lib/python2.7/dist-packages/mysql/fabric/server_utils.py", line 26, in <module>
    from mysql.connector.cursor import (
ImportError: cannot import name MySQLCursorNamedTuple

To install Fabric you need to install Utilities...
http://dev.mysql.com/doc/mysql-utilities/1.5/en/fabric-install.html

And for Utilities Connector/Python > 1.0.8 is needed.
http://dev.mysql.com/doc/mysql-utilities/1.5/en/mysql-utils-install-prerequisites.html

So it looks like my Connector/Python should be supported...

After upgrading to Connector/Python 2.0.1 everything worked fine.

How to repeat:
Try to run Fabric 1.5.2 with Connector/Python 1.2.3

Suggested fix:
- Document prerequisites for fabric if not identical to Utilities
- Catch the import error and return a helpfull error message
- Check mysql.connector.version.VERSION for a suitable version.
[13 Oct 2014 20:20] Mats Kindahl
Hi Daniël,

Thanks for the bug report. Verified as described.
[17 Oct 2014 2:39] Philip Olson
Posted by developer:
 
Fixed as of the upcoming MySQL Utilities 1.5.3 release, and here's the changelog entry:

The MySQL Fabric installer failed to properly check for the required
Connector/Python version.

Thank you for the bug report.