(software) mac@macdeMacBook-Pro encryption % pyarmor gen -e 2023-12-12 test.py
INFO Python 3.10.14
INFO Pyarmor 8.5.3 (group), 1111111, xxx
INFO Platform darwin.x86_64
INFO search inputs ...
INFO find script test.py
INFO find 1 top resources
INFO start to generate runtime files
INFO target platforms {'darwin.x86_64'}
INFO write dist/xx/xx.so
INFO generate runtime files OK
INFO start to obfuscate scripts
INFO process resource "test"
INFO obfuscating file test.py
INFO write dist/test.py
INFO obfuscate scripts OK
In this case, the error message should be: e1. However, I got the origin error message:
(software) mac@macdeMacBook-Pro encryption % python dist/test.py
Traceback (most recent call last):
File "/Users/mac/PycharmProjects/encryption/dist/test.py", line 2, in <module>
from xxx import __pyarmor__
File "/Users/mac/PycharmProjects/encryption/dist/HDTech2024/__init__.py", line 2, in <module>
from .pyarmor_runtime import __pyarmor__
RuntimeError: 脚本许可证已经过期 (1:11086)
I followed the steps in the doc(v.8.5.3) 1.3.8:
mkdir .pyarmor
vim .pyarmor/message.cfg
write new error messages in message.cfg:
Then, I tried to obfuscate the script
In this case, the error message should be: e1. However, I got the origin error message: