dashingsoft / pyarmor

A tool used to obfuscate python scripts, bind obfuscated scripts to fixed machine or expire obfuscated scripts.
http://pyarmor.dashingsoft.com
Other
3.06k stars 271 forks source link

[BUG] `argument "" doesn't exists` #1857

Closed Jeffrey2971 closed 2 days ago

Jeffrey2971 commented 4 days ago

(pyarmor_env2) C:\Users\jeffrey\Desktop\gui2\gui>pyarmor -d gen --pack onefile run.py INFO Python 3.8.19 INFO Pyarmor 8.5.10 (trial), 000000, non-profits INFO Platform windows.x86_64 DEBUG native platform windows.amd64 DEBUG home path: C:\Users\jeffrey.pyarmor INFO implicitly save obfuscated scripts to ".pyarmor\pack\dist" DEBUG command options: {'no_runtime': False, 'inputs': ['run.py'], 'output': '.pyarmor\pack\dist'} DEBUG install plugin: CodesignPlugin DEBUG install plugin: DarwinUniversalPlugin DEBUG Loaded ctypes backend INFO search inputs ... INFO find script run.py INFO find 1 top resources DEBUG C:\Users\jeffrey\miniconda3\envs\pyarmor_env2\python.exe -m PyInstaller.utils.cliutils.makespec run.py INFO call PyInstaller to generate specfile DEBUG C:\Users\jeffrey\miniconda3\envs\pyarmor_env2\python.exe -m PyInstaller --clean --workpath .pyarmor\pack\build run.spec INFO call PyInstaller to analysis, it may take several minutes ... INFO find extra resources: [''] ERROR argument "" doesn't exists INFO generate bug file "pyarmor.report.bug" ERROR something is wrong =============================================================

pyarmor.report.bug.log

jondy commented 4 days ago

Could you edit run.spec, replace line for name, path, kind in a.pure: with the following lines

print(nsrc, 'rsrc is ', repr(rsrc))
for name, path, kind in a.pure:
    print(name, path, kind)

And then run command

C:\Users\jeffrey\miniconda3\envs\pyarmor_env2\python.exe -m PyInstaller --clean --workpath .pyarmor\pack\build run.spec  

And copy output log here