pubsub 및 Google App Engine에서 작업하면서 pubsub_v1을 가져 오려고 할 때 psutil과 관련된 문제가 발생합니다. 내가 별도로 실행할 때 Pubsub 좋은 일을하고 있지만 앱 엔진 dev_appserver를 사용하는 경우,이 역 추적을 가지고 : pubsub는 CPU의 활동을 모니터링 할 때이 psutil에 실패처럼은 python SDK appengine/psutil에 대한 pubsub를 가져올 수 없습니다.
Traceback (most recent call last):
File "/Users/soussa77/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "/Users/soussa77/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
handler, path, err = LoadObject(self._handler)
File "/Users/soussa77/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 96, in LoadObject
__import__(cumulative_path)
File "/Users/soussa77/PycharmProjects/my-project/apps/app1/src/main.py", line 4, in <module>
from src.apis.app1 import App1Api
File "/Users/soussa77/PycharmProjects/my-project/apps/app1/src/apis/app1.py", line 11, in <module>
from google.cloud import pubsub_v1
File "/Users/soussa77/PycharmProjects/my-project/apps/app1/lib/google/cloud/pubsub_v1/__init__.py", line 17, in <module>
from google.cloud.pubsub_v1 import types
File "/Users/soussa77/PycharmProjects/my-project/app/waterp/lib/google/cloud/pubsub_v1/types.py", line 17, in <module>
import psutil
File "/Users/soussa77/PycharmProjects/my-project/apps/app1/lib/psutil/__init__.py", line 156, in <module>
from . import _psosx as _psplatform
File "/Users/soussa77/PycharmProjects/my-project/apps/app1/lib/psutil/_psosx.py", line 16, in <module>
from . import _psutil_osx as cext
File "/Users/soussa77/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/python/runtime/sandbox.py", line 1091, in load_module
raise ImportError('No module named %s' % fullname)
**ImportError: No module named psutil._psutil_osx**
것 같습니다.