mherrmann / fbs

Create Python GUIs with Qt in minutes
https://build-system.fman.io
GNU General Public License v3.0
3.8k stars 194 forks source link

Does fbs support obfuscation using pyarmor? #245

Open proficy opened 3 years ago

proficy commented 3 years ago

I have a main.py script that does use ApplicationContext that works fine using both fbs run and fbs freeze. If I run pyarmor obfuscate main.py and move the files and replace the output to the python folder after removing the original main.py the code will run using fbs run but will throw the following error when run through the executable produced by fbs freeze --debug:

ModuleNotFoundError: No module named 'fbs_runtime'
[18140] Failed to execute script fbs_pyinstaller_hook

I am planning on purchasing fbs pro soon.

mherrmann commented 3 years ago

I don't know exactly what happened in the pyarmor obfuscate main.py call, and which files it affected. The PyQt5 version seems high to me. The free version of fbs (which you are using) was tested with 5.9.3 not 5.15.4. Pro supports the later version. Other than that, I can't give an additional hint I'm afraid.

proficy commented 3 years ago

Thanks @mherrmann! Let me purchase the pro version and test it out. If it doesn't work I'll throw together a simple example.