"Mogens Melander" <[EMAIL PROTECTED]> writes:
> I wrote (copy/paste/edit) a python script to test MySQLdb, here goes...
>
> test.py
> --------
> import MySQLdb
>
> conn = MySQLdb.connect (host = "localhost",
> user = "<user>",
> passwd = "<password>",
> db = "<database>")
> cursor = conn.cursor ()
> cursor.execute ("SELECT VERSION()")
> row = cursor.fetchone ()
> print "server version:", row[0]
> cursor.close ()
> conn.close ()
> ---------
>
> When executed :
>
> # python test.py
> server version: 5.1.22-rc-log
>
> So far, so good. Any hints to where i can continue my search ?
The test that fails is even simpler.
python_script="
import imp
import sys
path = list()
modules = sys.argv.pop(1)
for module in modules.split('.'):
(file, pathname, info) = imp.find_module(module, sys.path + path)
sys.stdout.write(pathname + ' ')
path = list(( pathname, ))
"
python -c "$pyton_script" MySQLdb
Does this fail when run in a shell ?
Cheers,
--
+33 1 76 60 72 81 Loic Dachary mailto:[EMAIL PROTECTED]
http://dachary.org/loic/gpg.txt sip:[EMAIL PROTECTED]
Latitude: 48.86962325498033 Longitude: 2.3623046278953552
_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users