Giter Site home page Giter Site logo

Comments (12)

srmo avatar srmo commented on May 27, 2024 1

Subscribing here to see if there's any progress on your side. We have trouble porting jABCI to 0.15+ tendermint because of those new gogoproto types.
jTendermint/jabci#34

from py-abci.

srmo avatar srmo commented on May 27, 2024 1

I'm currently trying out a more streamlined rebuild with ideas from the links you gave, @sbellem.
Looks promising so far.
What I'm doing is having the gogo.proto from the gogo repo next to the tendermint types proto and do some java options. I'm using the protoc maven plugin and say that it has to include stdTypes (the ones from google) as they are imported from gogo.proto.
This leads to generated files for tendermint.abci and gogoproto which seems to work. Currently still in testing but this looks good. (with the minor caveat that the CodeType type has vanished, nothing a constant class wont fix ;) )

from py-abci.

davebryson avatar davebryson commented on May 27, 2024 1

@sbellem Yes unfortunately I'm currently knee deep in Go programming on Ethereum. So any help you can provide is greatly appreciated!

from py-abci.

davebryson avatar davebryson commented on May 27, 2024 1

Should be resolved with the latest merges thanks to @sbellem. Leaving open for now until we test more.

from py-abci.

davebryson avatar davebryson commented on May 27, 2024

So if I'm understanding correctly, this is a fundamental problem with the latest types.proto file in tendermint?

from py-abci.

sbellem avatar sbellem commented on May 27, 2024

So if I'm understanding correctly, this is a fundamental problem with the latest types.proto file in tendermint?

Well, since I am not very knowledgeable with protobuf I wish to be careful to make conclusions, but it most certainly complicates things.

I am currently testing the simple approach of removing the annotations, and will report as soon as possible.

from py-abci.

davebryson avatar davebryson commented on May 27, 2024

At first glance, it looks like you need to add gogo protobuf to your build chain to properly compile it for Python bindings - but this is a very quick assessment. Here's an example:

https://github.com/bblfsh/client-python/blob/master/setup.py#L86

from py-abci.

sbellem avatar sbellem commented on May 27, 2024

Oh, interesting. I have tried using gogoprotobuf, following https://github.com/gogo/protobuf#more-speed-and-more-generated-code but ran into the import problem, reported in cockroachdb/cockroach#393:

FYI, the python-specific issue here is that protoc's python support assumes that the proto directory structure and python package structure are the same: importing github.com/gogo/protobuf/gogoproto/gogo.proto in a proto file translates to "import github.com.gogo.protobuf.gogoproto.gogo_pb2" in python. Using "github" as a top-level python package is basically a non-starter. Even if this were fixed and the top-level package remapped to "gogoproto", someone would need to own the "gogoproto" python package; there's no clean way for cockroach-python to distribute its own vendored version of gogoproto.

I could try the approach used in the link you provided.

In the meantime, the approach of removing the annotation yields positive results, but as pointed out by @srmo it does not mean that there cannot be unnoticed negative side effects.

from py-abci.

sbellem avatar sbellem commented on May 27, 2024

@davebryson just made a PR to show the naive approach of removing the annotations. You can consult the description of the PR for additional details.

I will resume work on this issue tomorrow. I am ok with helping resolving the issue, so please let me know if you prefer to tackle it yourself, or how I can help.

from py-abci.

sbellem avatar sbellem commented on May 27, 2024

@davebryson ah ok, that's fine! Thanks for letting me know!

So I'll take care of the issue then. Will keep you informed via this issue and PR #11 as progress is made..

from py-abci.

sbellem avatar sbellem commented on May 27, 2024

At first glance, it looks like you need to add gogo protobuf to your build chain to properly compile it for Python bindings - but this is a very quick assessment. Here's an example:

https://github.com/bblfsh/client-python/blob/master/setup.py#L86

@davebryson see PR #14 😄

from py-abci.

davebryson avatar davebryson commented on May 27, 2024

Closing for now. See abci-0.10.0 branch

from py-abci.

Related Issues (20)

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.