Problems getting Jetpack Running

47 views
Skip to first unread message

SpeedGun

unread,
Jun 4, 2010, 10:29:24 PM6/4/10
to mozilla-labs-jetpack
Hi!

I recently tried to get Jetpack running, I am a bit of a noob but I
think I followed the instructions correctly.

My system is Windows XP and I am using Command Prompt

When trying to run bin\activate I get this: Error: The system was
unable to find the specified registry key or value.

Please provide any help that you can give, and feel free to ask for
more information.

Thanks

Atul Varma

unread,
Jun 5, 2010, 4:38:10 PM6/5/10
to mozilla-la...@googlegroups.com, SpeedGun
Hello SpeedGun! No worries, we like noobs.

Hmm, it sounds like some of the code we added in bug 558505 isn't behaving as expected.

Have you installed Python on your system?  Is there more information displayed than just the one line you provided? If so, what is it?

- Atul

SpeedGun

unread,
Jun 5, 2010, 6:37:43 PM6/5/10
to mozilla-labs-jetpack
Yes, I do have Python installed. And no that is the only line that is
displayed, actually it does seem to indicate that it has succesfully
activated jetpack, but that is incorrect as you can not use any of the
special commands.

Here is the complete output after I enter "bin\activate" (and yes I
have navigated to the correct folder):
Error: The system was unable to find the specified registry key or
value
Welcome to the Jetpack SDK. Run 'cfx docs' for assistance.
(C:\jetpack-sdk) C:\jetpack-sdk>
If for example I try to run "cfx docs" I get this:
'python' is not recognized as a internal or external command, operable
program or batch file.

Hmm after trying to run this, maybe I misconfigured python?
That seems to be a new error.


On Jun 5, 3:38 pm, Atul Varma <ava...@mozilla.com> wrote:
>   Hello SpeedGun! No worries, we like noobs.
>
> Hmm, it sounds like some of the code we added in bug 558505
> <https://bugzilla.mozilla.org/show_bug.cgi?id=558505> isn't behaving as

SpeedGun

unread,
Jun 5, 2010, 6:44:32 PM6/5/10
to mozilla-labs-jetpack
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?

pixie

unread,
Jun 5, 2010, 9:36:21 PM6/5/10
to mozilla-la...@googlegroups.com
SpeedGun,

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.
>
>

SpeedGun

unread,
Jun 5, 2010, 10:02:07 PM6/5/10
to mozilla-labs-jetpack
How might I do that?

cc

unread,
Jun 5, 2010, 7:32:08 PM6/5/10
to mozilla-la...@googlegroups.com
I had this exact problem (on Vista) a week or so ago, and fixed it by
updating the batch file; IIRC, the IF command has something weird going
on with ERRORLEVEL, such that it won't update the error level until the
whole () block ends. Very strange, but frustratingly typical of the
batch language as a whole.

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/>

activate.bat.patch

pixie

unread,
Jun 5, 2010, 10:15:56 PM6/5/10
to mozilla-la...@googlegroups.com
On windows, right-click on "My Computer", go to Properties, look for
"Environment Variables". Check to see if the directory/folder that
contains "python.exe" is listed as one of the PATH variables.

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?

cc

unread,
Jun 5, 2010, 10:17:59 PM6/5/10
to mozilla-la...@googlegroups.com
Use the PATH command from a command prompt, and check to make sure
that one of the (semicolon-delimited) paths in the output is the one for
Python.

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

SpeedGun

unread,
Jun 6, 2010, 8:34:38 AM6/6/10
to mozilla-labs-jetpack
Worked perfectly, thanks!

On Jun 5, 6:32 pm, cc <carlcl...@lavabit.com> wrote:
>   I had this exact problem (on Vista) a week or so ago, and fixed it by
> updating the batch file; IIRC, the IF command has something weird going
> on with ERRORLEVEL, such that it won't update the error level until the
> whole () block ends. Very strange, but frustratingly typical of the
> batch language as a whole.
>
> Attaching a patch for bin\activate.bat, and appending the updated
> version, too. Hope this helps.
>
>
>  activate.bat.patch
> 1KViewDownload
Reply all
Reply to author
Forward
0 new messages