Skip to content
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

grpc tensor convert not valid for python 2 #301

Closed
ukclivecox opened this issue Nov 19, 2018 · 0 comments · Fixed by #317
Closed

grpc tensor convert not valid for python 2 #301

ukclivecox opened this issue Nov 19, 2018 · 0 comments · Fixed by #317

Comments

@ukclivecox
Copy link
Contributor

018-11-19,15:25:47.485 ERROR {_server} [_call_behavior] Exception calling application: 'memoryview' object has no attribute '__buffer__'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/grpc/_server.py", line 389, in _call_behavior
    return behavior(argument, context), True
  File "/microservice/model_microservice.py", line 122, in Predict
    features = grpc_datadef_to_array(datadef)
  File "/microservice/microservice.py", line 124, in grpc_datadef_to_array
    features =  np.frombuffer(memoryview(c[-(sz*8):]), dtype=np.float64, count=sz, offset=0)
AttributeError: 'memoryview' object has no attribute '__buffer__'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant