几个星期前,我已经安装了Ubuntu 18.10在家里,今天我决定从Windows在家里移动到这个操作系统。
我用它为Python开发。
不幸的是,我面临着一些奇怪的错误,不知道如何解决它。
当我尝试运行项目中,我看到简单的要求在明年错误
File "/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/python/runtime/sandbox.py", line 1154, in load_module
raise ImportError('No module named %s' % fullname)
ImportError: No module named google.cloud.error_reporting
当我运行画中画显示google_cloud_error_reporting
它显示我对包正确信息
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Name: google-cloud-error-reporting
Version: 0.30.1
Summary: Stackdriver Error Reporting API client library
Home-page: https://github.com/GoogleCloudPlatform/google-cloud-python
Author: Google LLC
Author-email: googleapis-packages@google.com
License: Apache 2.0
Location: /home/p35/.local/share/virtualenvs/tt-T7X9xdJU/lib/python2.7/site-packages
Requires: google-cloud-logging
Required-by:
从输出gcloud --version
Google Cloud SDK 240.0.0
alpha 2019.03.22
app-engine-python 1.9.84
app-engine-python-extras 1.9.84
beta 2019.03.22
bq 2.0.42
cloud-datastore-emulator 2.1.0
core 2019.03.22
gsutil 4.37
kubectl 2019.03.22
我试图重新安装pipenv,setuptools的 ,项目依赖本身,但没有帮助我。
简化项目https://github.com/pahan35/google-cloud-error-reporting-import-bug
任何想法如何解决这个问题?