我正在python2控制台中使用这些软件包
import google.auth.transport.requests as GoogleRequest
import google.oauth2.id_token as GoogleToken
它在我的python控制台(ubunto 16.04)中运行良好,但是当包含在我的项目文件中时,它给了我错误提示!
Traceback (most recent call last):
File "/home/logixgrid/Desktop/Desktop-Folder/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "/home/logixgrid/Desktop/Desktop-Folder/google_appengine/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
handler, path, err = LoadObject(self._handler)
File "/home/logixgrid/Desktop/Desktop-Folder/google_appengine/google/appengine/runtime/wsgi.py", line 96, in LoadObject
__import__(cumulative_path)
File "/var/www/html/shipper-dashboard/src/main.py", line 10, in <module>
from src.lib import routes
File "/var/www/html/shipper-dashboard/src/lib/routes.py", line 8, in <module>
from src.handler import dashboard, shipperInvoiceHandler, shipperReInviteCarrier, user_management, user_setting, carrier_master_data_handler, product_master_handler, shipper_carrier_masterdata_handler, sales_invoice_handler, dispatch_handler,carrier_pulse_handler,\
File "/var/www/html/shipper-dashboard/src/handler/dashboard.py", line 37, in <module>
import google.auth.transport.requests as GoogleRequest
File "/home/logixgrid/Desktop/Desktop-Folder/google_appengine/google/appengine/tools/devappserver2/python/runtime/sandbox.py", line 1132, in load_module
raise ImportError('No module named %s' % fullname)
ImportError: No module named google.auth