question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Virtualenv does not work correctly on python 2.7 from python.org and new macOS 12 Monterey

See original GitHub issue

Issue

Hello, we faced an issuie with virtualenv when it is used in python, downloaded form python.org: https://www.python.org/download/releases/2.7/ (Mac Installer disk image)

If virtualenv is created by virtualenv, installed in this package, pip ignores virtualenv and always installs packages into system site-packages: testbot@mac12-1005 ~ % ./broken_venv/bin/python -m pip install pytest <cut output> testbot@mac12-1005 ~ % ./broken_venv/bin/python -m pip show pytest <cut output> Location: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages

If virtuelenv is created by built-in python (/usr/bin/python), virtualenv works correctly:

testbot@mac12-1005 ~ % ./correct_venv/bin/python -m pip install pytest <cut output> testbot@mac12-1005 ~ % ./correct_venv/bin/python -m pip show pytest <cut output> Location: /Users/testbot/correct_venv/lib/python2.7/site-packages

For some reason, new site-packages in broken_venv does not contain site-packages of new virtualenv:

testbot@mac12-1005 ~ % ./broken_venv/bin/python -m site
sys.path = [
    '/Users/testbot',
    '/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
    '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
    '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
    '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
    '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
    '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
    '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
    '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
    '/Users/testbot/Library/Python/2.7/lib/python/site-packages',
    '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages',
]
USER_BASE: '/Users/testbot/Library/Python/2.7' (exists)
USER_SITE: '/Users/testbot/Library/Python/2.7/lib/python/site-packages' (exists)
ENABLE_USER_SITE: True
testbot@mac12-1005 ~ % ./correct_venv/bin/python -m site
sys.path = [
    '/Users/testbot',
    '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
    '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
    '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
    '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
    '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
    '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
    '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
    '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
    '/Users/testbot/correct_venv/lib/python2.7/site-packages',
    '/Library/Python/2.7/site-packages',
    '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python',
    '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC',
]
USER_BASE: '/Users/testbot/Library/Python/2.7' (exists)
USER_SITE: '/Users/testbot/Library/Python/2.7/lib/python/site-packages' (exists)
ENABLE_USER_SITE: False

Also I noticed that broken virtualenv does not detect base_prefix: “base_prefix”: null and correct virtualenv contains “base_prefix”: “/System/Library/Frameworks/Python.framework/Versions/2.7” (see detailed of bouth commands below)

We use test framework that need to be configured to access mac os UI for UI testing automation, so we cannot use directly /usr/bin/python and need to install pyton via dmg image.

Is it possible to fix this issue or create workaround to make virtualenv work correctly in our case?

Environment

  • OS:
testbot@mac12-1005 ~ % sw_vers
ProductName:    macOS
ProductVersion: 12.0.1
BuildVersion:   21A559
  • pip list of the host python where virtualenv is installed:
