Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import error - Google AppEngine #1210

Closed
andrewhillsc opened this issue Dec 7, 2017 · 4 comments
Closed

import error - Google AppEngine #1210

andrewhillsc opened this issue Dec 7, 2017 · 4 comments
Milestone

Comments

@andrewhillsc
Copy link

 (/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py:263)
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 85, in LoadObject
    obj = __import__(path[0])
  File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/devtools/cdbg/debuglets/python/imphook.py", line 114, in _ImportHook
    module = _real_import(name, globals, locals, fromlist, level)
  File "/base/data/home/apps/s~REDACTED/20171207t194833.406055908560331187/reportcard.py", line 9, in <module>
    from flask import Flask, jsonify, request
  File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/devtools/cdbg/debuglets/python/imphook.py", line 114, in _ImportHook
    module = _real_import(name, globals, locals, fromlist, level)
  File "/base/data/home/apps/s~REDACTED/20171207t194833.406055908560331187/lib/flask/__init__.py", line 17, in <module>
    from werkzeug.exceptions import abort
  File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/devtools/cdbg/debuglets/python/imphook.py", line 114, in _ImportHook
    module = _real_import(name, globals, locals, fromlist, level)
  File "/base/data/home/apps/s~REDACTED/20171207t194833.406055908560331187/lib/werkzeug/__init__.py", line 151, in <module>
    __import__('werkzeug.exceptions')
  File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/devtools/cdbg/debuglets/python/imphook.py", line 114, in _ImportHook
    module = _real_import(name, globals, locals, fromlist, level)
  File "/base/data/home/apps/s~REDACTED/20171207t194833.406055908560331187/lib/werkzeug/exceptions.py", line 71, in <module>
    from werkzeug.wrappers import Response
  File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/devtools/cdbg/debuglets/python/imphook.py", line 114, in _ImportHook
    module = _real_import(name, globals, locals, fromlist, level)
  File "/base/data/home/apps/s~REDACTED/20171207t194833.406055908560331187/lib/werkzeug/wrappers.py", line 37, in <module>
    from werkzeug.formparser import FormDataParser, default_stream_factory
  File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/devtools/cdbg/debuglets/python/imphook.py", line 114, in _ImportHook
    module = _real_import(name, globals, locals, fromlist, level)
  File "/base/data/home/apps/s~REDACTED/20171207t194833.406055908560331187/lib/werkzeug/formparser.py", line 14, in <module>
    from tempfile import SpooledTemporaryFile
ImportError: cannot import name SpooledTemporaryFile
@ThiefMaster
Copy link
Member

ugh, goddamn google app engine... I guess we should fallback to a normal TemporaryFile if SpooledTemporaryFile is not available

@flebel
Copy link

flebel commented Dec 11, 2017

Flask pins werkzeug to >=0.7. Pinning werkzeug to a ==0.12.x version in my project fixed it for now.

@erlichmen
Copy link

I just released #1220 to handle this

@mitsuhiko
Copy link
Contributor

mitsuhiko commented Dec 27, 2017

This will be fixed by #1222.

@davidism davidism added this to the 0.14 milestone Jan 3, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants