When I run a python script that I set up on WebJobs in Azure - I get the following error:
ImportError: No module named MySQLdb
job failed due to exit code 1
Have you tried this?
If you are using OSX and the default Python 2.7 install your packages installed with pip will be in /usr/local/lib/python2.7/site-packages, create a folder called site-packages in the root of your python job and copy any packages you need for your job into it.
Next you need to modify your run.py or any other file which requires access to the package files. At the top of the file add….
import sys sys.path.append("site-packages")