Testing out reviewboard 7.0.3 with /opt/reviewboard/bin/rbt post 
it's not able to find /usr/bin/diff on rocky 9 to do a diff.
I've tried adding the path to the diff tool in the setting.local.py and in 
the web server conf directory but either way it can't find it. Is there 
some way I can specify where the diff tool is?
I ran the test with and without pip3 RBTools  5.1.1 installed. 

Thanks for the help!
Error below.

 Found svn (None)\n>>> [scan] Verifying repository information...\n>>> 
Running: svn --non-interactive --version -q\n>>> [scan] Successfully found 
repository information: <SVNRepositoryInfo(path=\'file:///myrepo\', 
base_path=\'/\', local_path=None)>\n>>> [diff tool scan] Scanning for 
installed diff tools...\nERROR: Unexpected error setting up and checking 
for diff tool "gnu": \'PATH\'\nTraceback (most recent call last):\n  File 
"/opt/reviewboard/lib/python3.9/site-packages/rbtools/diffs/tools/registry.py", 
line 212, in _populate_instances\n    diff_tool.setup()\n  File 
"/opt/reviewboard/lib/python3.9/site-packages/rbtools/diffs/tools/base/diff_tool.py",
 
line 94, in setup\n    self.available = self.check_available()\n  File 
"/opt/reviewboard/lib/python3.9/site-packages/rbtools/diffs/tools/backends/gnu.py",
 
line 91, in check_available\n    for diff_path in 
self._iter_diff_paths():\n  File 
"/opt/reviewboard/lib/python3.9/site-packages/rbtools/diffs/tools/backends/gnu.py",
 
line 302, in _iter_diff_paths\n    yield from 
iter_exes_in_path(\'gdiff\')\n  File 
"/opt/reviewboard/lib/python3.9/site-packages/rbtools/utils/filesystem.py", 
line 90, in iter_exes_in_path\n    for dirname in 
os.environ[\'PATH\'].split(os.pathsep):\n  File 
"/usr/lib64/python3.9/os.py", line 679, in __getitem__\n    raise 
KeyError(key) from None\nKeyError: \'PATH\'\nERROR: Unexpected error 
setting up and checking for diff tool "apple": \'PATH\'\nTraceback (most 
recent call last):\n  File 
"/opt/reviewboard/lib/python3.9/site-packages/rbtools/diffs/tools/registry.py", 
line 212, in _populate_instances\n    diff_tool.setup()\n  File 
"/opt/reviewboard/lib/python3.9/site-packages/rbtools/diffs/tools/base/diff_tool.py",
 
line 94, in setup\n    self.available = self.check_available()\n  File 
"/opt/reviewboard/lib/python3.9/site-packages/rbtools/diffs/tools/backends/apple.py",
 
line 48, in check_available\n    for diff_path in 
iter_exes_in_path(\'diff\'):\n  File 
"/opt/reviewboard/lib/python3.9/site-packages/rbtools/utils/filesystem.py", 
line 90, in iter_exes_in_path\n    for dirname in 
os.environ[\'PATH\'].split(os.pathsep):\n  File 
"/usr/lib64/python3.9/os.py", line 679, in __getitem__\n    raise 
KeyError(key) from None\nKeyError: \'PATH\'\n>>> [diff tool scan] No diff 
tools found (tried [<class 
\'rbtools.diffs.tools.backends.gnu.GNUDiffTool\'>, <class 
\'rbtools.diffs.tools.backends.apple.AppleDiffTool\'>])\n>>> [diff tool 
scan] Scan complete.\nTraceback (most recent call last):\n  File 
"/opt/reviewboard/lib/python3.9/site-packages/rbtools/commands/base/commands.py",
 
line 1207, in initialize_scm_tool\n    tool.get_diff_tool()\n  File 
"/opt/reviewboard/lib/python3.9/site-packages/rbtools/clients/base/scmclient.py",
 
line 898, in get_diff_tool\n    diff_tool = 
diff_tools_registry.get_available()\n  File 
"/opt/reviewboard/lib/python3.9/site-packages/rbtools/diffs/tools/registry.py", 
line 144, in get_available\n    raise 
MissingDiffToolError(\nrbtools.diffs.tools.errors.MissingDiffToolError: A 
compatible command line diff tool (Apple Diff, GNU Diff) was not found on 
the system. This is required in order to generate diffs, and will need to 
be installed and placed in your system path.\n\nOn Linux, GNU Diff can be 
installed using your system package manager.\n\nIf you\'re running an older 
version of RBTools, you may also need to upgrade.\n\nDuring handling of the 
above exception, another exception occurred:\n\nTraceback (most recent call 
last):\n  File "/opt/reviewboard/bin/rbt", line 8, in <module>\n   
 sys.exit(main())\n  File 
"/opt/reviewboard/lib/python3.9/site-packages/rbtools/commands/main.py", 
line 214, in main\n    command.run_from_argv([RB_MAIN, command_name] + 
args)\n  File 
"/opt/reviewboard/lib/python3.9/site-packages/rbtools/commands/base/commands.py",
 
line 1114, in run_from_argv\n    self.initialize()\n  File 
"/opt/reviewboard/lib/python3.9/site-packages/rbtools/commands/base/commands.py",
 
line 973, in initialize\n    repository_info, tool = 
self.initialize_scm_tool(\n  File 
"/opt/reviewboard/lib/python3.9/site-packages/rbtools/commands/base/commands.py",
 
line 1209, in initialize_scm_tool\n    raise 
CommandError(str(e))\nrbtools.commands.base.errors.CommandError: A 
compatible command line diff tool (Apple Diff, GNU Diff) was not found on 
the system. This is required in order to generate diffs, and will need to 
be installed and placed in your system path.\n\nOn Linux, GNU Diff can be 
installed using your system package manager.\n\nIf you\'re running an older 
version of RBTools, you may also need to upgrade.\n')

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/reviewboard/1a4e1af6-c4ca-4d0d-b47a-06999f5dcd3an%40googlegroups.com.

Reply via email to