Re: [viewvc-users] Python exception while creating diff web page

"C. Michael Pilato" <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Organization CollabNet, Inc.
Message-ID <[email protected]>
I could be wrong -- Windows is not my platform of choice, as you might have
noticed in other recent threads -- but I don't think you want quotes around
the path in the viewvc.conf file.  It's possible that the underlying Python
code knows what to do with those, but they shouldn't be necessary and
*might* just mess stuff up.

   diff = C:\Program Files\gnuwin32\bin\diff.exe

Also, I don't think you want to add "diff" to the %PATH% -- you'd want
instead to add "C:\Program Files\gnuwin32\bin".

On 11/16/2010 06:58 AM, Broide, Asaf wrote:
> Hi Michael,
> 
> I’ve tried both:
> 
> First, I made sure that “diff” is added to the %PATH% and I made sure it
> is identified when called from console.
> 
> When this didn’t work, I also added the path to diff in the viewvc.conf
> file: diff = "C:\Program Files\gnuwin32\bin\diff.exe"
> 
>  
> 
> Hope you have any more ideas…
> 
>  
> 
> Thanks for the quick response!
> 
> Asaf
> 
>  
> 
> ------------------------------------------------------------------------
> 
> *From:* C. Michael Pilato [mailto:[email protected]]
> *Sent:* Monday, November 15, 2010 6:54 PM
> *To:* Broide, Asaf
> *Cc:* [email protected]
> *Subject:* Re: [viewvc-users] Python exception while creating diff web page
> 
>  
> 
> Did you ensure that 'diff' program directory was added to the %PATH%, or
> did you tweak the viewvc.conf file to point to that program:
> 
> [utilities]
> diff = C:/path/to/diff.exe
> 
> 
> On 11/14/2010 09:15 AM, Broide, Asaf wrote:
> 
> Hi,
> 
> I’ve just installed viewvc-1.1.7 and encountered problems viewing “diff”.
> 
> I’ve installed diffutils-2.8.7 from gnuwin32, and still got the following exception.
> 
> Any ideas?
> 
>  
> 
> Traceback (most recent call last):
> 
>   File "C:\Program Files\viewvc-1.1.7\lib\viewvc.py", line 4396, in main
> 
>     request.run_viewvc()
> 
>   File "C:\Program Files\viewvc-1.1.7\lib\viewvc.py", line 398, in run_viewvc
> 
>     self.view_func(self)
> 
>   File "C:\Program Files\viewvc-1.1.7\lib\viewvc.py", line 3191, in view_diff
> 
>     fp = request.repos.rawdiff(p1, rev1, p2, rev2, diff_type, diff_options)
> 
>   File "C:\Program Files\viewvc-1.1.7\lib\vclib\svn\svn_repos.py", line 731, in rawdiff
> 
>     return vclib._diff_fp(temp1, temp2, info1, info2, self.diff_cmd, args)
> 
>   File "C:\Program Files\viewvc-1.1.7\lib\vclib\__init__.py", line 371, in __init__
> 
>     self.fp = popen.popen(diff_cmd, args, "r")
> 
>   File "C:\Program Files\viewvc-1.1.7\lib\popen.py", line 71, in popen
> 
>     phandle, pid, thandle, tid = win32popen.CreateProcess(command, hStdIn, hStdOut, hStdErr)
> 
>   File "C:\Program Files\viewvc-1.1.7\lib\win32popen.py", line 84, in CreateProcess
> 
>     si                               # startupinfo
> 
> error: (2, 'CreateProcess', 'The system cannot find the file specified.')
> 
>  
> 
> Thanks,
> 
> Asaf
> 
> 
> 
> 
> -- 
> 
> C. Michael Pilato <[email protected]> <mailto:[email protected]>
> 
> CollabNet   <>   www.collab.net <http://www.collab.net>   <>   Distributed Development On Demand
> 


-- 
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2682236

To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkzisTUACgkQokEGqRcG/W6gIACeL5Awl7izV8lfpmnpy/VyyEca
TjQAn13zhMO28rUVyeL12o9yNCm6yMcu
=Uc85
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.