Package                                Version
-------------------------------------- -----------
argh                                   0.26.2
attrs                                  21.2.0
Automat                                20.2.0
backports.functools-lru-cache          1.6.4
beautifulsoup4                         4.9.3
cffi                                   1.15.0
configparser                           4.0.2
constantly                             15.1.0
contextlib2                            0.6.0.post1
cryptography                           3.3.2
distlib                                0.3.4
EasyProcess                            0.3
enum34                                 1.1.6
fastjsonrpc                            0.3.0
filelock                               3.2.1
futures                                3.3.0
google                                 2.0.2
grpcio                                 1.24.1
hyperlink                              21.0.0
idna                                   2.10
importlib-metadata                     2.1.2
importlib-resources                    3.3.1
incremental                            17.5.0
ipaddress                              1.0.23
jsonstruct                             0.2a1
lxml                                   4.1.1
monotonic                              1.5
numpy                                  1.14.1
pathlib2                               2.3.6
pathtools                              0.1.2
pika                                   1.1.0
Pillow                                 5.1.0
pip                                    20.3.4
platformdirs                           2.0.2
protobuf                               3.13.0
psutil                                 5.4.3
pyasn1                                 0.4.8
pyasn1-modules                         0.2.8
pyatomac                               2.0.7
pycparser                              2.21
PyHamcrest                             1.10.1
pymongo                                3.12.1
pyobjc                                 4.1
pyobjc-core                            5.3
pyobjc-framework-Accounts              4.1
pyobjc-framework-AddressBook           4.1
pyobjc-framework-AppleScriptKit        4.1
pyobjc-framework-AppleScriptObjC       4.1
pyobjc-framework-ApplicationServices   4.1
pyobjc-framework-Automator             4.1
pyobjc-framework-AVFoundation          4.1
pyobjc-framework-AVKit                 4.1
pyobjc-framework-CalendarStore         4.1
pyobjc-framework-CFNetwork             4.1
pyobjc-framework-CloudKit              4.1
pyobjc-framework-Cocoa                 5.3
pyobjc-framework-Collaboration         4.1
pyobjc-framework-ColorSync             4.1
pyobjc-framework-Contacts              4.1
pyobjc-framework-ContactsUI            4.1
pyobjc-framework-CoreBluetooth         4.1
pyobjc-framework-CoreData              4.1
pyobjc-framework-CoreLocation          4.1
pyobjc-framework-CoreML                4.1
pyobjc-framework-CoreServices          4.1
pyobjc-framework-CoreSpotlight         4.1
pyobjc-framework-CoreText              4.1
pyobjc-framework-CoreWLAN              4.1
pyobjc-framework-CryptoTokenKit        4.1
pyobjc-framework-DictionaryServices    4.1
pyobjc-framework-DiskArbitration       4.1
pyobjc-framework-EventKit              4.1
pyobjc-framework-ExceptionHandling     4.1
pyobjc-framework-ExternalAccessory     4.1
pyobjc-framework-FinderSync            4.1
pyobjc-framework-FSEvents              4.1
pyobjc-framework-GameCenter            4.1
pyobjc-framework-GameController        4.1
pyobjc-framework-GameKit               4.1
pyobjc-framework-GameplayKit           4.1
pyobjc-framework-ImageCaptureCore      4.1
pyobjc-framework-IMServicePlugIn       4.1
pyobjc-framework-InputMethodKit        4.1
pyobjc-framework-InstallerPlugins      4.1
pyobjc-framework-InstantMessage        4.1
pyobjc-framework-Intents               4.1
pyobjc-framework-IOSurface             4.1
pyobjc-framework-iTunesLibrary         4.1
pyobjc-framework-LatentSemanticMapping 4.1
pyobjc-framework-LaunchServices        4.1
pyobjc-framework-libdispatch           4.1
pyobjc-framework-LocalAuthentication   4.1
pyobjc-framework-MapKit                4.1
pyobjc-framework-MediaAccessibility    4.1
pyobjc-framework-MediaLibrary          4.1
pyobjc-framework-MediaPlayer           4.1
pyobjc-framework-ModelIO               4.1
pyobjc-framework-MultipeerConnectivity 4.1
pyobjc-framework-NetFS                 4.1
pyobjc-framework-NetworkExtension      4.1
pyobjc-framework-NotificationCenter    4.1
pyobjc-framework-OpenDirectory         4.1
pyobjc-framework-Photos                4.1
pyobjc-framework-PhotosUI              4.1
pyobjc-framework-PreferencePanes       4.1
pyobjc-framework-PubSub                4.1
pyobjc-framework-QTKit                 4.1
pyobjc-framework-Quartz                4.1
pyobjc-framework-SafariServices        4.1
pyobjc-framework-SceneKit              4.1
pyobjc-framework-ScreenSaver           4.1
pyobjc-framework-ScriptingBridge       4.1
pyobjc-framework-SearchKit             4.1
pyobjc-framework-Security              4.1
pyobjc-framework-SecurityFoundation    4.1
pyobjc-framework-SecurityInterface     4.1
pyobjc-framework-ServiceManagement     4.1
pyobjc-framework-Social                4.1
pyobjc-framework-SpriteKit             4.1
pyobjc-framework-StoreKit              4.1
pyobjc-framework-SyncServices          4.1
pyobjc-framework-SystemConfiguration   4.1
pyobjc-framework-Vision                4.1
pyobjc-framework-WebKit                4.1
pyOpenSSL                              17.5.0
pyscreenshot                           0.4.2
python-dateutil                        2.8.1
python-ntlm                            1.1.0
PyYAML                                 5.4.1
reimport                               1.4.1
scandir                                1.10.0
selenium                               3.14.1
service-identity                       17.0.0
setuptools                             43.0.0
setuptools-git                         1.2
singledispatch                         3.7.0
six                                    1.16.0
soupsieve                              1.9.6
subprocess32                           3.5.4
Twisted                                17.9.0
txmongo                                18.0.0
typing                                 3.7.4.1
urllib3                                1.26.7
virtualenv                             20.13.0
watchdog                               0.8.3
zipp                                   1.2.0
zope.interface                         5.4.0

Output of the virtual environment creation

Incorrect virutualenv creation log Make sure to run the creation with -vvv --with-traceback:

