Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
version 1.6.9 fails with null module __file__ attribute #756
On my arch linux system, after the pants upgrade to version 1.6.9, a number of pieces of pants functionality that make use of pex started failing with the following error message:
It looks like what's going on here is that https://github.com/pantsbuild/pex/blob/master/pex/pex.py#L178 is iterating over every module and extracting the
For posterity, this was a specific issue with namespace packages in Python 3.7+:
In particular, this was a CPython cleanup noted here: https://docs.python.org/3/whatsnew/3.7.html#other-cpython-implementation-changes as a bug fix for https://bugs.python.org/issue32305.