Lukasz Szybalski wrote: > > > I have mysqldb installed in the system wide install how do I tell > virtualenv to use it? > I don't see a need to install it in virtualenv again so I guess I just > have to givea right path? How, and in which file? > > Thanks, > Lucas > > > File > "/usr/local/pythonenv/BASELINE/lib/python2.4/site-packages/SQL Alchemy-0.4.6dev_r4675-py2.4.egg/sqlalchemy/databases/mysql.py", > line 1430, in dbapi > import MySQLdb as mysql > ImportError: No module named MySQLdb >
When you create the virtualenv, there is a '--no-site-packages' switch which determines whether the system-wide site-packages directory will be on the search path or not. If you didn't provide this switch, then MySQLdb should be visible. (Documented at http://pypi.python.org/pypi/virtualenv#the-no-site-packages-option) From your python prompt, type "import sys; print '\n'.join(sys.path)" to see your search path. If the directory containing your MySQLdb installation is not in there, you have a problem. Hope that helps, Simon --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---