Closed jakkwis closed 1 week ago
Please debug hook script ./.pyarmor/hooks/main.py
as normal script, make sure it could be compiled by Python interpreter.
This script cames from pyarmor documentation
Anyway I got same error using below hook. Which works when used as plain script.
import os
from datetime import datetime
directory = "/tmp"
filepath = os.path.join(directory, str(datetime.now().strftime('%Y-%m-%d')))
with open(filepath, 'w') as file:
pass
print(f"Empty file created: {filepath}")
Reproduced in Python 3.11+, it will be fixed in next release.
Here is pre-release https://pyarmor.dashingsoft.com/downloads/temp/pyarmor-8.5.10.zip
Fixed in 8.5.10
error log
The error came up during obfuscating with hooks for python 3.12.4. Got:
project content
for project like this:
containing following files:
detailed err log
what works
obfuscating works for dummy hook like this
pyarmor man
pyarmor man
does not work