Giter VIP home page Giter VIP logo

Comments (5)

henribru avatar henribru commented on September 24, 2024

Thanks for the heads up! I'm having some trouble reproducing this issue, unfortunately. Is it failing at a simple import google.rpc.code_pb2/from google.rpc import code_pb2? Which version of Mypy are you using? Do you have any other Google packages or stubs for them installed? You don't happen to have your own package called google or somthing like that?

from googleapis-common-protos-stubs.

henribru avatar henribru commented on September 24, 2024

One thing I'm noticing is that the PR you linked appears to actually have turned some subpackages that previously were not namespace packages into namespace packges. Namely all the ones with empty removed __init__.pys here: https://github.com/googleapis/python-api-common-protos/pull/187/files I should probably remove the corresponding __init__.pys in my stubs.

google.rpc isn't one of these, but google.rpc.context is. google.rpc also was never declared as a namespace package in setup.py. But not sure if any of that is relevant to the issue you're seeing.

from googleapis-common-protos-stubs.

sevein avatar sevein commented on September 24, 2024

I'll see if I can find a good way to show how to reproduce, will get back to you soon. Thanks!

from googleapis-common-protos-stubs.

sevein avatar sevein commented on September 24, 2024

I've just discovered that the problem started happening when I upgraded types-protobuf from 4.24.0.4 to 4.24.0.20240106. I don't understant what the problem is. This may be related: python/typeshed#11254. Feel free to close this issue, sorry for the noise!

from googleapis-common-protos-stubs.

henribru avatar henribru commented on September 24, 2024

I'm not able to reproduce it with that version of types-protobuf either, but it sounds plausible for that issue to be the cause. I'll close this, but let me know if it's not resolved after python/typeshed#11254 is fixed and I'll investigate further.

from googleapis-common-protos-stubs.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.