testbot@mac12-1005 ~ % /Library/Frameworks/Python.framework/Versions/2.7/bin/python -m virtualenv broken_venv -vvv --with-traceback
112 setup logging to NOTSET [DEBUG report:39]
113 created app data folder /Users/testbot/Library/Application Support/virtualenv [DEBUG __init__:41]
143 find interpreter for spec PythonSpec(path=/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python) [INFO builtin:62]
144 proposed PythonInfo({'base_exec_prefix': None, 'system_stdlib': u'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', 'has_venv': False, 'prefix': u'/Library/Frameworks/Python.framework/Versions/2.7', 'stdout_encoding': u'US-ASCII', 'executable': '/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python', 'implementation': u'CPython', 'exec_prefix': u'/Library/Frameworks/Python.framework/Versions/2.7', 'platform': u'darwin', 'version': u'2.7.18 (v2.7.18:8d21aa21f2, Apr 19 2020, 20:48:48) \n[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]', 'sysconfig_paths': {u'platstdlib': u'{platbase}/lib/python{py_version_short}', u'platlib': u'{platbase}/lib/python{py_version_short}/site-packages', u'purelib': u'{base}/lib/python{py_version_short}/site-packages', u'stdlib': u'{base}/lib/python{py_version_short}', u'scripts': u'{base}/bin', u'include': u'{base}/include/python{py_version_short}', u'data': u'{base}'}, 'sysconfig_scheme': None, 'base_prefix': None, 'system_stdlib_platform': u'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', 'file_system_encoding': u'utf-8', 'version_info': VersionInfo(major=2, minor=7, micro=18, releaselevel=u'final', serial=0), 'sysconfig_vars': {u'base': u'/Library/Frameworks/Python.framework/Versions/2.7', u'platbase': u'/Library/Frameworks/Python.framework/Versions/2.7', u'PYTHONFRAMEWORK': u'Python', u'py_version_short': u'2.7'}, 'path': [u'', u'/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', u'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', u'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', u'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', u'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', u'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', u'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', u'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', u'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages'], 'max_size': 9223372036854775807, 'sysconfig': {u'makefile_filename': u'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/Makefile'}, 'real_prefix': None, 'distutils_install': {u'purelib': u'lib/python2.7/site-packages', u'headers': u'include/python2.7/UNKNOWN', u'platlib': u'lib/python2.7/site-packages', u'data': u'', u'scripts': u'bin'}, 'architecture': 64, 'original_executable': u'/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python', 'os': u'posix', 'system_executable': u'/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python'}) [INFO builtin:69]
144 accepted PythonInfo({'base_exec_prefix': None, 'system_stdlib': u'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', 'has_venv': False, 'prefix': u'/Library/Frameworks/Python.framework/Versions/2.7', 'stdout_encoding': u'US-ASCII', 'executable': '/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python', 'implementation': u'CPython', 'exec_prefix': u'/Library/Frameworks/Python.framework/Versions/2.7', 'platform': u'darwin', 'version': u'2.7.18 (v2.7.18:8d21aa21f2, Apr 19 2020, 20:48:48) \n[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]', 'sysconfig_paths': {u'platstdlib': u'{platbase}/lib/python{py_version_short}', u'platlib': u'{platbase}/lib/python{py_version_short}/site-packages', u'purelib': u'{base}/lib/python{py_version_short}/site-packages', u'stdlib': u'{base}/lib/python{py_version_short}', u'scripts': u'{base}/bin', u'include': u'{base}/include/python{py_version_short}', u'data': u'{base}'}, 'sysconfig_scheme': None, 'base_prefix': None, 'system_stdlib_platform': u'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', 'file_system_encoding': u'utf-8', 'version_info': VersionInfo(major=2, minor=7, micro=18, releaselevel=u'final', serial=0), 'sysconfig_vars': {u'base': u'/Library/Frameworks/Python.framework/Versions/2.7', u'platbase': u'/Library/Frameworks/Python.framework/Versions/2.7', u'PYTHONFRAMEWORK': u'Python', u'py_version_short': u'2.7'}, 'path': [u'', u'/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', u'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', u'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', u'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', u'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', u'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', u'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', u'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', u'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages'], 'max_size': 9223372036854775807, 'sysconfig': {u'makefile_filename': u'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/Makefile'}, 'real_prefix': None, 'distutils_install': {u'purelib': u'lib/python2.7/site-packages', u'headers': u'include/python2.7/UNKNOWN', u'platlib': u'lib/python2.7/site-packages', u'data': u'', u'scripts': u'bin'}, 'architecture': 64, 'original_executable': u'/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python', 'os': u'posix', 'system_executable': u'/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python'}) [DEBUG builtin:71]
147 filesystem is not case-sensitive [DEBUG info:29]
194 create virtual environment via CPython2macOsFramework(dest=/Users/testbot/broken_venv, clear=False, no_vcs_ignore=False, global=False) [INFO session:52]
194 create folder /Users/testbot/broken_venv/bin [DEBUG _sync:24]
195 create folder /Users/testbot/broken_venv/include [DEBUG _sync:24]
195 create folder /Users/testbot/broken_venv/lib/python2.7/site-packages [DEBUG _sync:24]
195 write /Users/testbot/broken_venv/pyvenv.cfg [DEBUG pyenv_cfg:34]
195     home = /Library/Frameworks/Python.framework/Versions/2.7 [DEBUG pyenv_cfg:38]
195     implementation = CPython [DEBUG pyenv_cfg:38]
195     version_info = 2.7.18.final.0 [DEBUG pyenv_cfg:38]
195     virtualenv = 20.13.0 [DEBUG pyenv_cfg:38]
195     include-system-site-packages = false [DEBUG pyenv_cfg:38]
195     base-prefix = /Library/Frameworks/Python.framework/Versions/2.7 [DEBUG pyenv_cfg:38]
195     base-exec-prefix = /Library/Frameworks/Python.framework/Versions/2.7 [DEBUG pyenv_cfg:38]
195     base-executable = /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python [DEBUG pyenv_cfg:38]
196 copy /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python to /Users/testbot/broken_venv/bin/python [DEBUG _sync:51]
197 symlink /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py to /Users/testbot/broken_venv/lib/python2.7/os.py [DEBUG _sync:43]
197 symlink /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.pyc to /Users/testbot/broken_venv/lib/python2.7/os.pyc [DEBUG _sync:43]
197 symlink directory /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 to /Users/testbot/broken_venv/include/python2.7 [DEBUG _sync:43]
197 symlink /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/Makefile to /Users/testbot/broken_venv/lib/python2.7/config/Makefile [DEBUG _sync:43]
198 symlink /Library/Frameworks/Python.framework/Versions/2.7/Python to /Users/testbot/broken_venv/.Python [DEBUG _sync:43]
198 symlink directory /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload to /Users/testbot/broken_venv/lib/python2.7/lib-dynload [DEBUG _sync:43]
198 create virtualenv import hook file /Users/testbot/broken_venv/lib/python2.7/site-packages/_virtualenv.pth [DEBUG api:95]
199 create /Users/testbot/broken_venv/lib/python2.7/site-packages/_virtualenv.py [DEBUG api:98]
200 change Mach-O for /Users/testbot/broken_venv/bin/python from /Library/Frameworks/Python.framework/Versions/2.7/Python to @executable_path/../.Python [DEBUG mac_os:201]
200 ============================== target debug ============================== [DEBUG session:54]
201 debug via /Users/testbot/broken_venv/bin/python /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv/create/debug.py [DEBUG creator:224]
200 {
  "makefile_filename": "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/Makefile",
  "site": "<module 'site' from '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.pyc'>",
  "datetime": "<module 'datetime' from '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/datetime.so'>",
  "sys": {
    "executable": "/Users/testbot/broken_venv/bin/python",
    "real_prefix": null,
    "base_exec_prefix": null,
    "exec_prefix": "/Library/Frameworks/Python.framework/Versions/2.7",
    "io_encoding": null,
    "meta_path": [],
    "fs_encoding": "utf-8",
    "prefix": "/Library/Frameworks/Python.framework/Versions/2.7",
    "_base_executable": null,
    "path": [
      "/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip",
      "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7",
      "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin",
      "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac",
      "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages",
      "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk",
      "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old",
      "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload",
      "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages"
    ],
    "base_prefix": null
  },
  "json": "<module 'json' from '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.pyc'>",
  "version": "2.7.18 (v2.7.18:8d21aa21f2, Apr 19 2020, 20:48:48) \n[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]",
  "os": "<module 'os' from '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.pyc'>",
  "math": "<module 'math' from '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/math.so'>"
} [DEBUG session:55]
486 add seed packages via FromAppData(download=False, pip=bundle, wheel=bundle, setuptools=bundle, via=copy, app_data_dir=/Users/testbot/Library/Application Support/virtualenv) [INFO session:59]
491 wrote embed update of distribution pip at /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/embed/3/pip.json [DEBUG via_disk_folder:161]
491 wrote embed update of distribution wheel at /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/embed/3/wheel.json [DEBUG via_disk_folder:161]
494 wrote embed update of distribution setuptools at /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/embed/3/setuptools.json [DEBUG via_disk_folder:161]
508 triggered periodic upgrade of pip==20.3.4 (for python 2.7) via background process having PID 1068 [INFO periodic_update:238]
512 got embed update of distribution pip from /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/embed/3/pip.json [DEBUG via_disk_folder:135]
514 triggered periodic upgrade of setuptools==44.1.1 (for python 2.7) via background process having PID 1070 [INFO periodic_update:238]
517 got embed update of distribution setuptools from /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/embed/3/setuptools.json [DEBUG via_disk_folder:135]
2909 triggered periodic upgrade of wheel==0.37.1 (for python 2.7) via background process having PID 1069 [INFO periodic_update:238]
2910 got embed update of distribution wheel from /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/embed/3/wheel.json [DEBUG via_disk_folder:135]
2911 install pip from wheel /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv/seed/wheels/embed/pip-20.3.4-py2.py3-none-any.whl via CopyPipInstall [DEBUG via_app_data:49]
2911 Attempting to acquire lock 140627458626064 on /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/pip-20.3.4-py2.py3-none-any.lock [DEBUG _api:144]
2911 Lock 140627458626064 acquired on /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/pip-20.3.4-py2.py3-none-any.lock [DEBUG _api:148]
2911 build install image for pip-20.3.4-py2.py3-none-any.whl to /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/pip-20.3.4-py2.py3-none-any [DEBUG base:49]
2923 install wheel from wheel /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv/seed/wheels/embed/wheel-0.37.1-py2.py3-none-any.whl via CopyPipInstall [DEBUG via_app_data:49]
2923 Attempting to acquire lock 140627458603344 on /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/wheel-0.37.1-py2.py3-none-any.lock [DEBUG _api:144]
2923 Lock 140627458603344 acquired on /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/wheel-0.37.1-py2.py3-none-any.lock [DEBUG _api:148]
2923 build install image for wheel-0.37.1-py2.py3-none-any.whl to /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/wheel-0.37.1-py2.py3-none-any [DEBUG base:49]
2958 Attempting to release lock 140627458603344 on /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/wheel-0.37.1-py2.py3-none-any.lock [DEBUG _api:178]
2958 Lock 140627458603344 released on /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/wheel-0.37.1-py2.py3-none-any.lock [DEBUG _api:181]
2959 copy /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/wheel-0.37.1-py2.py3-none-any/wheel-0.37.1.virtualenv to /Users/testbot/broken_venv/lib/python2.7/site-packages/wheel-0.37.1.virtualenv [DEBUG _sync:51]
2959 copy directory /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/wheel-0.37.1-py2.py3-none-any/wheel to /Users/testbot/broken_venv/lib/python2.7/site-packages/wheel [DEBUG _sync:51]
2960 install setuptools from wheel /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv/seed/wheels/embed/setuptools-44.1.1-py2.py3-none-any.whl via CopyPipInstall [DEBUG via_app_data:49]
2976 Attempting to acquire lock 140627458601360 on /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/setuptools-44.1.1-py2.py3-none-any.lock [DEBUG _api:144]
2976 Lock 140627458601360 acquired on /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/setuptools-44.1.1-py2.py3-none-any.lock [DEBUG _api:148]
2976 build install image for setuptools-44.1.1-py2.py3-none-any.whl to /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/setuptools-44.1.1-py2.py3-none-any [DEBUG base:49]
3031 copy directory /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/wheel-0.37.1-py2.py3-none-any/wheel-0.37.1.dist-info to /Users/testbot/broken_venv/lib/python2.7/site-packages/wheel-0.37.1.dist-info [DEBUG _sync:51]
3037 generated console scripts wheel2.7 wheel-2.7 wheel wheel2 [DEBUG base:45]
3086 Attempting to release lock 140627458601360 on /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/setuptools-44.1.1-py2.py3-none-any.lock [DEBUG _api:178]
3086 Lock 140627458601360 released on /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/setuptools-44.1.1-py2.py3-none-any.lock [DEBUG _api:181]
3086 copy directory /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/setuptools-44.1.1-py2.py3-none-any/setuptools-44.1.1.dist-info to /Users/testbot/broken_venv/lib/python2.7/site-packages/setuptools-44.1.1.dist-info [DEBUG _sync:51]
3091 copy /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/setuptools-44.1.1-py2.py3-none-any/easy_install.py to /Users/testbot/broken_venv/lib/python2.7/site-packages/easy_install.py [DEBUG _sync:51]
3092 copy directory /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/setuptools-44.1.1-py2.py3-none-any/setuptools to /Users/testbot/broken_venv/lib/python2.7/site-packages/setuptools [DEBUG _sync:51]
3134 copy directory /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/setuptools-44.1.1-py2.py3-none-any/pkg_resources to /Users/testbot/broken_venv/lib/python2.7/site-packages/pkg_resources [DEBUG _sync:51]
3149 copy /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/setuptools-44.1.1-py2.py3-none-any/setuptools-44.1.1.virtualenv to /Users/testbot/broken_venv/lib/python2.7/site-packages/setuptools-44.1.1.virtualenv [DEBUG _sync:51]
3172 generated console scripts easy_install-2.7 easy_install2.7 easy_install easy_install2 [DEBUG base:45]
3173 Attempting to release lock 140627458626064 on /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/pip-20.3.4-py2.py3-none-any.lock [DEBUG _api:178]
3173 Lock 140627458626064 released on /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/pip-20.3.4-py2.py3-none-any.lock [DEBUG _api:181]
3173 copy /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/pip-20.3.4-py2.py3-none-any/pip-20.3.4.virtualenv to /Users/testbot/broken_venv/lib/python2.7/site-packages/pip-20.3.4.virtualenv [DEBUG _sync:51]
3174 copy directory /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/pip-20.3.4-py2.py3-none-any/pip to /Users/testbot/broken_venv/lib/python2.7/site-packages/pip [DEBUG _sync:51]
3327 copy directory /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/pip-20.3.4-py2.py3-none-any/pip-20.3.4.dist-info to /Users/testbot/broken_venv/lib/python2.7/site-packages/pip-20.3.4.dist-info [DEBUG _sync:51]
3332 generated console scripts pip2.7 pip-2.7 pip pip2 [DEBUG base:45]
3333 add activators for Nushell, Python, Fish, CShell, PowerShell, Bash [INFO session:66]
3337 write /Users/testbot/broken_venv/pyvenv.cfg [DEBUG pyenv_cfg:34]
3337    home = /Library/Frameworks/Python.framework/Versions/2.7 [DEBUG pyenv_cfg:38]
3337    implementation = CPython [DEBUG pyenv_cfg:38]
3337    version_info = 2.7.18.final.0 [DEBUG pyenv_cfg:38]
3337    virtualenv = 20.13.0 [DEBUG pyenv_cfg:38]
3337    include-system-site-packages = false [DEBUG pyenv_cfg:38]
3337    base-prefix = /Library/Frameworks/Python.framework/Versions/2.7 [DEBUG pyenv_cfg:38]
3337    base-exec-prefix = /Library/Frameworks/Python.framework/Versions/2.7 [DEBUG pyenv_cfg:38]
3337    base-executable = /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python [DEBUG pyenv_cfg:38]
3338 created virtual environment CPython2.7.18.final.0-64 in 3226ms
  creator CPython2macOsFramework(dest=/Users/testbot/broken_venv, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, wheel=bundle, setuptools=bundle, via=copy, app_data_dir=/Users/testbot/Library/Application Support/virtualenv)
    added seed packages: pip==20.3.4, setuptools==44.1.1, wheel==0.37.1
  activators NushellActivator,PythonActivator,FishActivator,CShellActivator,PowerShellActivator,BashActivator [WARNING __main__:19]

