For the future, virtualenv, depending on how you set it up, creates a
sandboxed environment that will only have access to packages installed
directly to the particular virtual environment which is very nice if
you need to run multiple versions of packages (like one django 1.1 and
one django 1.2).

On Nov 10, 7:49 pm, Malcolm MacKinnon <[email protected]> wrote:
> 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 <[email protected]> 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 <[email protected]> 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 [email protected].
> > > To unsubscribe from this group, send email to
> > [email protected]<satchmo-users%[email protected]>
> > .
> > > 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 [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<satchmo-users%[email protected]>
> > .
> > 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to