[pypy-issue] Issue #2637: Cannot create a gRPC server with PyPy (pypy/pypy)

Omer Katz issues-reply at bitbucket.org
Sun Aug 20 05:17:36 EDT 2017


New issue 2637: Cannot create a gRPC server with PyPy
https://bitbucket.org/pypy/pypy/issues/2637/cannot-create-a-grpc-server-with-pypy

Omer Katz:

This issue is present in PyPy2/3 5.8.0 and possibly previous versions which I haven't checked.
When creating a gRPC server we get an RPython fatal error because CPyListStrategy_getstorage_copy is not implemented.

You can reproduce this problem by installing grpc:

```
#!bash

pip install grpcio
```

and running the following script:

```
#!python

import grpc
from concurrent import futures
server = grpc.server(futures.ThreadPoolExecutor(max_workers=1))
server.start()
```

The code snippet above returns the following error:

```
#!text

RPython traceback:
  File "pypy_interpreter.c", line 38711, in BuiltinCode4_fastcall_4
  File "implement_2.c", line 12927, in fastfunc_descr_setslice_4
  File "pypy_objspace_std_1.c", line 22711, in EmptyListStrategy_setslice
  File "pypy_module_cpyext_2.c", line 16832, in CPyListStrategy_getstorage_copy
Fatal RPython error: NotImplementedError
Aborted (core dumped)
```




More information about the pypy-issue mailing list