mysql module not working without installing python modules, solved

527 views
Skip to first unread message

Jaakko Hyvätti

unread,
Aug 24, 2023, 11:27:47 AM8/24/23
to Salt-users
Hi,

Original symptom was:
'mysql' __virtual__ returned False: mysql.py: No python mysql client installed.
As this was not obvious to me, I'm sharing.. to get mysql features working, on Ubuntu LTS 22.04, after just running the bootstrap script, I needed to do:

/opt/saltstack/salt/bin/python3 -m pip install mysql

I did not first understand that the system python3-mysqldb or python3-pymysql packages are not used. Would this have been avoided with some option/other method in installing the minion? Should this be in documentation?

Regards,
Jaakko
Reply all
Reply to author
Forward
0 new messages