Hi all,

I'm working on a research project, and I need to run a server (via
Twisted) and make calls to Sage as well as queries to a MySQL
database. Previously, I used SQLite as my database, but I need to move
up to something heftier. To avoid changing too much of my previous
code which uses the sqlite python module, I installed MySQLdb from
http://mysql-python.sourceforge.net/ . I can import the MySQLdb module
from python, and it appears to work. However, when I try running my
server code with "sage -python," it says "ImportError: No module named
MySQLdb."

What do I need to do to make newly installed python packages usable
when I try running python scripts with "sage -python"?

There's not much code to provide since it fails to import.

#!/usr/bin/env sage -python

import os, sys
import MySQLdb  #<-- that's it.


Thanks!
-Mike Wisely

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to