Bug #71442 mysql-utilities fail to install with ./setup.py --user
Submitted: 21 Jan 2014 11:28 Modified: 12 Mar 2014 2:59
Reporter: Jan Kneschke Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Fabric Severity:S3 (Non-critical)
Version:1.4.1 OS:Any
Assigned to: CPU Architecture:Any

[21 Jan 2014 11:28] Jan Kneschke
Description:
MySQL Utilities tries to install fabric.cfg to /etc/mysql/ even if the user requested "install into my home-dir".

How to repeat:
$ tar xvzf mysql-utilities-1.4.1.tar.gz
$ cd mysql-utilities-1.4.1
$ python ./setup.py install --user
...
changing mode of /home/jan/.local/bin/mysqlserverinfo to 755
running install_data
copying data/fabric.cfg -> /etc/mysql
error: /etc/mysql/fabric.cfg: Permission denied

Suggested fix:
honor the --home=... and --user options to install the place the user wants.
[21 Jan 2014 11:30] Mats Kindahl
Verified as described. Thank you for the bug report!
[21 Jan 2014 11:46] Jan Kneschke
For completeness:

mysqlfabric itself looks in $HOME/.local/etc/mysql/ as expected.

jan@jan-t420:~/.local/bin$ ./mysqlfabric group create group_id-1
Error: [Errno 2] No such file or directory: '/home/jan/.local/etc/mysql/fabric.cfg
[12 Mar 2014 2:59] Philip Olson
Fixed as of the upcoming MySQL Utilities 1.4.2 release, and here's the changelog entry:

The Installer ("setup.py") was not able to install the fabric
configuration file ("fabric.cfg") to the user's home directory even though
the "--user" or "--home" options were used. It would instead attempt to
install it in "/etc/mysql/".

Thank you for the bug report.