I am trying to connect SVN remote client and get the latest committed revision with following python codes in Windows:
r = svn.remote.RemoteClient(svnPath)
revNum = str(r.info().get("commit#revision"))
I am getting following error:
in \n revNum = str(r.info().get("commit#revision"))\n', ' File "C:\Program Files\Python36\lib\site-packages\svn-0.3.45-py3.6.egg\svn\common.py", line 75, in info\n do_combine=True)\n', ' File "C:\Program Files\Python36\lib\site-packages\svn-0.3.45-py3.6.egg\svn\common.py", line 54, in run_command\n return self.external_command(cmd, environment=self.env, **kwargs)\n', ' File "C:\Program Files\Python36\lib\site-packages\svn-0.3.45-py3.6.egg\svn\common_base.py", line 25, in external_command\n env=env)\n', ' File "C:\Program Files\Python36\lib\subprocess.py", line 709, in __init\n
restore_signals, start_new_session)\n', ' File "C:\Program Files\Python36\lib\subprocess.py", line 997, in _execute_child\n
startupinfo)\n']: [WinError 2] The system cannot find the file specified
I tried to print the "svnpath
" and "r
" to make sure it goes correct. I got as expected the correct remote server path (lets say "remote_path
") for "svnpath
" and < SVN(REMOTE) remote_path>
for "r
".
The remote SVN needs credential (UID & PWD) to access. However, the machine I use this script to run has already SVN setup with correct credentials. Do I need to still specify explicit credential in python scrip to access? If so then how? Or do I need any extra python package for SVN?
Please help...