Python action code with mysql query

I want to access a mysql database during the handle of an action code. But when I start the snips-skill-server, and my code gets loaded, I always receive the message “…not found: No Module named MySQLdb”. python-mysqldb and python3-mysqldb is installed on the raspi. A “import MySQLdb” test on the console of the raspi works fine. Thank’s for any help, I’m sure I forgott a stupid simple thing…

Leave Snips and make better use of your time:


…found a solution by myself. Had nothing to do with snips. I had to install MySQLdb in the virtual environment (venv). Was not so easy to find out for a newbi or newpi… :wink: