Skip to main content

No project description provided

Project description

gRPC Python Tools
=================

Package for gRPC Python tools.

Installation
------------

The gRPC Python tools package is available for Linux, Mac OS X, and Windows
running Python 2.7.

From PyPI
~~~~~~~~~

If you are installing locally...

::

$ pip install grpcio-tools

Else system wide (on Ubuntu)...

::

$ sudo pip install grpcio-tools

If you're on Windows make sure that you installed the :code:`pip.exe` component
when you installed Python (if not go back and install it!) then invoke:

::

$ pip.exe install grpcio-tools

Windows users may need to invoke :code:`pip.exe` from a command line ran as
administrator.

n.b. On Windows and on Mac OS X one *must* have a recent release of :code:`pip`
to retrieve the proper wheel from PyPI. Be sure to upgrade to the latest
version!

You might also need to install Cython to handle installation via the source
distribution if gRPC Python's system coverage with wheels does not happen to
include your system.

From Source
~~~~~~~~~~~

Building from source requires that you have the Python headers (usually a
package named :code:`python-dev`) and Cython installed. It further requires a
GCC-like compiler to go smoothly; you can probably get it to work without
GCC-like stuff, but you may end up having a bad time.

::

$ export REPO_ROOT=grpc # REPO_ROOT can be any directory of your choice
$ git clone https://github.com/grpc/grpc.git $REPO_ROOT
$ cd $REPO_ROOT
$ git submodule update --init

$ cd tools/distrib/python/grpcio_tools
$ python ../make_grpcio_tools.py

# For the next command do `sudo pip install` if you get permission-denied errors
$ pip install .

You cannot currently install Python from source on Windows. Things might work
out for you in MSYS2 (follow the Linux instructions), but it isn't officially
supported at the moment.

Troubleshooting
~~~~~~~~~~~~~~~

Help, I ...

* **... see a** :code:`pkg_resources.VersionConflict` **when I try to install
grpc**

This is likely because :code:`pip` doesn't own the offending dependency,
which in turn is likely because your operating system's package manager owns
it. You'll need to force the installation of the dependency:

:code:`pip install --ignore-installed $OFFENDING_DEPENDENCY`

For example, if you get an error like the following:

::

Traceback (most recent call last):
File "<string>", line 17, in <module>
...
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 509, in find
raise VersionConflict(dist, req)
pkg_resources.VersionConflict: (six 1.8.0 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.10'))

You can fix it by doing:

::

sudo pip install --ignore-installed six

* **... see compiler errors on some platforms when either installing from source or from the source distribution**

If you see

::

/tmp/pip-build-U8pSsr/cython/Cython/Plex/Scanners.c:4:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.

You can fix it by installing `python-dev` package. i.e

::

sudo apt-get install python-dev

If you see something similar to:

::

third_party/protobuf/src/google/protobuf/stubs/mathlimits.h:173:31: note: in expansion of macro 'SIGNED_INT_MAX'
static const Type kPosMax = SIGNED_INT_MAX(Type); \\
^
And your toolchain is GCC (at the time of this writing, up through at least
GCC 6.0), this is probably a bug where GCC chokes on constant expressions
when the :code:`-fwrapv` flag is specified. You should consider setting your
environment with :code:`CFLAGS=-fno-wrapv` or using clang (:code:`CC=clang`).

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

grpcio_tools-0.14.0.tar.gz (21.1 kB view details)

Uploaded Source

Built Distributions

grpcio_tools-0.14.0-cp27-cp27mu-manylinux1_x86_64.whl (17.2 MB view details)

Uploaded CPython 2.7mu

grpcio_tools-0.14.0-cp27-cp27m-win_amd64.whl (1.4 MB view details)

Uploaded CPython 2.7m Windows x86-64

grpcio_tools-0.14.0-cp27-cp27m-win32.whl (1.4 MB view details)

Uploaded CPython 2.7m Windows x86

grpcio_tools-0.14.0-cp27-cp27m-manylinux1_x86_64.whl (17.2 MB view details)

Uploaded CPython 2.7m

grpcio_tools-0.14.0-cp27-cp27m-macosx_10_10_intel.whl (2.6 MB view details)

Uploaded CPython 2.7m macOS 10.10+ intel

File details

Details for the file grpcio_tools-0.14.0.tar.gz.

File metadata

File hashes

Hashes for grpcio_tools-0.14.0.tar.gz
Algorithm Hash digest
SHA256 ef6391bcd89705b7bf13340d17b44a9ba7f159ab103166360899e428520a255d
MD5 18dd40dd0ffba48bbb8ab865b7fbd23a
BLAKE2b-256 7b2293b83676787ab07fb7f8d8dcea5351efd6ee62ca0dfba8799cc06f375b37

See more details on using hashes here.

Provenance

File details

Details for the file grpcio_tools-0.14.0-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for grpcio_tools-0.14.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2a1c943d8f64b0b60df09b91aba7d36fd23f4658927851ba29522bd468247708
MD5 17f49668efb32a04db0b352a38c84cb9
BLAKE2b-256 4777b7fe42c8dd8aafd1d79ba9a72265bd6d7eeec323080bc2700ca4f6222a4c

See more details on using hashes here.

Provenance

File details

Details for the file grpcio_tools-0.14.0-cp27-cp27m-win_amd64.whl.

File metadata

File hashes

Hashes for grpcio_tools-0.14.0-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 5028371a41cd6ccc843cad0e53e664a274e776e28359e0585b7498eec58a7f8f
MD5 d79ee588d007fc27af2f963948d637ae
BLAKE2b-256 d91abe3f43a1a8f3426d1ea716a883412da319a3fe0a180bce1fe638d079f7fe

See more details on using hashes here.

Provenance

File details

Details for the file grpcio_tools-0.14.0-cp27-cp27m-win32.whl.

File metadata

File hashes

Hashes for grpcio_tools-0.14.0-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 8727d8ebb4afeed83940e4c60db98f553479d8cf12e88eebdabe0cc766a4b2ac
MD5 505c287a09cb5a881da9b85080c45738
BLAKE2b-256 c0e5cdf293292f5b1a8c4f719d63be700e1503c6bea7f328a544b4ea0efcebaa

See more details on using hashes here.

Provenance

File details

Details for the file grpcio_tools-0.14.0-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for grpcio_tools-0.14.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6fcb7ef696aa3d0d59465b0b1dd00df1fb808befd0a7af25cd329f4544ff8fe1
MD5 84669014741cfa2c14f8da435b1c33cd
BLAKE2b-256 0c3f82193cdd902f9ff1340533e6c933a03883b32a23403454cd9723b513faa2

See more details on using hashes here.

Provenance

File details

Details for the file grpcio_tools-0.14.0-cp27-cp27m-macosx_10_10_intel.whl.

File metadata

File hashes

Hashes for grpcio_tools-0.14.0-cp27-cp27m-macosx_10_10_intel.whl
Algorithm Hash digest
SHA256 ac02ef4fb606e13a0437a321f797c06eb5cbd3b3193fcd883d055cf47c3a2e82
MD5 b9650032e55c7f8e3f52b87507229da5
BLAKE2b-256 6ce27502c0963c8018f4edbca91321c24767c48d2b6044ba4e16758eee0c825b

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page