首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >pyinstaller支持zeep吗?

pyinstaller支持zeep吗?
EN

Stack Overflow用户
提问于 2020-12-31 14:13:03
回答 1查看 58关注 0票数 0

我的环境: python 3.8、zeep 4.0、pyinstaller 4.1

当我使用pyinstaller传输name.exe时,它成功了,但它不起作用

这是我的代码:

代码语言:javascript
复制
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')
EN

回答 1

Stack Overflow用户

发布于 2020-12-31 18:20:50

据我所知,Pyinstaller不支持Python3.8。我知道人们想要添加支持,但我不知道他们是否成功和/或它被发布了。所以我认为这可能是它对你不起作用的原因。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65517308

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档