Correct virtualenv creation log

testbot@mac12-1005 ~ % /usr/bin/python -m virtualenv broken_venv -vvv --with-traceback
309 setup logging to NOTSET [DEBUG report:39]
330 find interpreter for spec PythonSpec(path=/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python) [INFO builtin:62]
330 proposed PythonInfo({'base_exec_prefix': None, 'system_stdlib': u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', 'has_venv': False, 'prefix': u'/System/Library/Frameworks/Python.framework/Versions/2.7', 'stdout_encoding': u'US-ASCII', 'executable': '/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python', 'implementation': u'CPython', 'exec_prefix': u'/System/Library/Frameworks/Python.framework/Versions/2.7', 'platform': u'darwin', 'version': u'2.7.18 (default, Oct  2 2021, 04:20:39) \n[GCC Apple LLVM 13.0.0 (clang-1300.0.29.1) [+internal-os, ptrauth-isa=deploymen', 'sysconfig_paths': {u'platstdlib': u'{platbase}/lib/python{py_version_short}', u'platlib': u'{platbase}/lib/python{py_version_short}/site-packages', u'purelib': u'{base}/lib/python{py_version_short}/site-packages', u'stdlib': u'{base}/lib/python{py_version_short}', u'scripts': u'{base}/bin', u'include': u'{base}/include/python{py_version_short}', u'data': u'{base}'}, 'sysconfig_scheme': None, 'base_prefix': None, 'system_stdlib_platform': u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', 'file_system_encoding': u'utf-8', 'version_info': VersionInfo(major=2, minor=7, micro=18, releaselevel=u'final', serial=0), 'sysconfig_vars': {u'base': u'/System/Library/Frameworks/Python.framework/Versions/2.7', u'platbase': u'/System/Library/Frameworks/Python.framework/Versions/2.7', u'PYTHONFRAMEWORK': u'Python', u'py_version_short': u'2.7'}, 'path': [u'', u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', u'/Users/testbot/Library/Python/2.7/lib/python/site-packages', u'/Library/Python/2.7/site-packages', u'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', u'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC'], 'max_size': 9223372036854775807, 'sysconfig': {u'makefile_filename': u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/Makefile'}, 'real_prefix': None, 'distutils_install': {u'purelib': u'lib/python2.7/site-packages', u'headers': u'include/python2.7/UNKNOWN', u'platlib': u'lib/python2.7/site-packages', u'data': u'', u'scripts': u'bin'}, 'architecture': 64, 'original_executable': u'/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python', 'os': u'posix', 'system_executable': u'/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python'}) [INFO builtin:69]
330 accepted PythonInfo({'base_exec_prefix': None, 'system_stdlib': u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', 'has_venv': False, 'prefix': u'/System/Library/Frameworks/Python.framework/Versions/2.7', 'stdout_encoding': u'US-ASCII', 'executable': '/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python', 'implementation': u'CPython', 'exec_prefix': u'/System/Library/Frameworks/Python.framework/Versions/2.7', 'platform': u'darwin', 'version': u'2.7.18 (default, Oct  2 2021, 04:20:39) \n[GCC Apple LLVM 13.0.0 (clang-1300.0.29.1) [+internal-os, ptrauth-isa=deploymen', 'sysconfig_paths': {u'platstdlib': u'{platbase}/lib/python{py_version_short}', u'platlib': u'{platbase}/lib/python{py_version_short}/site-packages', u'purelib': u'{base}/lib/python{py_version_short}/site-packages', u'stdlib': u'{base}/lib/python{py_version_short}', u'scripts': u'{base}/bin', u'include': u'{base}/include/python{py_version_short}', u'data': u'{base}'}, 'sysconfig_scheme': None, 'base_prefix': None, 'system_stdlib_platform': u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', 'file_system_encoding': u'utf-8', 'version_info': VersionInfo(major=2, minor=7, micro=18, releaselevel=u'final', serial=0), 'sysconfig_vars': {u'base': u'/System/Library/Frameworks/Python.framework/Versions/2.7', u'platbase': u'/System/Library/Frameworks/Python.framework/Versions/2.7', u'PYTHONFRAMEWORK': u'Python', u'py_version_short': u'2.7'}, 'path': [u'', u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', u'/Users/testbot/Library/Python/2.7/lib/python/site-packages', u'/Library/Python/2.7/site-packages', u'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', u'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC'], 'max_size': 9223372036854775807, 'sysconfig': {u'makefile_filename': u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/Makefile'}, 'real_prefix': None, 'distutils_install': {u'purelib': u'lib/python2.7/site-packages', u'headers': u'include/python2.7/UNKNOWN', u'platlib': u'lib/python2.7/site-packages', u'data': u'', u'scripts': u'bin'}, 'architecture': 64, 'original_executable': u'/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python', 'os': u'posix', 'system_executable': u'/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python'}) [DEBUG builtin:71]
333 filesystem is not case-sensitive [DEBUG info:29]
388 create virtual environment via CPython2macOsFramework(dest=/Users/testbot/broken_venv, clear=False, no_vcs_ignore=False, global=False) [INFO session:52]
389 write /Users/testbot/broken_venv/pyvenv.cfg [DEBUG pyenv_cfg:34]
389     home = /System/Library/Frameworks/Python.framework/Versions/2.7 [DEBUG pyenv_cfg:38]
389     implementation = CPython [DEBUG pyenv_cfg:38]
389     version_info = 2.7.18.final.0 [DEBUG pyenv_cfg:38]
389     virtualenv = 20.13.0 [DEBUG pyenv_cfg:38]
389     include-system-site-packages = false [DEBUG pyenv_cfg:38]
389     base-prefix = /System/Library/Frameworks/Python.framework/Versions/2.7 [DEBUG pyenv_cfg:38]
389     base-exec-prefix = /System/Library/Frameworks/Python.framework/Versions/2.7 [DEBUG pyenv_cfg:38]
389     base-executable = /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python [DEBUG pyenv_cfg:38]
390 remove file /Users/testbot/broken_venv/bin/python [DEBUG _sync:37]
390 copy /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python to /Users/testbot/broken_venv/bin/python [DEBUG _sync:51]
392 remove file /Users/testbot/broken_venv/lib/python2.7/os.py [DEBUG _sync:37]
392 symlink /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py to /Users/testbot/broken_venv/lib/python2.7/os.py [DEBUG _sync:43]
392 remove file /Users/testbot/broken_venv/lib/python2.7/os.pyc [DEBUG _sync:37]
392 symlink /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.pyc to /Users/testbot/broken_venv/lib/python2.7/os.pyc [DEBUG _sync:43]
393 remove file /Users/testbot/broken_venv/include/python2.7 [DEBUG _sync:37]
393 symlink directory /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 to /Users/testbot/broken_venv/include/python2.7 [DEBUG _sync:43]
393 remove file /Users/testbot/broken_venv/lib/python2.7/config/Makefile [DEBUG _sync:37]
393 symlink /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/Makefile to /Users/testbot/broken_venv/lib/python2.7/config/Makefile [DEBUG _sync:43]
394 remove file /Users/testbot/broken_venv/.Python [DEBUG _sync:37]
394 symlink /System/Library/Frameworks/Python.framework/Versions/2.7/Python to /Users/testbot/broken_venv/.Python [DEBUG _sync:43]
394 remove file /Users/testbot/broken_venv/lib/python2.7/lib-dynload [DEBUG _sync:37]
394 symlink directory /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload to /Users/testbot/broken_venv/lib/python2.7/lib-dynload [DEBUG _sync:43]
394 create virtualenv import hook file /Users/testbot/broken_venv/lib/python2.7/site-packages/_virtualenv.pth [DEBUG api:95]
395 create /Users/testbot/broken_venv/lib/python2.7/site-packages/_virtualenv.py [DEBUG api:98]
396 change Mach-O for /Users/testbot/broken_venv/bin/python from /System/Library/Frameworks/Python.framework/Versions/2.7/Python to @executable_path/../.Python [DEBUG mac_os:201]
397 ============================== target debug ============================== [DEBUG session:54]
398 debug via /Users/testbot/broken_venv/bin/python /Users/testbot/Library/Python/2.7/lib/python/site-packages/virtualenv/create/debug.py [DEBUG creator:224]
397 {
  "makefile_filename": "/Users/testbot/broken_venv/lib/python2.7/config/Makefile",
  "site": "<module 'site' from '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.pyc'>",
  "datetime": "<module 'datetime' from '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/datetime.so'>",
  "sys": {
    "executable": "/Users/testbot/broken_venv/bin/python",
    "real_prefix": "/System/Library/Frameworks/Python.framework/Versions/2.7",
    "base_exec_prefix": "/System/Library/Frameworks/Python.framework/Versions/2.7",
    "exec_prefix": "/Users/testbot/broken_venv",
    "io_encoding": null,
    "meta_path": [
      "<class '_virtualenv._VirtualenvImporter'>"
    ],
    "fs_encoding": "utf-8",
    "prefix": "/Users/testbot/broken_venv",
    "_base_executable": null,
    "path": [
      "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip",
      "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7",
      "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin",
      "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac",
      "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages",
      "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk",
      "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old",
      "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload",
      "/Users/testbot/broken_venv/lib/python2.7/site-packages"
    ],
    "base_prefix": "/System/Library/Frameworks/Python.framework/Versions/2.7"
  },
  "json": "<module 'json' from '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.pyc'>",
  "version": "2.7.18 (default, Oct  2 2021, 04:20:39) \n[GCC Apple LLVM 13.0.0 (clang-1300.0.29.1) [+internal-os, ptrauth-isa=deploymen",
  "os": "<module 'os' from '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.pyc'>",
  "math": "<module 'math' from '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/math.so'>"
} [DEBUG session:55]
491 add seed packages via FromAppData(download=False, pip=bundle, wheel=bundle, setuptools=bundle, via=copy, app_data_dir=/Users/testbot/Library/Application Support/virtualenv) [INFO session:59]
496 got embed update of distribution wheel from /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/embed/3/wheel.json [DEBUG via_disk_folder:135]
497 got embed update of distribution pip from /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/embed/3/pip.json [DEBUG via_disk_folder:135]
497 got embed update of distribution setuptools from /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/embed/3/setuptools.json [DEBUG via_disk_folder:135]
501 got embed update of distribution setuptools from /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/embed/3/setuptools.json [DEBUG via_disk_folder:135]
502 got embed update of distribution wheel from /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/embed/3/wheel.json [DEBUG via_disk_folder:135]
502 got embed update of distribution pip from /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/embed/3/pip.json [DEBUG via_disk_folder:135]
503 install wheel from wheel /Users/testbot/Library/Python/2.7/lib/python/site-packages/virtualenv/seed/wheels/embed/wheel-0.37.1-py2.py3-none-any.whl via CopyPipInstall [DEBUG via_app_data:49]
503 install pip from wheel /Users/testbot/Library/Python/2.7/lib/python/site-packages/virtualenv/seed/wheels/embed/pip-20.3.4-py2.py3-none-any.whl via CopyPipInstall [DEBUG via_app_data:49]
504 install setuptools from wheel /Users/testbot/Library/Python/2.7/lib/python/site-packages/virtualenv/seed/wheels/embed/setuptools-44.1.1-py2.py3-none-any.whl via CopyPipInstall [DEBUG via_app_data:49]
505 Attempting to acquire lock 4389624080 on /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/wheel-0.37.1-py2.py3-none-any.lock [DEBUG _api:144]
505 Attempting to acquire lock 4389623568 on /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/pip-20.3.4-py2.py3-none-any.lock [DEBUG _api:144]
505 Lock 4389624080 acquired on /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/wheel-0.37.1-py2.py3-none-any.lock [DEBUG _api:148]
505 Attempting to acquire lock 4389622032 on /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/setuptools-44.1.1-py2.py3-none-any.lock [DEBUG _api:144]
505 Lock 4389623568 acquired on /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/pip-20.3.4-py2.py3-none-any.lock [DEBUG _api:148]
506 Attempting to release lock 4389624080 on /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/wheel-0.37.1-py2.py3-none-any.lock [DEBUG _api:178]
506 Attempting to release lock 4389623568 on /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/pip-20.3.4-py2.py3-none-any.lock [DEBUG _api:178]
506 Lock 4389623568 released on /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/pip-20.3.4-py2.py3-none-any.lock [DEBUG _api:181]
506 Lock 4389622032 acquired on /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/setuptools-44.1.1-py2.py3-none-any.lock [DEBUG _api:148]
506 Lock 4389624080 released on /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/wheel-0.37.1-py2.py3-none-any.lock [DEBUG _api:181]
507 Attempting to release lock 4389622032 on /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/setuptools-44.1.1-py2.py3-none-any.lock [DEBUG _api:178]
507 Lock 4389622032 released on /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/setuptools-44.1.1-py2.py3-none-any.lock [DEBUG _api:181]
507 uninstall existing distribution pip-20.3.4 from /Users/testbot/broken_venv/lib/python2.7/site-packages [DEBUG base:161]
507 uninstall existing distribution setuptools-44.1.1 from /Users/testbot/broken_venv/lib/python2.7/site-packages [DEBUG base:161]
508 uninstall existing distribution wheel-0.37.1 from /Users/testbot/broken_venv/lib/python2.7/site-packages [DEBUG base:161]
565 copy /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/wheel-0.37.1-py2.py3-none-any/wheel-0.37.1.virtualenv to /Users/testbot/broken_venv/lib/python2.7/site-packages/wheel-0.37.1.virtualenv [DEBUG _sync:51]
566 copy directory /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/wheel-0.37.1-py2.py3-none-any/wheel to /Users/testbot/broken_venv/lib/python2.7/site-packages/wheel [DEBUG _sync:51]
578 copy directory /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/wheel-0.37.1-py2.py3-none-any/wheel-0.37.1.dist-info to /Users/testbot/broken_venv/lib/python2.7/site-packages/wheel-0.37.1.dist-info [DEBUG _sync:51]
583 generated console scripts wheel2.7 wheel-2.7 wheel wheel2 [DEBUG base:45]
585 copy directory /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/setuptools-44.1.1-py2.py3-none-any/setuptools-44.1.1.dist-info to /Users/testbot/broken_venv/lib/python2.7/site-packages/setuptools-44.1.1.dist-info [DEBUG _sync:51]
589 copy /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/setuptools-44.1.1-py2.py3-none-any/easy_install.py to /Users/testbot/broken_venv/lib/python2.7/site-packages/easy_install.py [DEBUG _sync:51]
590 copy directory /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/setuptools-44.1.1-py2.py3-none-any/setuptools to /Users/testbot/broken_venv/lib/python2.7/site-packages/setuptools [DEBUG _sync:51]
623 copy /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/pip-20.3.4-py2.py3-none-any/pip-20.3.4.virtualenv to /Users/testbot/broken_venv/lib/python2.7/site-packages/pip-20.3.4.virtualenv [DEBUG _sync:51]
624 copy directory /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/pip-20.3.4-py2.py3-none-any/pip to /Users/testbot/broken_venv/lib/python2.7/site-packages/pip [DEBUG _sync:51]
629 copy directory /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/setuptools-44.1.1-py2.py3-none-any/pkg_resources to /Users/testbot/broken_venv/lib/python2.7/site-packages/pkg_resources [DEBUG _sync:51]
639 copy /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/setuptools-44.1.1-py2.py3-none-any/setuptools-44.1.1.virtualenv to /Users/testbot/broken_venv/lib/python2.7/site-packages/setuptools-44.1.1.virtualenv [DEBUG _sync:51]
642 generated console scripts easy_install-2.7 easy_install2.7 easy_install easy_install2 [DEBUG base:45]
765 copy directory /Users/testbot/Library/Application Support/virtualenv/wheel/2.7/image/1/CopyPipInstall/pip-20.3.4-py2.py3-none-any/pip-20.3.4.dist-info to /Users/testbot/broken_venv/lib/python2.7/site-packages/pip-20.3.4.dist-info [DEBUG _sync:51]
770 generated console scripts pip2.7 pip-2.7 pip pip2 [DEBUG base:45]
770 add activators for Nushell, Python, Fish, CShell, PowerShell, Bash [INFO session:66]
774 write /Users/testbot/broken_venv/pyvenv.cfg [DEBUG pyenv_cfg:34]
774     home = /System/Library/Frameworks/Python.framework/Versions/2.7 [DEBUG pyenv_cfg:38]
774     implementation = CPython [DEBUG pyenv_cfg:38]
774     version_info = 2.7.18.final.0 [DEBUG pyenv_cfg:38]
774     virtualenv = 20.13.0 [DEBUG pyenv_cfg:38]
774     include-system-site-packages = false [DEBUG pyenv_cfg:38]
774     base-prefix = /System/Library/Frameworks/Python.framework/Versions/2.7 [DEBUG pyenv_cfg:38]
774     base-exec-prefix = /System/Library/Frameworks/Python.framework/Versions/2.7 [DEBUG pyenv_cfg:38]
774     base-executable = /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python [DEBUG pyenv_cfg:38]
774 created virtual environment CPython2.7.18.final.0-64 in 466ms
  creator CPython2macOsFramework(dest=/Users/testbot/broken_venv, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, wheel=bundle, setuptools=bundle, via=copy, app_data_dir=/Users/testbot/Library/Application Support/virtualenv)
    added seed packages: pip==20.3.4, setuptools==44.1.1, wheel==0.37.1
  activators NushellActivator,PythonActivator,FishActivator,CShellActivator,PowerShellActivator,BashActivator [WARNING __main__:19]

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:25 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
gaborbernatcommented, Feb 14, 2022
1reaction
gaborbernatcommented, Feb 2, 2022

Step one would be to run the test suite against that python and see what breaks 🤔 and then hunt the problems down one by one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mac OS Monterey Python Version? | Apple Developer Forums
I recently purchased a new MacBook Pro running Monterey v12.0.1. As was mentioned earlier in this thread, python points to python2.7 on this...
Read more >
Issues with Virtualenv on MAC OS Monterey - Stack Overflow
I was having a similar issue with pipenv. The only thing that fixed it for me was. pip install --upgrade virtualenv.
Read more >
Installing packages using pip and virtual environments
To create a virtual environment, go to your project's directory and run venv. If you are using Python 2, replace venv with virtualenv...
Read more >
The packages installed on the virtualenv are not recognized ...
I have just upgraded my OS, macOS Big Sur , to the macOS Monterey Beta and the packages of my pipenv projects are...
Read more >
Will Python 2.7 work on Monterey? : r/MacOSBeta - Reddit
WARNING: Python 2.7 is not recommended. This version is included in macOS for compatibility with legacy software. Future versions of macOS will not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found