我正在使用导入from six.moves.urllib.parse import parse_qs
的库。
在dev_appserver(http://localhost:8000/console
)上,parse_qs
可以成功导入。
但是当我部署我的应用程序时,我得到了例外:
Traceback (most recent call last):
File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
handler, path, err = LoadObject(self._handler)
File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 96, in LoadObject
__import__(cumulative_path)
File "/base/data/home/apps/s~myapp/standalone:1.379863578027987467/modules/standalone/gapi/main.py", line 6, in <module>
from modules.standalone.gapi.v1.endpoints import xero
File "/base/data/home/apps/s~myapp/standalone:1.379863578027987467/modules/standalone/gapi/v1/endpoints/xero.py", line 9, in <module>
from xero.api import Xero
File "/base/data/home/apps/s~myapp/standalone:1.379863578027987467/xero/api.py", line 2, in <module>
from .manager import Manager
File "/base/data/home/apps/s~myapp/standalone:1.379863578027987467/xero/manager.py", line 7, in <module>
from six.moves.urllib.parse import parse_qs
ImportError: No module named urllib.parse
有什么想法吗?