Izantal,

Thanks for the help. No, I couldn't import it from the virtualenv shell, so
I downloaded MySQLdb, http://sourceforge.net/projects/mysql-python/, into my
ve directory, and using the virtualenv shell, in the ve  directory, I
installed it as follows:

(satchmo-tip)malc...@umalc:~/ve$ gunzip MySQL-python-1.2.2.tar.gz
(satchmo-tip)malc...@umalc:~/ve$ tar -xvf MySQL-python-1.2.2.tar
(satchmo-tip)malc...@umalc:~/ve$ cd MySQL-python-1.2.2
(satchmo-tip)malc...@umalc:~/ve$ python setup.py build
(satchmo-tip)malc...@umalc:~/ve$ python setup.py install

I can now import it using my virtualenv shell.


On Wed, Nov 10, 2010 at 4:20 PM, Laszlo Antal <lzan...@gmail.com> wrote:

> Hi,
>
> Did you try to import it from the virtualenv shell?
> It seems like it is not available under your virtualenv.
>
> lzantal
>
> On Nov 10, 2010, at 15:59, Mac <mmack3...@gmail.com> wrote:
>
> > In a virtual environment, as discussed here,
> > http://www.satchmoproject.com/blog/2010/aug/01/satchmo-virtualenv/,
> > I'm getting an error message whenever I try run manage.py syncdb to
> > set up a mysql database:
> >
> >
> > raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
> > django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb
> > module: No module named MySQLdb
> >
> > I've installed MySQLdb and can import it with no problems. Is there a
> > trick to using it in a virtual environment?
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Satchmo users" group.
> > To post to this group, send email to satchmo-us...@googlegroups.com.
> > To unsubscribe from this group, send email to
> satchmo-users+unsubscr...@googlegroups.com<satchmo-users%2bunsubscr...@googlegroups.com>
> .
> > For more options, visit this group at
> http://groups.google.com/group/satchmo-users?hl=en.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Satchmo users" group.
> To post to this group, send email to satchmo-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> satchmo-users+unsubscr...@googlegroups.com<satchmo-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/satchmo-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to satchmo-us...@googlegroups.com.
To unsubscribe from this group, send email to 
satchmo-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to