-
Notifications
You must be signed in to change notification settings - Fork 1.6k
API Core PyType fails intermittently/changing errors #6833
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
Comments
One possible issue is not cleaning up the pytype output folder between runs. |
I tried running the pytype test again, with and without removing
Does this match how you're running pytype? |
@rchen You shouldn't need to create a separate virtualenv: $ nox -re pytype
nox > Running session pytype
nox > Re-using existing virtualenv at /home/tseaver/projects/agendaless/Google/src/gcp/api_core/.nox/pytype.
nox > pip install --upgrade . grpcio >= 1.8.2 grpcio-gcp >= 0.2.2 pytype >= 2018.9.26
nox > pytype
Analyzing 53 sources with 0 dependencies
ninja: Entering directory `.../api_core/pytype_output'
ninja: error: build.ninja:20: multiple rules generate .../api_core/pytype_output/pyi/google/api_core/general_helpers.pyi [-w dupbuild=err] but the module / file varies from run to run. |
I believe the error responsible for the "multiple rules generate" warning is in |
When I edit $ nox -re pytype
nox > Running session pytype
nox > Re-using existing virtualenv at .../api_core/.nox/pytype.
nox > pip install --upgrade . grpcio >= 1.8.2 grpcio-gcp >= 0.2.2 pytype >= 2018.9.26
nox > pytype
Analyzing 26 sources with 0 dependencies
ninja: Entering directory `.../api_core/pytype_output'
[3/26] pytype-single --imports_info /h..._core/google/api_core/path_template.py
FAILED: .../api_core/pytype_output/pyi/google/api_core/iam.pyi
pytype-single --imports_info .../api_core/pytype_output/imports/google.api_core.iam.imports --module-name google.api_core.iam -V 3.6 -o .../api_core/pytype_output/pyi/google/api_core/iam.pyi --analyze-annotated --nofail --quick .../api_core/google/api_core/iam.py
File ".../api_core/google/api_core/iam.py", line 248, in <module>: No attribute 'register' on Type[MutableMapping] [attribute-error]
For more details, see https://github.com/google/pytype/blob/master/docs/errors.md#attribute-error.
[26/26] pytype-single --imports_info /...gle/api_core/operations_v1/__init__.py
ninja: build stopped: cannot make progress due to previous errors.
nox > Command pytype failed with exit code 1
nox > Session pytype failed. I don't understand the error: |
OTOH, I think the call to |
Thanks for fixing this! The |
#6769
Copying from #6769 and @rchen152
The text was updated successfully, but these errors were encountered: