簡體   English   中英

pyinstaller 支持 zeep 嗎?

[英]does pyinstaller support zeep?

我的環境:python 3.8,zeep 4.0,pyinstaller 4.1

我用pyinstaller轉name.exe的時候成功了但是不行

這是我的代碼:

from zeep import Client
from zeep.cache import SqliteCache
from zeep.transports import Transport
from zeep.plugins import HistoryPlugin
from requests import Session
from requests.auth import HTTPBasicAuth
from urllib3 import disable_warnings
from urllib3.exceptions import InsecureRequestWarning
import osenter



disable_warnings(InsecureRequestWarning)
username = 'test'
password = 'test'
host = '192.168.200.201'
wsdl = 'AXLAPI.wsdl'
location = 'https://{host}:8443/axl/'.format(host=host)
binding = "{http://www.cisco.com/AXLAPIService/}AXLAPIBinding"
session = Session()
session.verify = False
session.auth = HTTPBasicAuth(username, password)
transport = Transport(cache=SqliteCache(), session=session, timeout=20)
history = HistoryPlugin()
client = Client(wsdl=wsdl, transport=transport, plugins=[history])
service = client.create_service(binding, location)
os.system("pause")
try:
    partition_resp = service.listPhone(
        searchCriteria={'name': 'CSF571130'}, returnedTags={'name': '', 'userLocale': '', 'phoneTemplateName': '', 'singleButtonBarge': '', 'numberOfButtons': '', 'model': '', 'product': '', 'ownerUserName': '', 'class': '', 'commonPhoneConfigName': '', 'securityProfileName': '', 'sipProfileName': '', 'softkeyTemplateName': '', 'devicePoolName': '', 'locationName': '', 'builtInBridgeStatus': '', 'useTrustedRelayPoint': '', 'certificateOperation': '', 'deviceMobilityMode': '', 'protocol': '', 'protocolSide': ''})
    print(partition_resp)
except:
    print('no')

據我所知,Pyinstaller 不支持 Python 3.8。 我知道人們想增加支持,但我不知道他們是否成功和/或是否已發布。 所以我認為這可能是它不適合你的原因。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM