我试图运行一个在此网站上找到的程序, https://github.com/adcaes/blog/tree/master/soap_suds_client,但是我的库似乎有问题,因为它指出未定义'xmlrpclib'。我使用python3运行该程序,并将变量“ xmlrpclib”更改为“ xmlrpc.client”,因为它仅与python3兼容。但是,我仍然得到了错误。以下是我得到的错误:
NameError Traceback (most recent call last)
<ipython-input-24-44698063b367> in <module>
6
7 app = Flask(__name__)
----> 8 enterprise = Enterprise(app)
9
10
c:\users\n_syazwani\appdata\local\continuum\anaconda3\envs\study\lib\site-packages\flaskext\enterprise.py in __init__(self, app)
116 self.XMLRPCService = _BoundXMLRPCService
117 self.connect_to_soap_server = SudsClient
--> 118 self.connect_to_xmlrpc_server = xmlrpc.ServerProxy
119 self._sp = primitive
120 self._scls = clazz
NameError: name 'xmlrpclib' is not defined