You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
googleapiclient.discovery.build fails with module 'six.moves' has no attribute 'collections_abc' since version 1.12.0 #1029
Our (Cloud Profiler team) probers failed, which is how we stumbled up on this. I am also curious why this was not caught in unit tests before it got merged and released.
Thanks for filing an issue. It looks like this is a result of not advancing the lower bound on six. collections_abc is only available in six>=1.13.0. See six's changelog.
# NOTE: Apache Beam tests depend on this library and cannot
# currently upgrade their httplib2 version.
# Please see https://github.com/googleapis/google-api-python-client/pull/841
"httplib2>=0.9.2,<1dev",
"google-auth>=1.16.0",
"google-auth-httplib2>=0.0.3",
"google-api-core>=1.21.0,<2dev",
"six>=1.13.0,<2dev",
"uritemplate>=3.0.0,<4dev",
]
@kalyanac At the moment tests always install the latest version of dependencies. We're going to move to having explicit requirements.txt for tests runs so we catch lower bound issues like this automatically in the future.
For now, you can use 1.11.0 or upgrade six. A new release 1.12.1 should be released later today with the adjusted pin on six.
Activity
tomthorogood commentedon Sep 14, 2020
This affects my team also, and now all of our Travis builds are failing.
NB: pinning our dependencies to 1.11.0 for now.
kalyanac commentedon Sep 14, 2020
Our (Cloud Profiler team) probers failed, which is how we stumbled up on this. I am also curious why this was not caught in unit tests before it got merged and released.
busunkim96 commentedon Sep 14, 2020
Hi @jqll,
Thanks for filing an issue. It looks like this is a result of not advancing the lower bound on
six.collections_abcis only available insix>=1.13.0. See six's changelog.google-api-python-client/setup.py
Lines 37 to 47 in 5eff2d2
@kalyanac At the moment tests always install the latest version of dependencies. We're going to move to having explicit
requirements.txtfor tests runs so we catch lower bound issues like this automatically in the future.For now, you can use
1.11.0or upgradesix. A new release1.12.1should be released later today with the adjusted pin onsix.kalyanac commentedon Sep 14, 2020
Thank you for the detailed response and the quick action.
jqll commentedon Sep 14, 2020
Thanks for the quick fix!