问题标签 [pyarmor]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - 在 Mac 上将 pyarmor/pyinstaller 打包为 unix 可执行文件后,Python 脚本无法再找到文件
我的问题是,当我使用 pyarmor 或 pyinstaller 打包 .py 脚本时,脚本再也找不到我的文件了。我正在使用此代码读取文件:
我发现脚本/Users/{username}用作绝对文件路径,这是我的问题。因为无论文件从哪里开始,它总是使用这个/Users/{username}路径。我什至尝试使用以下方法获取文件路径:
workingpath = str(Path().absolute())
但即便如此,它也会返回/Users/{username}。这个问题有什么解决办法吗?提前感谢您的帮助。
python - PyArmor,“代码对象太大,试用版限制为 32768 字节”错误即使文件大小为 30K
问题
我想用 PyArmor 混淆我的 Python 脚本。最初它的文件大小是 45 KB,我得到了一个错误;
于是我去掉了注释和空行,大小变成了30K。但我仍然遇到同样的错误。我该如何解决?
顺便说一句,我注意到 PyArmor 混淆了一些大于 32768 字节的文件。这个我也不明白。
版本
- Ubuntu 18.04.5 LTS
- PyArmor 试用版 6.6.0
python - 如何从 Python 脚本创建 exe?
我正在尝试创建一个生成 exe 的 python 脚本。但我想让它运行,这样用户就不需要安装 python 来运行脚本。这是我的代码:(已使用 pyinstaller 转换为 exe)
所以我的代码基本上是一个生成exe的exe。但问题是用户需要安装 Python 才能运行这个 exe(原来的那个)。pyinstaller --onefile output.py由于所有这些代码都是在 cmd中写出的。我阅读了 pyinstaller 的文档,但没有发现任何有用的东西。
python - 如何使用 pyarmor 用外部 pip 模块混淆整个程序?
我有一个 python 项目,它由虚拟环境中的不同文件、本地模块和 pip 模块组成:
我想在我的程序上使用“pyarmor”来“混淆”代码。
我试图混淆包,但结果不是我所期望的,文件夹被排除在进程之外。
我怎样才能混淆这样的python程序?
pyarmor - 皮尔莫尔
嘿,我试图在我的运动鞋软件上使用 pyarmor,但是当我使用 pyarmor 将机器人作为 exe 文件运行时,我收到此错误:[18:31:01.868874][TASK 001] Parsing product info <class 'IndexError'> <frozen sites.mytheresa> 148 [18:31:02.180784][TASK 001] Error parsing product page: list index out of range当我不使用 pyarmor 运行时,它运行良好。有谁知道为什么?
pyarmor - Pyarmor - 元帅加载失败
如何解决“运行时的 python 版本与构建时不同”的问题。
当我尝试运行文件夹中存在的混淆文件时,我收到此错误。
请在这件事上给予我帮助!!
python - How can you tell if someone is running a decompiled / de-obfuscated version of your code?
I recently used PyArmor to obfuscate some code. I know that there's no completely fool-proof way to prevent someone from de-obfuscating your code, but is there a way to definitively know whether a user is running the obfuscated or de-obfuscated version?
One idea I considered was to identify certain functions that run at notably different speeds when obfuscated vs. de-obfuscated. In this case, I could send that particular function's execution time to a server that would verify whether the function was run in an obfuscated or a de-obfuscated program. I haven't been able to find any functions that fit the bill though.
Any help would be much appreciated
python - 将定制的 Pyinstaller .spec 文件与 PyArmor 一起使用
如果我的 Python 2 脚本已使用 PyInstaller 4.3 使用自定义.spec文件和命令打包
我们如何使用 PyArmor 6.7.2 使用相同的.spec文件打包相同的 Python 脚本?
运行以下命令
导致错误
makespec.py:错误:无法识别的参数:./start.py
我们如何解决这个问题?
PyArmor 输出:
为什么它仍在尝试生成另一个 .spec 文件?
foo.spec:
python - 使用pyarmor后python无法调试
一个 python 文件使用 pyarmor-package 导入另一个文件。结果,我无法在导入后调试所有代码。我怎么解决这个问题
