You may need to modify the execute() call near the end to use rbt.ext instead 
of just rbt.

I have to note that this script is entirely unsupported, and 100% untested on 
Windows.

Christian

--  
Christian Hammond - christ...@beanbaginc.com  
Review Board - https://www.reviewboard.org  
Beanbag, Inc. - https://www.beanbaginc.com

-----Original Message-----
From: Qa Qa <testing89...@gmail.com>
Reply: reviewboard@googlegroups.com <reviewboard@googlegroups.com>>
Date: January 20, 2015 at 1:11:34 AM
To: reviewboard@googlegroups.com <reviewboard@googlegroups.com>>
Cc: testing89...@gmail.com <testing89...@gmail.com>>, christ...@beanbaginc.com 
<christ...@beanbaginc.com>>
Subject:  Re: Fwd: Error while executing SVN Post Commit hook

> The output of dir "C:\Program Files (x86)\VisualSVN
> Server\trac\python\Scripts" is as follows:
>  
> Directory of c:\Program Files (x86)\VisualSVN Server\trac\python\Scripts
>  
> 01/14/2015 05:15 PM
.
> 01/14/2015 05:15 PM
..
> 01/07/2015 06:30 PM 284 agilo_svn_hook_commit.py
> 10/10/2012 03:07 PM 386 check-trac-subtickets-script.py
> 10/10/2012 03:07 PM 6,656 check-trac-subtickets.exe
> 01/07/2015 06:30 PM 282 create_agilo_project.py
> 08/30/2011 05:37 PM 346 easy_install-2.5-script.py
> 08/30/2011 05:10 PM 6,656 easy_install-2.5.exe
> 01/07/2015 04:50 PM 390 easy_install-2.7-script.py
> 01/07/2015 04:50 PM 65,536 easy_install-2.7.exe
> 01/07/2015 04:50 PM 651 easy_install-2.7.exe.manifest
> 01/07/2015 04:50 PM 382 easy_install-script.py
> 01/07/2015 04:50 PM 65,536 easy_install.exe
> 01/07/2015 04:50 PM 647 easy_install.exe.manifest
> 01/07/2015 02:03 PM 340 pip-script.py
> 01/07/2015 02:03 PM 65,536 pip.exe
> 01/07/2015 02:03 PM 638 pip.exe.manifest
> 01/07/2015 02:03 PM 342 pip2-script.py
> 01/07/2015 02:03 PM 346 pip2.7-script.py
> 01/07/2015 02:03 PM 65,536 pip2.7.exe
> 01/07/2015 02:03 PM 641 pip2.7.exe.manifest
> 01/07/2015 02:03 PM 65,536 pip2.exe
> 01/07/2015 02:03 PM 639 pip2.exe.manifest
> 01/07/2015 02:29 PM 348 pybabel-script.py
> 01/07/2015 02:29 PM 65,536 pybabel.exe
> 01/07/2015 02:29 PM 642 pybabel.exe.manifest
> 01/14/2015 05:15 PM 352 rbt-script.py
> 01/14/2015 05:15 PM 65,536 rbt.exe
> 01/14/2015 05:15 PM 638 rbt.exe.manifest
> 01/07/2015 01:57 PM 357 trac-admin-script.py
> 01/07/2015 01:57 PM 466 trac-admin-script.pyc
> 01/07/2015 01:57 PM 65,536 trac-admin.exe
> 01/07/2015 01:57 PM 645 trac-admin.exe.manifest
> 08/26/2011 12:09 PM 1,158 trac-digest.py
> 01/07/2015 01:57 PM 347 tracd-script.py
> 01/07/2015 01:57 PM 456 tracd-script.pyc
> 01/07/2015 01:57 PM 65,536 tracd.exe
> 01/07/2015 01:57 PM 640 tracd.exe.manifest
> 36 File(s) 615,499 bytes
> 2 Dir(s) 85,557,620,736 bytes free
>  
>  
>  
> On Tuesday, January 20, 2015 at 1:41:29 PM UTC+5:30, Christian Hammond
> wrote:
> >
> > So just to check, show me what this returns:
> >
> > dir "C:\Program Files (x86)\VisualSVN Server\trac\python\Scripts"
> >
> > In the hook script, you can also try:
> >
> > POSTREVIEW_PATH = os.path.join('C:', 'Program Files (x86)', 'VisualSVN
> > Server', 'trac', 'python', 'Scripts')
> >
> > Christian
> >
> > --
> > Christian Hammond - chri...@beanbaginc.com  
> > Review Board - https://www.reviewboard.org
> > Beanbag, Inc. - https://www.beanbaginc.com
> >
> > -----Original Message-----
> > From: Qa Qa >
> > Reply: revie...@googlegroups.com > > >>
> > Date: January 20, 2015 at 12:09:43 AM
> > To: revie...@googlegroups.com > > >>
> > Cc: testin...@gmail.com >>,  
> > chri...@beanbaginc.com >>  
> >
> > Subject: Re: Fwd: Error while executing SVN Post Commit hook
> >
> > > Yes, i am able to execute 'rbt' command for the specified directory.
> > > I have installed RBTools using command *easy_install -U RBTools*
> > >
> > >
> > > On Tuesday, January 20, 2015 at 1:11:25 PM UTC+5:30, Christian Hammond
> > > wrote:
> > > >
> > > > Can you verify that 'rbt' exists in the directory you specified?
> > > >
> > > > How did you install RBTools?
> > > >
> > > > Christian
> > > >
> > > > --
> > > > Christian Hammond - chri...@beanbaginc.com
> > > > Review Board - https://www.reviewboard.org
> > > > Beanbag, Inc. - https://www.beanbaginc.com
> > > >
> > > > -----Original Message-----
> > > > From: Qa Qa >
> > > > Reply: revie...@googlegroups.com > > >>
> > > > Date: January 19, 2015 at 11:38:58 PM
> > > > To: revie...@googlegroups.com > > >>
> > > > Cc: testin...@gmail.com >>,
> > > > chri...@beanbaginc.com >>
> > > >
> > > > Subject: Re: Fwd: Error while executing SVN Post Commit hook
> > > >
> > > > > I have downloaded and installed 32 bit MSI it
> > > > > from https://www.python.org/download/releases/2.7.7/
> > > > >
> > > > >
> > > > > On Tuesday, January 20, 2015 at 12:46:30 PM UTC+5:30, Christian
> > Hammond
> > > > > wrote:
> > > > > >
> > > > > > How was Python installed on this system?
> > > > > >
> > > > > > Christian
> > > > > >
> > > > > > --
> > > > > > Christian Hammond - chri...@beanbaginc.com
> > > > > > Review Board - https://www.reviewboard.org
> > > > > > Beanbag, Inc. - https://www.beanbaginc.com
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Qa Qa >
> > > > > > Reply: revie...@googlegroups.com > > >>
> > > > > > Date: January 19, 2015 at 11:14:08 PM
> > > > > > To: revie...@googlegroups.com > > >>
> > > > > > Cc: testin...@gmail.com >>,
> > > > > > chri...@beanbaginc.com >>
> > > > > >
> > > > > > Subject: Re: Fwd: Error while executing SVN Post Commit hook
> > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > The issue is still not resolved. Please look into it ASAP.
> > > > > > >
> > > > > > > On Thursday, January 15, 2015 at 5:43:07 PM UTC+5:30, Qa Qa
> > wrote:
> > > > > > > >
> > > > > > > > The issue is still not resolved. I am getting the same error
> > even
> > > > > > after
> > > > > > > > using two backslashes:
> > > > > > > >
> > > > > > > > POSTREVIEW_PATH = "C:\\Program Files
> > > > > > > > (x86)\\VisualSVN Server\\trac\\python\\Scripts"
> > > > > > > >
> > > > > > > > On Thursday, January 15, 2015 at 4:37:28 PM UTC+5:30,
> > Christian
> > > > > > Hammond
> > > > > > > > wrote:
> > > > > > > >>
> > > > > > > >> Hi,
> > > > > > > >>
> > > > > > > >> (Make sure to CC revie...@googlegroups.com in your e-mails.)
> > > > > > > >>
> > > > > > > >> In Python, you'll need to escape the backslashes, like:
> > > > > > > >>
> > > > > > > >> POSTREVIEW_PATH = "C:\\Program Files (x86)\\Visual
> > SVN\\....."
> > > > > > > >>
> > > > > > > >> Christian
> > > > > > > >>
> > > > > > > >> --
> > > > > > > >> Christian Hammond - chri...@beanbaginc.com
> > > > > > > >> Review Board - https://www.reviewboard.org
> > > > > > > >> Beanbag, Inc. - https://www.beanbaginc.com
> > > > > > > >>
> > > > > > > >> -----Original Message-----
> > > > > > > >> From: QA QA
> > > > > > > >> Reply: QA QA >
> > > > > > > >> Date: January 15, 2015 at 3:05:13 AM
> > > > > > > >> To: Christian Hammond >
> > > > > > > >> Subject: Re: Fwd: Error while executing SVN Post Commit hook
> > > > > > > >>
> > > > > > > >> > Hi,
> > > > > > > >> >
> > > > > > > >> > I have set POSTREVIEW_PATH = "C:\Program Files
> > (x86)\VisualSVN
> > > > > > > >> > Server\trac\python\Scripts" . This folder contains both
> > rbt.exe
> > > > and
> > > > > > > >> > rbt-script.py files
> > > > > > > >> >
> > > > > > > >> > On Thu, Jan 15, 2015 at 4:30 PM, Christian Hammond > >
> > wrote:
> > > > > > > >> >
> > > > > > > >> > > Can you show exactly what POSTREVIEW_PATH is set to on
> > there?
> > > > It
> > > > > > > >> doesn't
> > > > > > > >> > > appear to be valid in this case. The error says that it
> > > > couldn't
> > > > > > be
> > > > > > > >> found.
> > > > > > > >> > >
> > > > > > > >> > > Christian
> > > > > > > >> > >
> > > > > > > >> > > --
> > > > > > > >> > > Christian Hammond - chri...@beanbaginc.com
> > > > > > > >> > > Review Board - https://www.reviewboard.org
> > > > > > > >> > > Beanbag, Inc. - https://www.beanbaginc.com
> > > > > > > >> > >
> > > > > > > >> > > -----Original Message-----
> > > > > > > >> > > From: testin...@gmail.com
> > > > > > > >> > > Reply: testin...@gmail.com >
> > > > > > > >> > > Date: January 15, 2015 at 2:53:24 AM
> > > > > > > >> > > To: chri...@beanbaginc.com >
> > > > > > > >> > > Subject: Fwd: Error while executing SVN Post Commit hook
> > > > > > > >> > >
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > > On Thursday, January 15, 2015 at 4:21:01 PM UTC+5:30,
> > > > > > > >> > > testin...@gmail.com
> > > > > > > >> > > > wrote:
> > > > > > > >> > > > >
> > > > > > > >> > > > > Hi,
> > > > > > > >> > > > >
> > > > > > > >> > > > > I am also facing the same error, my POSTREVIEW_PATH
> > is
> > > > also
> > > > > > > >> correct. I
> > > > > > > >> > > am
> > > > > > > >> > > > > using rbtTool 0.6.3 and Reviewboard 2.0.12. I have
> > > > installed
> > > > > > > >> > > > > svn-hook-postcommit-review file on server 2008
> > machine
> > > > with
> > > > > > > >> python
> > > > > > > >> > > 2.7.7
> > > > > > > >> > > > >
> > > > > > > >> > > > > Error: post-commit hook failed (exit code 1) with
> > output:
> > > > > > > >> > > > > Error: Traceback (most recent call last):
> > > > > > > >> > > > > Error: File
> > > > > > "D:\SVNReviewBoardHook\svn-hook-postcommit-review",
> > > > > > > >> line
> > > > > > > >> > > > > 242, in
> > > > > > > >> > > > > Error: main()
> > > > > > > >> > > > > Error: File
> > > > > > "D:\SVNReviewBoardHook\svn-hook-postcommit-review",
> > > > > > > >> line
> > > > > > > >> > > > > 236, in main
> > > > > > > >> > > > > Error: data = execute([os.path.join(POSTREVIEW_PATH,
> > > > 'rbt'),
> > > > > > > >> 'post'] +
> > > > > > > >> > > > > args, env = {'LANG': 'en_US.UTF-8'})
> > > > > > > >> > > > > Error: File
> > > > > > "D:\SVNReviewBoardHook\svn-hook-postcommit-review",
> > > > > > > >> line
> > > > > > > >> > > > > 105, in execute
> > > > > > > >> > > > > Error: env = env)
> > > > > > > >> > > > > Error: File "C:\Program Files (x86)\VisualSVN
> > > > > > > >> > > > > Server\trac\python\lib\subprocess.py", line 710, in
> > > > __init__
> > > > > > > >> > > > > Error: errread, errwrite)
> > > > > > > >> > > > > Error: File "C:\Program Files (x86)\VisualSVN
> > > > > > > >> > > > > Server\trac\python\lib\subprocess.py", line 958, in
> > > > > > > >> _execute_child
> > > > > > > >> > > > > Error: startupinfo)
> > > > > > > >> > > > > Error: WindowsError: [Error 2] The system cannot find
> > the
> > > > > > file
> > > > > > > >> > > specified
> > > > > > > >> > > > >
> > > > > > > >> > > > > Please help me fix this issue ASAP.
> > > > > > > >> > > > >
> > > > > > > >> > > >
> > > > > > > >> > >
> > > > > > > >> > >
> > > > > > > >> >
> > > > > > > >>
> > > > > > > >>
> > > > > > >
> > > > > > > --
> > > > > > > Get the Review Board Power Pack at
> > > > http://www.reviewboard.org/powerpack/
> > > > > > > ---
> > > > > > > Sign up for Review Board hosting at RBCommons:
> > > > https://rbcommons.com/
> > > > > > > ---
> > > > > > > Happy user? Let us know at http://www.reviewboard.org/users/
> > > > > > > ---
> > > > > > > You received this message because you are subscribed to the
> > Google
> > > > > > Groups "reviewboard"
> > > > > > > group.
> > > > > > > To unsubscribe from this group and stop receiving emails from
> > it,
> > > > send
> > > > > > an email to reviewboard...@googlegroups.com .
> > > > > > > For more options, visit https://groups.google.com/d/optout.
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > > --
> > > > > Get the Review Board Power Pack at
> > http://www.reviewboard.org/powerpack/
> > > > > ---
> > > > > Sign up for Review Board hosting at RBCommons:
> > https://rbcommons.com/
> > > > > ---
> > > > > Happy user? Let us know at http://www.reviewboard.org/users/
> > > > > ---
> > > > > You received this message because you are subscribed to the Google
> > > > Groups "reviewboard"
> > > > > group.
> > > > > To unsubscribe from this group and stop receiving emails from it,
> > send
> > > > an email to reviewboard...@googlegroups.com .
> > > > > For more options, visit https://groups.google.com/d/optout.
> > > > >
> > > >
> > > >
> > >
> > > --
> > > Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
> > > ---
> > > Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
> > > ---
> > > Happy user? Let us know at http://www.reviewboard.org/users/
> > > ---
> > > You received this message because you are subscribed to the Google
> > Groups "reviewboard"
> > > group.
> > > To unsubscribe from this group and stop receiving emails from it, send
> > an email to reviewboard...@googlegroups.com .
> > > For more options, visit https://groups.google.com/d/optout.
> > >
> >
> >
>  
> --
> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
> ---
> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
> ---
> Happy user? Let us know at http://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups 
> "reviewboard"  
> group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to reviewboard+unsubscr...@googlegroups.com.  
> For more options, visit https://groups.google.com/d/optout.
>  

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to