自从我安装了 Google Cloud 的 Python 包装器(使用sudo pip3 install google.cloud
),我就开始看到这个错误。
每次我运行python3
程序时,即使只使用交互式 shell,我也会看到以下错误:
Error processing line 10 of /usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/proto_google_cloud_datastore_v1-0.90.4-py3.6-nspkg.pth:
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site.py", line 168, in addpackage
exec(line)
File "<string>", line 1, in <module>
File "<frozen importlib._bootstrap>", line 557, in module_from_spec
AttributeError: 'NoneType' object has no attribute 'loader'
Remainder of file ignored
尽管存在上述错误,但一切正常,但每次运行python3
程序时都看到堆栈跟踪很烦人。