-
Notifications
You must be signed in to change notification settings - Fork 77
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
Build fails on Python 3.10 due to the collections
module
#180
Comments
Looks like it is a known issue which got fixed a couple of days ago ((Mar 17, 2022) in release 377.0.0: https://issuetracker.google.com/issues/202172882?pli=1 Let me install Python 3.10.2 and confirm |
(venv10.3) $ make lint
flake8 --ignore=E302,E203,E261 "slo_generator"/ --max-line-length=80
flake8 --ignore=E302,E203,E261,E402 tests/ --max-line-length=80
find ./"slo_generator" ./tests -name \*.py | xargs pylint --rcfile .pylintrc --ignore-patterns=test_.*?py
************* Module slo_generator.utils
slo_generator/utils.py:422:24: E1101: Module 'collections' has no 'Mapping' member (no-member)
------------------------------------------------------------------
Your code has been rated at 9.97/10 (previous run: 9.97/10, +0.00)
make: *** [Makefile:81: pylint] Error 123
(venv10.3) $ make unit
[...]
File "/home/laurent/workspace/github/google/slo-generator/venv3.10/lib/python3.10/site-packages/nose/suite.py", line 106, in _set_tests
if isinstance(tests, collections.Callable) and not is_suite:
AttributeError: module 'collections' has no attribute 'Callable'
make: *** [Makefile:69: unit] Error 1 |
Upon investigation, there is an easy fix for Fixing
and the official website starts with:
@ocervell WDYT? Is this a good opportunity to move to |
@lvaylet Sounds good to me. Had no idea nose was going to be discontinued... |
gcloud
fails to load on Python 3.10:Also, lint and unit tests fail to run on Python 3.10, example run here:
https://github.com/google/slo-generator/runs/4247056898?check_suite_focus=true
The text was updated successfully, but these errors were encountered: