Check to see if Python is correctly identified in your PATH.
/Noelle
On Sat, Jun 5, 2010 at 3:44 PM, SpeedGun <bjr.u...@gmail.com> wrote:
> I forgot to mention that I tried running jetpack on a Windows 7 PC and
> had the same problems as before, maybe its user error on my part?
>
> --
> You received this message because you are subscribed to the Google Groups "mozilla-labs-jetpack" group.
> To post to this group, send email to mozilla-la...@googlegroups.com.
> To unsubscribe from this group, send email to mozilla-labs-jet...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mozilla-labs-jetpack?hl=en.
>
>
Attaching a patch for bin\activate.bat, and appending the updated
version, too. Hope this helps.
On 2010-06-05 15:44, SpeedGun wrote:
> I forgot to mention that I tried running jetpack on a Windows 7 PC and
> had the same problems as before, maybe its user error on my part?
@echo off
set VIRTUAL_ENV=%CD%
set CUDDLEFISH_ROOT=%VIRTUAL_ENV%
SET WINCURVERKEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion
REG QUERY "%WINCURVERKEY%" /v "ProgramFilesDir (x86)" >nul 2>nul
if %ERRORLEVEL% EQU 0 (
SET WIN64=1
) else (
SET WIN64=0
)
if "%WIN64%" EQU "1" (
SET PYTHONKEY=HKLM\SOFTWARE\Wow6432Node\Python\PythonCore
) else (
SET PYTHONKEY=HKLM\SOFTWARE\Python\PythonCore
)
SET PYTHONVERSION=
SET PYTHONINSTALL=
if "%PYTHONVERSION%" NEQ "" GOTO PYTHONVERSION_set
REG QUERY "%PYTHONKEY%\2.6\InstallPath" /ve >nul 2>nul
if %ERRORLEVEL% EQU 0 (
SET PYTHONVERSION=2.6
)
if "%PYTHONVERSION%" NEQ "" GOTO PYTHONVERSION_set
REG QUERY "%PYTHONKEY%\2.5\InstallPath" /ve >nul 2>nul
if %ERRORLEVEL% EQU 0 (
SET PYTHONVERSION=2.5
)
if "%PYTHONVERSION%" NEQ "" GOTO PYTHONVERSION_set
REG QUERY "%PYTHONKEY%\2.4\InstallPath" /ve >nul 2>nul
if %ERRORLEVEL% EQU 0 (
SET PYTHONVERSION=2.4
)
:PYTHONVERSION_set
if "%PYTHONVERSION%" NEQ "" (
FOR /F "tokens=3* skip=1 delims= " %%A IN ('REG QUERY
"%PYTHONKEY%\%PYTHONVERSION%\InstallPath" /ve') DO SET "PYTHONINSTALL=%%A"
)
if "%PYTHONINSTALL%" NEQ "" (
SET PATH=%PATH%;%PYTHONINSTALL%
)
if defined _OLD_PYTHONPATH (
set PYTHONPATH=%_OLD_PYTHONPATH%
)
if not defined PYTHONPATH (
set PYTHONPATH=;
)
set _OLD_PYTHONPATH=%PYTHONPATH%
set PYTHONPATH=%VIRTUAL_ENV%\python-lib;%PYTHONPATH%
if not defined PROMPT (
set PROMPT=$P$G
)
if defined _OLD_VIRTUAL_PROMPT (
set PROMPT=%_OLD_VIRTUAL_PROMPT%
)
set _OLD_VIRTUAL_PROMPT=%PROMPT%
set PROMPT=(%VIRTUAL_ENV%) %PROMPT%
if defined _OLD_VIRTUAL_PATH (
set PATH=%_OLD_VIRTUAL_PATH%
goto SKIPPATH
)
set _OLD_VIRTUAL_PATH=%PATH%
:SKIPPATH
set PATH=%VIRTUAL_ENV%\bin;%PATH%
echo Welcome to the Jetpack SDK. Run 'cfx docs' for assistance.
:END
--
cc | pseudonymous |<http://carlclark.mp/>
If you can find PATH in the Environment Variables section; you may
need to edit/add "C:\Python32" (or whatever the path to the directory
containing "python.exe")... Does that makes sense?
But it seems that the usual Python installer doesn't actually set the
Python path by default, so this shouldn't be necessary; the message I
sent earlier about fixing bin\activate.bat should be all you really
need. (I don't have Python on my path, but cfx docs works just fine all
the same.)
--
cc | pseudonymous |<http://carlclark.mp/>
--
~ If you're sending someone some Styrofoam, what do you pack it in? ~
http://tagzilla.mozdev.org v0.066