5007: Unexpected error while fetching Subversion local path information

cecoweee

What version are you running?

SVN 1.14.2
ReviewBoard: Latest for docker 6.0 Beta 2
RBTools: 4.1
Python: 3.10.11

What steps will reproduce the problem?

  1. Checkout repository
  2. run: rbt setup-repo

What is the expected output? What do you see instead?

I expected to start setting up the repo

Instead there was an error:
ERROR: Unexpected error fetching Subversion local path information for C:\Projects\DMSNL_RB: 'utf-8' codec can't decode byte 0xf7 in position 433: invalid start byte
Traceback (most recent call last):
File "C:\Program Files\RBTools\Python\lib\site-packages\rbtools-4.1-py3.10.egg\rbtools\utils\source_tree.py", line 291, in _get_scmclient_candidates
local_path = scmclient.get_local_path()
File "C:\Program Files\RBTools\Python\lib\site-packages\rbtools-4.1-py3.10.egg\rbtools\clients\svn.py", line 153, in get_local_path
info = self.svn_info(path=None, ignore_errors=True)
File "C:\Program Files\RBTools\Python\lib\site-packages\rbtools-4.1-py3.10.egg\rbtools\clients\svn.py", line 1077, in svn_info
for info in process_result.stdout:
File "C:\Program Files\RBTools\Python\lib\codecs.py", line 323, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf7 in position 433: invalid start byte
ERROR: A supported repository was not found in the the current directory or any parent directory.
ERROR:
ERROR: The following were missing dependencies:
ERROR:
ERROR: * bazaar: Command line tools (one of ('brz', 'bzr')) are missing.
ERROR: * clearcase: Command line tools ('cleartool') are missing.
ERROR: * cvs: Command line tools ('cvs') are missing.
ERROR: * mercurial: Command line tools ('hg') are missing.
ERROR: * perforce: Command line tools ('p4') are missing.
ERROR: * plastic: Command line tools ('cm') are missing.
ERROR: * sos: Command line tools ('soscmd') are missing.
ERROR: * tfs: Command line tools (one of ('VS2017+ tf', 'Team Explorer Everywhere tf.cmd', 'Our wrapper (rbt install tfs)')) are missing.
ERROR:
ERROR: The following encountered unexpected errors: svn
ERROR:
ERROR: You may need to set up a .reviewboardrc file with REPOSITORY_NAME, REPOSITORY_TYPE, and REVIEWBOARD_URL, if one is not already set up. This can be done by running rbt setup-repo and following the instructions. This file should then be committed to the repository for everyone to use.

What operating system are you using?

Windows 10

Attach the debug out from the command.

$ rbt <command> --debug <args>
<debug output>

Please provide any additional information below.

The issue was caused by the locale of my machine. It was set to a cyrillic locale and one of the dates returned from svn info was in cyrilic format.
After going through the python code that was available I noticed that it was the parsing of the output from svn info command that caused the issue, so I changed my locale to an english one so that the date format changes.
Do you have plans on supporting the parsing of the output from the command from a cyrillic locale?
Should you need any adittional information, feel free to contact me.