Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.10 compatibility issue #1624

Closed
yj7 opened this issue Dec 12, 2021 · 1 comment · Fixed by #1629
Closed

Python 3.10 compatibility issue #1624

yj7 opened this issue Dec 12, 2021 · 1 comment · Fixed by #1629
Assignees
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@yj7
Copy link

yj7 commented Dec 12, 2021

Environment details

  • OS type and version: Windows 10
  • Python version: python --version 3.10.1
  • pip version: pip --version 21.2.4
  • google-api-python-client version: pip show google-api-python-client - 2.33.0

uritemplate package 3.0.0 is not compatible with python 3.10. Need to update the requirements.

Partial Stack Trace

service = build('gmail', 'v1', credentials=creds)
File "C:\JA\Envs\GIC\lib\site-packages\googleapiclient_helpers.py", line 130, in positional_wrapper
return wrapped(*args, **kwargs)
File "C:\JA\Envs\GIC\lib\site-packages\googleapiclient\discovery.py", line 219, in build
requested_url = uritemplate.expand(discovery_url, params)
File "C:\JA\Envs\GIC\lib\site-packages\uritemplate\api.py", line 33, in expand
return URITemplate(uri).expand(var_dict, **kwargs)
File "C:\JA\Envs\GIC\lib\site-packages\uritemplate\template.py", line 132, in expand
return self._expand(_merge(var_dict, kwargs), False)
File "C:\JA\Envs\GIC\lib\site-packages\uritemplate\template.py", line 97, in _expand
expanded.update(v.expand(expansion))
File "C:\JA\Envs\GIC\lib\site-packages\uritemplate\variable.py", line 338, in expand
expanded = expansion(name, value, opts['explode'], opts['prefix'])
File "C:\JA\Envs\GIC\lib\site-packages\uritemplate\variable.py", line 278, in _string_expansion
if dict_test(value) or tuples:
File "C:\JA\Envs\GIC\lib\site-packages\uritemplate\variable.py", line 363, in dict_test
return isinstance(value, (dict, collections.MutableMapping))
AttributeError: module 'collections' has no attribute 'MutableMapping'

@yoshi-automation yoshi-automation added the triage me I really want to be triaged. label Dec 13, 2021
@parthea parthea added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. and removed triage me I really want to be triaged. labels Dec 13, 2021
@yoshi-automation yoshi-automation added the triage me I really want to be triaged. label Dec 13, 2021
@parthea parthea added priority: p2 Moderately-important priority. Fix may not be included in next release. and removed triage me I really want to be triaged. labels Dec 13, 2021
@parthea parthea self-assigned this Dec 13, 2021
@parthea
Copy link
Contributor

parthea commented Dec 13, 2021

Hi @yj7,

Thanks for reporting this! I was able to recreate the issue. I've proposed a fix in PR #1629.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants