-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Build
-
ALL
-
OS : Ubuntu 24.04
Python : 3.10
In mongo/[site_scons|https://github.com/mongodb/mongo/tree/master/site_scons]/[mongo/|https://github.com/mongodb/mongo/tree/master/site_scons/mongo]pip_requirements.py,
match = re.search( r"Package operations: (\d+) \w+, (\d+) \w+, (\d+) \w+, (\d+) \w+", poetry_dry_run_proc.stdout, ) verbose("Requirements list:") verbose(poetry_dry_run_proc.stdout) installs = int(match[1]) updates = int(match[2]) removals = int(match[3])
int(match[1]) fails (match is set to None), because regex fails to match "Package operations:", I found that poetry_dry_run_proc.stdout return some non pritable character like ESC (try to write poetry_dry_run_proc.stdout to a file), there is a non pritable ESC char before ":", so match is None, and can't subscribe a Nonetype var.
poetry_dry_run_proc.stdout is something like : "�[39;1mPackage operations�[39;22m: ..."
See PR1603