我正在尝试在 python Google App Engine 应用程序中使用 suds。这是回溯:
client = Client(url)
File "/base/data/home/apps/sandbox/test.349741318547153856/suds/client.py",
line 109, in __init__
options.cache = ObjectCache(days=1)
File "/base/data/home/apps/sandbox/test.349741318547153856/suds/cache.py",
line 141, in __init__
location = os.path.join(tmp(), 'suds')
File "/base/python_runtime/python_dist/lib/python2.5/tempfile.py",
line 45, in PlaceHolder
raise NotImplementedError("Only tempfile.TemporaryFile is
available for use")
NotImplementedError: Only tempfile.TemporaryFile is available for use
我尝试在client.py更改第 109 行:
options.cache = ObjectCache(days=1)
至:
options.cache = None
它现在有效,但我不确定这是否会影响未来的某些事情。
如果有人可以在这里帮助我,我真的很感激。
提前致谢。