Python Suds SyntaxError:语法无效

时间:2017-06-01 18:59:01

标签: python suds

转而编译以下代码:

Sub test()

'find description
Cells.Find(What:="Description", After:=ActiveCell, LookIn:=xlValues, _
  LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
  MatchCase:=False, SearchFormat:=False).Activate


Selection.Offset(1, 0).Select 'Offset after find
Range(Selection, Selection.End(xlDown)).Select 'Selects to end

Dim DescriptionValues As Range
DescriptionValues = Active.Range

ActiveSheet.Range("B10") = DescriptionValues 'put stored text starting in B1

End Sub

shell的输出是:

from suds.client import Client
import time

url = 'https://webapi.allegro.pl/service.php?wsdl'
client = Client(url)

我怎么能让它发挥作用?

2 个答案:

答案 0 :(得分:0)

我遇到了同样的问题。在我另外安装了 suds-jurko 之后,它突然开始工作了。

pip3 install suds-jurko

答案 1 :(得分:-1)

尝试

例外的e

它不是关于suds,它的python语法错误。