Git Product home page Git Product logo

Comments (3)

pcj avatar pcj commented on July 27, 2024

Hi @drtechniko thanks for trying this out. I've been looking for a solution to pull in python dependencies from pypi within bazel. There is not an existing solution yet, but @yugui is making good headway with https://github.com/gengo/rules_pypi.

My experiments with this so far show that it is possible to pull in the grpcio python dependency with rules_pypi, but I have to hack the source to not disable platform-specific compilation, and even then I'm getting import errors related to cython or something like that. Bottom line: not working yet.

The workaround is that you have to pip install grpcio on your local python install to make it globally available. Also, there were a few bugs in my example that have hopefully been fixed with 342e241. If you upgrade to this version I'd be interested to hear your results.

Note that rules_protobuf is not testing the examples/helloworld/python rules in travis due to it's experimental nature.

from rules_protobuf.

pcj avatar pcj commented on July 27, 2024

Note that experimental support for rules_pypi is on that branch (not yet functional): https://github.com/pubref/rules_protobuf/tree/rules_pypi

from rules_protobuf.

drtechniko avatar drtechniko commented on July 27, 2024

Thank you. Unfortunately I didn't get notified for some reason by github that you updated the ticket so I spent today to work around this to get moving in building my code using setup.py to generate protobufs. I also spent many hours using the gengo/rules_pypi to install grpcio. But I had no luck. They were also not working for me due to compilation errors in Python.h (tried it on a Docker from scratch to make sure my local env was not corrupted). I'm going to give this a shot again tomorrow with your new commit and see how it works. I can survive with having to install grpcio manually for now.

Also, I'm new to Bazel but I'd like to contribute PRs to the project. I expect our teams to use grpc with python extensively. If you have any suggestions on where to get started let me know.

from rules_protobuf.

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.