From 110601d8e1b225ccee3696e82ace070239ec3d5a Mon Sep 17 00:00:00 2001 From: Ken Payson Date: Tue, 28 Jun 2016 11:37:27 -0700 Subject: Convert windows dll filename to bytes --- src/python/grpcio/grpc/_cython/cygrpc.pyx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/python/grpcio') diff --git a/src/python/grpcio/grpc/_cython/cygrpc.pyx b/src/python/grpcio/grpc/_cython/cygrpc.pyx index c92a8d19a7..7a8d0dd8a1 100644 --- a/src/python/grpcio/grpc/_cython/cygrpc.pyx +++ b/src/python/grpcio/grpc/_cython/cygrpc.pyx @@ -53,6 +53,8 @@ def _initialize(): if 'win32' in sys.platform: filename = pkg_resources.resource_filename( 'grpc._cython', '_windows/grpc_c.64.python') + if not isinstance(filename, bytes): + filename = filename.encode() if not pygrpc_load_core(filename): raise ImportError('failed to load core gRPC library') if not pygrpc_initialize_core(): -- cgit v1.2.3