-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
DevProd Build
-
Fully Compatible
-
ALL
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Bazel uses the built-in python "distro" package to determine the version of ubuntu to decide whether or not to enable Bazel. This is throwing an error for at least one user:
scons: Reading SConscript files ... scons: running with args /home/ubuntu/mongo/python3-venv/bin/python3 ./buildscripts/scons.py --variables-files=etc/scons/mongodbtoolchain_stable_clang.vars MONGO_VERSION=8.0.0-alpha --ninja generate-ninja ICECC=icecc DWARF_WIDTH=32 CCACHE=ccache --modules= --dbg=on --link-model=dynamic --use-libunwind=off LINKFLAGS=-rdynamic Using variable customization file etc/scons/mongodbtoolchain_stable_clang.vars CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.: File "/home/ubuntu/mongo-dev2/mongo/SConstruct", line 1087: default="1" if bazel_by_default() else "0", File "/home/ubuntu/mongo-dev2/mongo/SConstruct", line 955: return distro.name() == "Ubuntu" and distro.version().split( File "/home/ubuntu/mongo/python3-venv/lib/python3.10/site-packages/distro.py", line 287: return _distro.version(pretty, best) File "/home/ubuntu/mongo/python3-venv/lib/python3.10/site-packages/distro.py", line 741: self.lsb_release_attr('release'), File "/home/ubuntu/mongo/python3-venv/lib/python3.10/site-packages/distro.py", line 903: return self._lsb_release_info.get(attribute, '') File "/home/ubuntu/mongo/python3-venv/lib/python3.10/site-packages/distro.py", line 556: ret = obj.__dict__[self._fname] = self._f(obj) File "/home/ubuntu/mongo/python3-venv/lib/python3.10/site-packages/distro.py", line 1014: stdout = subprocess.check_output(cmd, stderr=devnull) File "/opt/mongodbtoolchain/revisions/11bae3c145a48dd7be9ee8aa44e5591783f787aa/stow/python3-v4.12d/lib/python3.10/subprocess.py", line 420: return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/opt/mongodbtoolchain/revisions/11bae3c145a48dd7be9ee8aa44e5591783f787aa/stow/python3-v4.12d/lib/python3.10/subprocess.py", line 524: raise CalledProcessError(retcode, process.args,
Default to disabled when an exception is thrown.
- related to
-
SERVER-86645 lsb_release module is not found, possibly due to workstation corruption
-
- Closed
-