I'm using anaconda Nuitka packages to obfuscate my python script PASS.py
I've done below steps:
installed Microsoft visual studio community edition 2022 with python development and Desktop development with C++
I have also installed microsoft_build_tools_2015_update_3_x86_x64 and visual_2015_redistributable_update_3_x86
added to path system variable: clang.exe, clang++.exe and clang-cl.exe,
in my system there are in:
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\x64\bin
C:\Users\Dalia\anaconda3\pkgs\clang-14.0.6-h44fa016_0\Library\bin\
on anaconda prompt, I run below command
python -m nuitka --clang --follow-imports PASS.py
it shows below message:
Nuitka-Options:INFO: Used command line options: --clang --follow-imports PASS.py
Nuitka:INFO: Starting Python compilation with Nuitka '0.6.16' on Python '3.9' commercial None.
Nuitka:INFO: Completed Python level compilation and optimization.
Nuitka:INFO: Generating source code for C backend compiler.
Nuitka:INFO: Running data composer tool for optimal constant value handling.
Nuitka:INFO: Running C level backend compilation via Scons.
TypeError: not all arguments converted during string formatting:
File "C:\Users\Dalia\ANACON~1\lib\SITE-P~1\nuitka\build\Backend.scons", line 334:
addClangClPathFromMSVC(env=env, target_arch=target_arch)
File "C:\Users\Dalia\anaconda3\lib\site-packages\nuitka\build\SconsUtils.py", line 315:
scons_details_logger.info("No Clang component for MSVC found." % clang_dir)
I found the solution: just write cmd without "--clang"
python -m nuitka --follow-imports PASS.py