googleapiclient.discovery.build fails with module 'six.moves' has no attribute 'collections_abc' since version 1.12.0
See original GitHub issueEnvironment details
- OS type and version: 18.04.1-Ubuntu
- Python version: Python 3.6.9
- pip version:
pip --version
pip 9.0.1 google-api-python-client
version:pip show google-api-python-client
: Version: 1.12.0
Code example
googleapiclient.discovery.build() fails with message: module ‘six.moves’ has no attribute ‘collections_abc’
We only see this problem with google-api-python-client 1.12.0. 1.11.0 is fine.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
module 'six.moves' has no attribute 'collections_abc'
I'm using the google-api-python-client version 1.12.3 and six is version 1.15.0 so it's above 1.13.0 as well. – Ezekiel Kruglick. Oct 12, 2020 ......
Read more >Hello Analytics Reporting API v4; Python quickstart for service ...
AttributeError: 'Module_six_moves_urllib_parse' object has no attribute 'urlparse'. This error can occur in Mac OSX where the default ...
Read more >googleapiclient.discovery - Google APIs
Returns Discovery URIs to be used for attemnting to build the API Resource. source code · _retrieve_discovery_doc(url, http, cache_discovery, ...
Read more >google-api-python-client - PyPI
Google API Client Library for Python. ... Discovery documents will no longer be retrieved dynamically when you call discovery.build() .
Read more >google-api-python-client
ID Status Summary
297 Fixed Unresolved reference Type‑Defect Priority‑Medium
295 Started Version 1.2
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @jqll,
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 insix>=1.13.0
. See six’s changelog.https://github.com/googleapis/google-api-python-client/blob/5eff2d2e6173b3018361851c91b7b565b07ea608/setup.py#L37-L47
@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 upgradesix
. A new release1.12.1
should be released later today with the adjusted pin onsix
.Thanks for the quick fix!