0
我用GRPC在Ubuntu中,當進口* _pb2.py它通過run_codegen.sh產生的,我得到了下面的導入錯誤:使用GRPC GET導入錯誤,未定義的符號:grpc_google_iam_credentials_create
raceback (most recent call last):
File "q_db_op.py", line 2, in <module>
import db_op_pb2
File "/data/server/grpc/db_op_pb2.py", line 331, in <module>
from grpc.early_adopter import implementations
File "/usr/local/lib/python2.7/dist-packages/grpc/early_adopter/implementations.py", line 34, in <module>
from grpc._adapter import fore as _fore
File "/usr/local/lib/python2.7/dist-packages/grpc/_adapter/fore.py", line 38, in <module>
from grpc._adapter import _intermediary_low as _low
File "/usr/local/lib/python2.7/dist-packages/grpc/_adapter/_intermediary_low.py", line 57, in <module>
from grpc._adapter import _low
File "/usr/local/lib/python2.7/dist-packages/grpc/_adapter/_low.py", line 31, in <module>
from grpc._adapter import _c
ImportError: /usr/local/lib/python2.7/dist-packages/grpc/_adapter/_c.so: undefined symbol: grpc_google_iam_credentials_create
任何反饋將不勝感激。
這很棒,但它忽略了Nathaniel,他很可能是世界上最好的人來回答這個特殊問題,在這一點上,他沒有足夠的聲望來真正發表評論。 –
(我已經在一位經驗豐富的Stack Overflow用戶的指導下編輯了我的答案,以獲得更多答案;我希望現在它應該是什麼?) –