SOAPpy ライブラリを python 3 にインストールしようとしています。次のエラーが表示されます
"/../Downloads/SOAPpy-0.11.6/SOAPpy/__init__.py", line 3, in <module>
from version import __version__
ModuleNotFoundError: No module named 'version'
他の投稿で提案されている他の代替手段、たとえば zeep をインストールしようとしました。しかし、私が使用しなければならない URL がsoap
含まれており、他の代替手段では機能していません。
以下は、ここから使用しているスクリプトの例です
#!/usr/bin/python
import string
import hashlib
from SOAPpy import WSDL ## for extracting the URL of the endpoint (server script) from the WSDL file
from SOAPpy import SOAPProxy ## for usage without WSDL file
#1) Usage with WSDL (for extracting the URL of the endpoint)
wsdl = "https://www.brenda-enzymes.org/soap/brenda.wsdl"
password = hashlib.sha256("myPassword").hexdigest()
client = WSDL.Proxy(wsdl)
parameters = "j.doe@example.edu,"+password+",ecNumber*1.1.1.1#organism*Homo sapiens#"
resultString = client.getKmValue(parameters)
print resultString
これを解決する方法についての提案を求めたいと思います。