/edx/bin/update edx-platform breaks when choosing open-release/hawthorn.master

assuming this is related to my post yesterday on native installation failing for hawthorn.master. nonetheless, update fails on a different requirement. following is the stack trace:

{’_ansible_parsed’: True, u’stat’: {u’isuid’: False, u’uid’: 1002, u’exists’: True, u’attr_flags’: u’e’, u’woth’: False, u’isreg’: True, u’device_type’: 0, u’mtime’: 1564494198.585816, u’block_size’: 4096, u’inode’: 12032741, u’isgid’: False, u’size’: 8107, u’executable’: False, u’charset’: u’us-ascii’, u’readable’: True, u’version’: u’180648924’, u’pw_name’: u’edxapp’, u’gid’: 1003, u’ischr’: False, u’wusr’: True, u’writeable’: True, u’mimetype’: u’text/plain’, u’blocks’: 16, u’xoth’: False, u’islnk’: False, u’nlink’: 1, u’issock’: False, u’rgrp’: True, u’gr_name’: u’edxapp’, u’path’: u’/edx/app/edxapp/edx-platform/requirements/edx/base.txt’, u’xusr’: False, u’atime’: 1564494198.585816, u’md5’: u’811d5faf25a13bfb761a5dfa856f77ef’, u’isdir’: False, u’ctime’: 1564494198.585816, u’isblk’: False, u’wgrp’: False, u’xgrp’: False, u’dev’: 51713, u’roth’: True, u’isfifo’: False, u’mode’: u’0644’, u’checksum’: u’95d84b137fb67e4c3baff7113bc6bb10346246ef’, u’rusr’: True, u’attributes’: [u’extents’]}, ‘_ansible_item_result’: True, ‘_ansible_no_log’: False, u’changed’: False, ‘item’: u’/edx/app/edxapp/edx-platform/requirements/edx/base.txt’, u’invocation’: {u’module_args’: {u’checksum_algorithm’: u’sha1’, u’get_checksum’: True, u’follow’: False, u’path’: u’/edx/app/edxapp/edx-platform/requirements/edx/base.txt’, u’get_md5’: True, u’get_mime’: True, u’get_attributes’: True}}}) => {“changed”: true, “cmd”: ["/edx/app/edxapp/venvs/edxapp/bin/pip", “install”, “-i”, “https://pypi.python.org/simple”, “–exists-action”, “w”, “-r”, “/edx/app/edxapp/edx-platform/requirements/edx/base.txt”], “delta”: “0:00:01.945499”, “end”: “2019-07-30 13:43:21.875400”, “failed”: true, “item”: {“changed”: false, “invocation”: {“module_args”: {“checksum_algorithm”: “sha1”, “follow”: false, “get_attributes”: true, “get_checksum”: true, “get_md5”: true, “get_mime”: true, “path”: “/edx/app/edxapp/edx-platform/requirements/edx/base.txt”}}, “item”: “/edx/app/edxapp/edx-platform/requirements/edx/base.txt”, “stat”: {“atime”: 1564494198.585816, “attr_flags”: “e”, “attributes”: [“extents”], “block_size”: 4096, “blocks”: 16, “charset”: “us-ascii”, “checksum”: “95d84b137fb67e4c3baff7113bc6bb10346246ef”, “ctime”: 1564494198.585816, “dev”: 51713, “device_type”: 0, “executable”: false, “exists”: true, “gid”: 1003, “gr_name”: “edxapp”, “inode”: 12032741, “isblk”: false, “ischr”: false, “isdir”: false, “isfifo”: false, “isgid”: false, “islnk”: false, “isreg”: true, “issock”: false, “isuid”: false, “md5”: “811d5faf25a13bfb761a5dfa856f77ef”, “mimetype”: “text/plain”, “mode”: “0644”, “mtime”: 1564494198.585816, “nlink”: 1, “path”: “/edx/app/edxapp/edx-platform/requirements/edx/base.txt”, “pw_name”: “edxapp”, “readable”: true, “rgrp”: true, “roth”: true, “rusr”: true, “size”: 8107, “uid”: 1002, “version”: “180648924”, “wgrp”: false, “woth”: false, “writeable”: true, “wusr”: true, “xgrp”: false, “xoth”: false, “xusr”: false}}, “rc”: 2, “start”: “2019-07-30 13:43:19.929901”, “stderr”: “Exception:
Traceback (most recent call last):
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/commands/install.py”, line 335, in run
wb.build(autobuilding=True)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/wheel.py”, line 749, in build
self.requirement_set.prepare_files(self.finder)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/req/req_set.py”, line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/req/req_set.py”, line 521, in _prepare_file
req_to_install.check_if_exists()
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/req/req_install.py”, line 1036, in check_if_exists
self.req.name
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 558, in get_distribution
dist = get_provider(dist)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 432, in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 968, in require
needed = self.resolve(parse_requirements(requirements))
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 859, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
ContextualVersionConflict: (pyparsing 2.0.7 (/edx/app/edxapp/venvs/edxapp/lib/python2.7/site-packages), Requirement.parse(‘pyparsing==2.2.0’), set([‘calc’]))
You are using pip version 9.0.1, however version 19.2.1 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.”, “stderr_lines”: [“Exception:”, “Traceback (most recent call last):”, " File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/basecommand.py”, line 215, in main", " status = self.run(options, args)", " File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/commands/install.py”, line 335, in run", " wb.build(autobuilding=True)", " File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/wheel.py”, line 749, in build", " self.requirement_set.prepare_files(self.finder)", " File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/req/req_set.py”, line 380, in prepare_files", " ignore_dependencies=self.ignore_dependencies))", " File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/req/req_set.py”, line 521, in _prepare_file", " req_to_install.check_if_exists()", " File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/req/req_install.py”, line 1036, in check_if_exists", " self.req.name", " File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 558, in get_distribution", " dist = get_provider(dist)", " File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 432, in get_provider", " return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]", " File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 968, in require", " needed = self.resolve(parse_requirements(requirements))", " File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources/init.py”, line 859, in resolve", " raise VersionConflict(dist, req).with_context(dependent_req)", “ContextualVersionConflict: (pyparsing 2.0.7 (/edx/app/edxapp/venvs/edxapp/lib/python2.7/site-packages), Requirement.parse(‘pyparsing==2.2.0’), set([‘calc’]))”, “You are using pip version 9.0.1, however version 19.2.1 is available.”, “You should consider upgrading via the ‘pip install --upgrade pip’ command.”], “stdout”: “Obtaining file:///edx/app/edxapp/edx-platform/common/lib/calc (from -r /edx/app/edxapp/edx-platform/requirements/edx/base.txt (line 8))”, “stdout_lines”: [“Obtaining file:///edx/app/edxapp/edx-platform/common/lib/calc (from -r /edx/app/edxapp/edx-platform/requirements/edx/base.txt (line 8))”]}

I faced a similar issue with version conflict, I guess this happens when we forget to set the

OPENEDX_RELEASE

this variable or somehow it gets messed, not really sure.

What I do when I face ContextualVersionConflict is I remove the venv

Try to remove following folder:
/edx/app/edxapp/venvs

And then run the script again, see if that works. Good luck.