10.14 Python Inconsistency

After troubleshooting a few builds, I found SOME images had python dependencies installed that either weren’t scrubbed, or were inconsistent with other builds.

Here’s the error get-pip.py was throwing:

Installing collected packages: pip, pyparsing, six, packaging, wheel
146 Attempting uninstall: pyparsing
147 Found existing installation: pyparsing 2.0.1
148ERROR: Cannot uninstall 'pyparsing'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

My workaround was just to manually delete pyparsing as part of a os cleanup before install.

I wanted to note this because it’s only happening on some 10.14 vms, and not on others. May warrant a look from your team.

Could I see your .travis.yml file?