-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Testing Infrastructure
-
None
-
Correctness
-
ALL
The setup_spawnhost_coredump script is no longer installing pymongo into the v4 toolchain:
Warning: Could not load bson library for Python '3.10.4 (main, Jun 16 2023, 17:04:28) [GCC 11.3.0]'. Check with the pip command if pymongo 3.x is installed. MongoDB GDB pretty-printers loaded MongoDB Lock analysis commands loaded Traceback (most recent call last): File "buildscripts/gdb/wt_dump_table.py", line 2, in <module> import bson ModuleNotFoundError: No module named 'bson' immer gdb pretty-printers loaded
gdb is dynamically linked against libpython and therefore always uses the site-packages of the base installation. The pymongo package must therefore be installed into the /opt/mongodbtoolchain/v4/bin/python3 path. Note that installing the latest version is likely fine due to the general stability of the bson module.
https://github.com/mongodb/mongo/blob/6a2690a70e992512a27c31fc91413c37e2a3f957/buildscripts/setup_spawnhost_coredump#L182-L191 should also be installing the pymongo package directly into the MongoDB v4 toolchain. Continuing to set up poetry on the spawn host may still be useful for Server engineers who want to rerun the failing test with same exact binaries on the original platform.
- is caused by
-
SERVER-76751 Add poetry as a way to pin python deps in mongo master
- Closed