Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

from suds.client import Client failed

Tags:

python

wcf

suds

I just learn python for not a long time. When I try to use python to write a WCF client, I failed at the start up. just type the command at python shell:

 from suds.client import Client

it failed with:

 Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Program Files\Python36\lib\site-packages\suds\client.py", line 242
    except Exception, e:
                    ^
SyntaxError: invalid syntax

How to fix it?

like image 901
txiangyang Avatar asked Jan 19 '26 14:01

txiangyang


1 Answers

Looks like you need to update suds or install suds for python3. You are currently using suds for python2

Suds Python3:

like image 62
Rakesh Avatar answered Jan 22 '26 02:01

Rakesh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!