MySQLdb issue

MySQLdb issue

Postby mjenn200 » Mon Aug 12, 2013 1:21 pm

I have a python script (I did not write it), but there are two ways this script can be launched:

1. command line
2. from pressing a button on a custom web app

If I run from the command line, all fine.

If I launch the script from the app, I can see from the logs that python code is executing, but this time it cannot find the module 'MySQLdb'.

Why can this module be found when running from the command line, but not the webapp?

All help really appriciated!
Posts: 1
Joined: Mon Aug 12, 2013 1:17 pm

Re: MySQLdb issue

Postby micseydel » Mon Aug 12, 2013 4:28 pm

Answering this question correctly would require looking at your logs, configuration and/or code.
Join the #python-forum IRC channel on for off-topic chat!

Please prefer not to PM members. The point of the forum is so that anyone can benefit. We don't want to help you over PMs/emails/Skype chats that others can't benefit from :)
User avatar
Posts: 2918
Joined: Tue Feb 12, 2013 2:18 am
Location: Mountain View, CA

Return to Web Development

Who is online

Users browsing this forum: No registered users and 1 guest