Configuring virtualenv to develop django on windows,

Configuring virtualenv for the first time when I try to install MySQL-python using

pip -E <<some virtual env>> install MySQL-python 

I get

 File "setup_windows.py", line 7, in get_config serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, options['registry_key']) WindowsError: [Error 2] The system cannot find the file specified 

I assume that virtualenv is stopping python from accessing the Windows registry somehow, I tried to run easy_install in virtualenv without any luck (I assume this does the same), copying through the site's package directory from my main python installation tool this yolk does not will see him

Does anyone know how I can either persuade this to work or copy the files needed to support mysql?

Thank,

+4
python windows django mysql virtualenv
Nov 10 '09 at 10:33
source share
1 answer

site.cfg in the same directory as setup.py was looking for the wrong regsitry key at the end of the file

 # The Windows registry key for MySQL. # This has to be set for Windows builds to work. # Only change this if you have a different version. registry_key = SOFTWARE\MySQL AB\MySQL Server 5.0 

I plunged into the registry and found HKEY_LOCAL_MACHINE \ SOFTWARE \ MySQL AB \ and saw that I had 5.1,

reports a different error, but this issue is resolved, at least;)

+5
Nov 10 '09 at
source share



All Articles