【发布时间】:2014-03-06 06:59:28
【问题描述】:
import suds
s = suds.client.Client('http://hello-world.org/ttsoapcgi.wsdl',
cache=suds.cache.NoCache())
我得到:
AttributeError: 'module' object has no attribute 'cache' for above line.
我已经安装了suds 0.3.7版本
这是什么原因,如何解决?
【问题讨论】:
-
您使用的是什么版本的泡沫?我用 suds 0.4 测试了你的代码,
suds.cache.NoCache()没有引发任何异常。 -
@BalthazarRouberol 我已经下载了 python-suds-0.3.7.tar.gz
-
我确认您使用的 API 在 0.3.7 版本中不存在。我建议你下载最新版本(例如:
pip)。 -
@BalthazarRouberol pip 命令安装 suds 0.4 ?
-
我猜该命令必须在文档中,但在这里。
pip install suds==0.4
标签: python python-2.7 client suds