https://pantsbuild.org/ logo
#pex
Title
# pex
w

witty-crayon-22786

04/07/2020, 6:24 PM
before i dive in, has an error been resolved here recently? this is from pex
2.1.6
in the
1.26.x
pants branch:
Copy code
Traceback (most recent call last):
   File "/Users/stuhood/src/source/.pants.d/test/pytest-prep/CPython-2.7.16/9ea622545c7f4f99caa61a8eef94bfbd3992d5a7/.bootstrap/pex/pex.py", line 391, in execute
     working_set = self._activate()
   File "/Users/stuhood/src/source/.pants.d/test/pytest-prep/CPython-2.7.16/9ea622545c7f4f99caa61a8eef94bfbd3992d5a7/.bootstrap/pex/pex.py", line 89, in _activate
     for dist in env.activate():
   File "/Users/stuhood/src/source/.pants.d/test/pytest-prep/CPython-2.7.16/9ea622545c7f4f99caa61a8eef94bfbd3992d5a7/.bootstrap/pex/environment.py", line 232, in activate
     self._working_set = self._activate()
   File "/Users/stuhood/src/source/.pants.d/test/pytest-prep/CPython-2.7.16/9ea622545c7f4f99caa61a8eef94bfbd3992d5a7/.bootstrap/pex/environment.py", line 393, in _activate
     resolved = self._resolve(working_set, all_reqs)
   File "/Users/stuhood/src/source/.pants.d/test/pytest-prep/CPython-2.7.16/9ea622545c7f4f99caa61a8eef94bfbd3992d5a7/.bootstrap/pex/environment.py", line 275, in _resolve
     distributions_by_key[<http://distribution.as|distribution.as>_requirement().key].append(distribution)
 AttributeError: 'NoneType' object has no attribute 'as_requirement'
i don't think that i see anything in https://github.com/pantsbuild/pex/releases that would have affected this
h

hundreds-father-404

04/07/2020, 6:26 PM
I don’t remember ever seeing this?
w

witty-crayon-22786

04/07/2020, 6:28 PM
it occurs for four python targets at twitter in the 1.26.x branch during activation of the pytest pex
i'll see if i can figure out which requirement it is missing.
👍 1
...ohoho. it looks like this might be fixed in pex 2.1.7 ...? so that's handy? confirming.
💯 1
confirmed. excellent.
❤️ 1
1
now picked to
1.26.x