ImportError: No module named MySQLdb

2008-04-07 Thread syed mehdi
Hi Guys,
I have been working in python from some time now,
while writing a python script i used: import MySQLdb in my script to do some
database related operations.
When i tried to execute the same script on another system it gave me an
error as:
"ImportError: No module named MySQLdb"
though mysqldb was already installed on that system, and python 2.5.2 was
present on that machine.
i have tried uninstalling and installing of mysql again and again but to no
avail.

please help me resolve the issue.

Thanks & Regards
Syed
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: ImportError: No module named MySQLdb

2008-04-07 Thread syed mehdi
Thanks Gabriel, it worked after installing MySQL (database engine).
Regards
Syed

On Tue, Apr 8, 2008 at 10:23 AM, Gabriel Genellina <[EMAIL PROTECTED]>
wrote:

> En Tue, 08 Apr 2008 00:35:29 -0300, syed mehdi <[EMAIL PROTECTED]>
> escribió:
>
> > I have been working in python from some time now,
> > while writing a python script i used: import MySQLdb in my script to do
> > some
> > database related operations.
> > When i tried to execute the same script on another system it gave me an
> > error as:
> > "ImportError: No module named MySQLdb"
> > though mysqldb was already installed on that system, and python 2.5.2
> was
> > present on that machine.
> > i have tried uninstalling and installing of mysql again and again but to
> > no
> > avail.
>
> MySQL (the database engine) is not the same as MySQLdb (the Python
> package). You have to download and install it:
> http://mysql-python.sourceforge.net/
>
> --
> Gabriel Genellina
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list

argument to python cgi script

2008-04-09 Thread syed mehdi
Hi Guys,
If someone can help me in telling how can i pass arguments to python cgi
script then that will be good.
like if i want to pass "some argument" to my remote python script, by
calling something like:
http://localhost/cgi-bin/test.py?some\ argument.
What is the correct way of sending arguments in this way, and how can i
decode/receive them in test.py

Thanks & Regards
Syed
-- 
http://mail.python.org/mailman/listinfo/python-list

python server side scripting with apache2

2008-04-18 Thread syed mehdi
Hi Guys,
I want to do server side scripting in python for one of my applications. So
after installing apache2, python lib for apache2 (libapache2), and doing
some changes in default file in /etc/apache2/sites-available i was able to
execute python scripts in /var/www/ directory from client side.
but i want to place all of my python scripts in some other directory like
/home/username/myserver, so what changes i have to make in configuration
files at /etc/apache2/apache2.conf or some other place (like
/etc/apache2/sites-available/default), so that my server side scripts placed
in this folder (/home/username/myserver) gets executed from client side
using some url like http://machine-ip/home/username/myserver/abc.py.

Thanks & Regards
Syed
-- 
http://mail.python.org/mailman/listinfo/python-list