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

Ambiguous import paths with mypy 0.780? #127

Closed
roitk opened this issue Jun 3, 2020 · 1 comment
Closed

Ambiguous import paths with mypy 0.780? #127

roitk opened this issue Jun 3, 2020 · 1 comment

Comments

@roitk
Copy link

roitk commented Jun 3, 2020

Hi!

We currently use mypy-protobuf in a typechecking CI step for buildgrid. With the release of mypy 0.780, we began to see the following error in the CI.

buildgrid/_protos/build/bazel/semver/semver_pb2.pyi: error: Source file found twice under different module names: 'buildgrid._protos.build.bazel.semver.semver_pb2' and 'build.bazel.semver.semver_pb2'
Found 1 error in 1 file (checked 144 source files)

We tried regenerating the .pyi files with the newer version of mypy, but the issue persisted, so we've had to roll back our mypy version.

Some additional information:

I'm not sure if this is an issue with mypy, mypy-protobuf, or our configuration, so please let us know if we should post this elsewhere!

@roitk
Copy link
Author

roitk commented Jun 3, 2020

It looks like another user has run into this problem, so this may not be caused by mypy-protobuf. python/mypy#8944

@roitk roitk closed this as completed Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant