1. Guillermo López
  2. virtualenvwrapper-powershell
Issue #8 new

Changed Registry layout under Windows 7 64bit

robi_wan
created an issue

I installed Python 2.7.3 32bit in my Windows 7 64bit system. I did a fresh install of virtualenvwrapper-powershell in my system. I tried to import the virtualenvwrapper module to powershell and got an error:

{{{ PS C:\Users\user> import-module virtualenvwrapper Set-ItemProperty : Der Pfad "HKCU:\Software\Python\PythonCore\2.7\InstallPath" kann nicht gefunden werden, da er nicht vorhanden ist. Bei C:\Users\user\Documents\WindowsPowerShell\Modules\virtualenvwrapper\win.psm1:127 Zeichen:21 + set-itemproperty <<<< -path "HKCU:/Software/Python/PythonCore/$pyVer/InstallPath" -name "(default)" -value $pyBa se + CategoryInfo : ObjectNotFound: (HKCU:\Software...2.7\InstallPath:String) [Set-ItemProperty], ItemNotFo undException + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetItemPropertyCommand

Set-ItemProperty : Der Pfad "HKCU:\Software\Python\PythonCore\2.7\PythonPath" kann nicht gefunden werden, da er nicht v orhanden ist. Bei C:\Users\user\Documents\WindowsPowerShell\Modules\virtualenvwrapper\win.psm1:128 Zeichen:21 + set-itemproperty <<<< -path "HKCU:/Software/Python/PythonCore/$pyVer/PythonPath" -name "(default)" -value "$pyBa se\Lib;$pyBase\DLLs;$pyBase\Lib\lib-tk" + CategoryInfo : ObjectNotFound: (HKCU:\Software...\2.7\PythonPath:String) [Set-ItemProperty], ItemNotFo undException + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetItemPropertyCommand

}}}

Under 64bit systems there is a compatibility layer for 32bit applications - the registry keys are placed in other tree:

HKCU\Software\Wow6432Node\Python\PythonCore\2.7\InstallPath HKLM\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\InstallPath

(see http://code.google.com/p/spyderlib/issues/detail?id=405 or http://selfsolved.com/problems/setuptools-06c11-fails-to-instal)

On my system the key is under HKLM\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\InstallPath.

But nevertheless virtualenvwrapper-powershell seems to work...

PowerShell v2.0 virtualenvwrapper-powershell v12.7.8

Comments (2)

  1. Alexander Ruf

    I guess this is the same problem like #4. The Python 3.3 installer creates these regisitry entries while the Python 2.7 installer does not. If you create them manually it should work!

  2. Log in to comment