Virtualenv (and Tox) broken when run under python<3.6

Clark Boylan cboylan at
Mon Mar 2 17:18:58 UTC 2020

On Mon, Mar 2, 2020, at 9:12 AM, Clark Boylan wrote:
> A recent release of importlib-resources (1.1.0) no longer works on 
> python2.7 or python3.5. The issue is they import typing's 
> ContextManager which didn't exist until python3.6 [0]. This means that 
> python2 jobs and python3.5 jobs are currently unhappy if they need 
> virtualenv. Unfortunately, many of our jobs use tox which uses 
> virtualenv.

I noticed after sending the first email that it wasn't clear why tox and virtualenv are effected by an importlib-resources release. Virtualenv depends on importlib-resources [2] and tox uses virtualenv by default to create venvs.


More information about the openstack-discuss mailing list