protobuf + pypy

Natalia Bidart nataliabidart at
Wed Aug 29 00:01:14 CEST 2012

On Tue, Aug 21, 2012 at 6:55 PM, Pedro Larroy
<pedro.larroy.lists at> wrote:
> Hi
> Anyone knows if it's possible to use protobuffers with pypy?   Seems
> there isn't much info on the web about this.

So, in my experience, the easiest way to confirm if something works
with PyPy (when you can't find proper bibliography in the web) is to
try to install it in a pypy virtualenv [0]:

(my-pypy-env)nessita at dali:~/projects/pypy/my-pypy-env$ pip install protobuf
Downloading/unpacking protobuf
  Downloading protobuf-2.4.1.tar.gz (56Kb): 56Kb downloaded
  Storing download in cache at
  Running egg_info for package protobuf

Requirement already satisfied (use --upgrade to upgrade): distribute
in ./site-packages/distribute-0.6.24-py2.7.egg (from protobuf)
Installing collected packages: protobuf
  Running install for protobuf
    Skipping installation of
(namespace package)

    Installing /home/nessita/projects/pypy/my-pypy-env/site-packages/protobuf-2.4.1-py2.7-nspkg.pth
Successfully installed protobuf
Cleaning up...

(my-pypy-env)nessita at dali:~/projects/pypy/my-pypy-env$ pypy
Python 2.7.2 (341e1e3821ff, Jun 07 2012, 15:38:48)
[PyPy 1.9.0 with GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``Python 2.x is not dead''
>>>> from google.protobuf import descriptor

Seems to work :-) (though I have no app using it right now).

Cheers, Natalia.

[0] Instructions on how to create a PyPy virtualenv:

More information about the Python-list mailing list