pyinstaller支持zeep吗?

2024-10-02 04:33:07 发布

您现在位置:Python中文网/ 问答频道 /正文

我的环境: 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')

Tags: namefromimportclienthostcachesessionservice
1条回答
网友
1楼 · 发布于 2024-10-02 04:33:07

据我所知,Pyinstaller不支持Python 3.8。我知道人们想增加支持,但我不知道他们是否成功和/或发布了支持。所以我认为这可能是它不适合你的原因

相关问题 更多 >

    热门问题