question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

googleapiclient.discovery.build fails with module 'six.moves' has no attribute 'collections_abc' since version 1.12.0

See original GitHub issue

Environment 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
busunkim96commented, 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_abc is only available in six>=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 upgrade six. A new release 1.12.1 should be released later today with the adjusted pin on six.

0reactions
jqllcommented, Sep 14, 2020

Thanks for the quick fix!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found