微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

使用 pyarmor 将数据添加到规格分析

如何解决使用 pyarmor 将数据添加到规格分析

我正在尝试将 https://github.com/NoahCardoza/CaptchaHarvester 模块导入到我的脚本中。我使用 pyaromor 使用以下命令编译和混淆我的脚本:

pyarmor pack -x "--recursive --bootstrap 2 --advanced 2 --enable-suffix --no-cross-protection " -e "--onefile --icon=Sim_Bot_logo.ico" --clean --name=FluidSims main.py

但是,当我尝试运行 exe 时,我开始遇到诸如 icon.png is missing 之类的错误。 我再次查看了文档 https://pypi.org/project/captcha-harvester/2.1.1/,它说以下是使用 pyarmor 编译的内容

If you are using this project with PyArmor and or PyInstaller then fear not,it has already been configured to work seamlessly when packages into an .exe file. All you have to do is add the following to your .spec file's Anaysis call.

Anaysis(datas=[
  ("icon.png",r"harvester\server"),("hcaptcha.html",r"harvester\server\templates"),("recaptcha-v2.html",("recaptcha-v3.html",("domains.html",r"harvester\server\templates")
])

我什至不知道这意味着什么,但我认为这就是问题所在。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。