-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when running the Python Sample #53
Comments
Where are you getting/building the gRPC library binaries from? Where are you getting/building the gRPC Python library binary First thoughts: On July 7 this commit went in via this PR. That changed the symbols, and this commit changed the Python code on July 22nd via this PR. I'm not sure, but this might be a problem upstream given that the bottle uses the 0.10.0 release, as that release doesn't appear to contain either of the commits above. I'm not sure, though, without knowing a little more explicitly about how you got your libs. |
So I'm building the core gRPC binaries from the main gRPC repo and I assume I'm getting the Python library binary from the bottle(?). As an experiment, I tried following the steps in the GRPC python docker image (which doesn't use brew) and that worked so it seems like your hunch is correct. In fact, on one of my failed iterations, I followed the dockerfile steps for everything but that doesn't build the grpc_python_plugin and when I tried getting that via brew I got the same error as above. However, on the next attempt when i build the grpc_python_plugin from source everything worked correctly. So it seems like there is something missing from the brew installation. |
Yeah, I don't think we have any guarantees that branch master of the gRPC repo will work with anything anywhere at any time. Your best bet's sticking with the release branches (release 0.10.0 should work with the homebrew install). |
So you would suggest either building everything from master or grabbing the Thanks, On Fri, Aug 7, 2015 at 4:42 PM, Masood Malekghassemi <
|
@tbetbetbe What's the policy? |
The policy is that while we're still in alpha, we're very much prone to On Fri, Aug 7, 2015 at 5:14 PM, Masood Malekghassemi <
|
I meant more along the lines of: what are our guarantees with respect to this homebrew install in terms of releases and versioning, if any? e.g. the homebrew install references release 0.10.0; do we guarantee that when installed it should work as intended with an install from the release branch of 0.10.0? etc. etc. etc. |
After installing the package either on Linux or Mac I get the following error when I run a sample from the grpc-common repo.
*** Linux Version ****
File "greeter_server.py", line 34, in
import helloworld_pb2
File "/home/arthur_zeyda/grpc-common/python/helloworld/helloworld_pb2.py", line 111, in
from grpc.early_adopter import implementations
File "/usr/local/lib/python2.7/dist-packages/grpc/early_adopter/implementations.py", line 34, in
from grpc._adapter import fore as _fore
File "/usr/local/lib/python2.7/dist-packages/grpc/_adapter/fore.py", line 38, in
from grpc._adapter import _intermediary_low as _low
File "/usr/local/lib/python2.7/dist-packages/grpc/_adapter/_intermediary_low.py", line 57, in
from grpc._adapter import _low
File "/usr/local/lib/python2.7/dist-packages/grpc/_adapter/_low.py", line 30, in
from grpc._adapter import _c
ImportError: /usr/local/lib/python2.7/dist-packages/grpc/_adapter/_c.so: undefined symbol: grpc_jwt_credentials_create
*** Mac Version *****
ImportError: dlopen(/Users/azeyda/Code/grpc/python_virtual_environment/lib/python2.7/site-packages/grpc/_adapter/_c.so, 2): Symbol not found: _gpr_convert_clock_type
Referenced from: /Users/azeyda/Code/grpc/python_virtual_environment/lib/python2.7/site-packages/grpc/_adapter/_c.so
Expected in: flat namespace
in /Users/azeyda/Code/grpc/python_virtual_environment/lib/python2.7/site-packages/grpc/_adapter/_c.so
The text was updated successfully, but these errors were encountered: