Operational Defect Database

BugZero found this defect 115 days ago.

MongoDB | 2557843

Build failure with Python 3.12

Last update date:

3/13/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Info

mongodb 7.0.5 does not build with python 3.12.1 on macOS 14.2.1. % tar xzf mongodb-src-r7.0.5.tar.gz % cd mongodb-src-r7.0.5 % python3.12 -m venv venv % venv/bin/python3.12 -m pip install -r etc/pip/compile-requirements.txt ... % venv/bin/python3.12 buildscripts/scons.py install-mongod Traceback (most recent call last): File "/Users/me/mongodb-src-r7.0.5/buildscripts/scons.py", line 25, in verify_requirements('etc/pip/compile-requirements.txt') File "/Users/me/mongodb-src-r7.0.5/site_scons/mongo/pip_requirements.py", line 37, in verify_requirements import requirements File "/Users/me/mongodb-src-r7.0.5/venv/lib/python3.12/site-packages/requirements/__init__.py", line 1, in from .parser import parse File "/Users/me/mongodb-src-r7.0.5/venv/lib/python3.12/site-packages/requirements/parser.py", line 4, in from .requirement import Requirement File "/Users/me/mongodb-src-r7.0.5/venv/lib/python3.12/site-packages/requirements/requirement.py", line 3, in from pkg_resources import Requirement as Req File "/Users/me/mongodb-src-r7.0.5/venv/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2163, in register_finder(pkgutil.ImpImporter, find_on_path) ^^^^^^^^^^^^^^^^^^^ AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'? % This problem doesn't happen with python 3.11.7 on the same system.

Top User Comments

JIRAUSER1274045 commented on Wed, 13 Mar 2024 18:08:59 +0000: ryandesign Sorry, at this time we are not supporting this configuration (mongodb 7.0.5 built with python 3.12.1 on macOS 14.2.1). This may change in the future, but for now we'll close out this ticket. JIRAUSER1253549 commented on Wed, 31 Jan 2024 18:40:10 +0000: We build and test mongodb 7.0 with Python 3.10 primarily and we generally don't try to backport python version support, however if the fix is trivially updating a python dependency version we could attempt that. The problem with us upgrading python or its dependencies is that we have many developer tools that rely on them, not just the build, so generally its rather involved. JIRAUSER1275035 commented on Wed, 31 Jan 2024 16:54:36 +0000: Assigning to the Build team to take a look at it.

Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Closed

Learn More

Search:

...