dashingsoft / pyarmor

A tool used to obfuscate python scripts, bind obfuscated scripts to fixed machine or expire obfuscated scripts.

Home Page:http://pyarmor.dashingsoft.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] `ModuleNotFoundError: No module named 'distutils'`

KlubJoony opened this issue · comments

Please read this first before report any issue
https://pyarmor.readthedocs.io/en/latest/questions.html

If this issue has been documented and there is solution in FAQ, it will be marked as documented and be closed it immediately.

Do not ask questions here but in discussions, it will be closed immediately.

A good report should have

  • A clear title
  • Reproduced steps
  • Expected results and actual results

Please also provide necessary log (but not full log), for example, the whole command options pyarmor gen and first 4 logs in the console, paste the text directly, DO NOT paste IMAGE

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\Joon\AppData\Local\Programs\Python\Python312\Scripts\pyarmor.exe\__main__.py", line 4, in <module>
  File "C:\Users\Joon\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyarmor\pyarmor.py", line 59, in <module>
    import packer
  File "C:\Users\Joon\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyarmor\packer.py", line 47, in <module>
    from distutils.util import get_platform
ModuleNotFoundError: No module named 'distutils'


In order to save time for both of us, if the bug report is not clear or missing necessary information, it will be marked as invalid and be closed immediately.

my python version is Python 3.12.2 I have installed pyarmor version 8.5.0 and it comes up with this error. please fix, I have read that this has been fixed in the released however the same error occurs.