Skip to content

import error - Google AppEngine #1210

Closed

Description

@andrewhillsc
 (/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

Activity

  1. ThiefMaster commented on Dec 7, 2017

    @ThiefMaster
    Member

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

  2. flebel commented on Dec 11, 2017

    @flebel

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

  3. erlichmen commented on Dec 27, 2017

    @erlichmen

    I just released #1220 to handle this

  4. mitsuhiko commented on Dec 27, 2017

    @mitsuhiko
    Contributor

    This will be fixed by #1222.

  5. added this to the 0.14 milestone on Jan 3, 2018
  6. locked as resolved and limited conversation to collaborators on Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions