0

I am trying to convert my python file to exe, but i am getting the following error:

File "C:\Users\AnasO\anaconda3\envs\Deep-LEARNING-YOLO11\Lib\site-packages\PyInstaller\compat.py", line 610, in importlib_load_source
    mod_loader.exec_module(mod)
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "C:\Users\AnasO\anaconda3\envs\Deep-LEARNING-YOLO11\Lib\site-packages\_pyinstaller_hooks_contrib\stdhooks\hook-torch.py", line 43, in <module>
    hiddenimports = collect_submodules("torch")
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\AnasO\anaconda3\envs\Deep-LEARNING-YOLO11\Lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 635, in collect_submodules
    modules, subpackages, on_error = isolated_python.call(_collect_submodules, name, on_error)
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\AnasO\anaconda3\envs\Deep-LEARNING-YOLO11\Lib\site-packages\PyInstaller\isolated\_parent.py", line 322, in call
    raise SubprocessDiedError(
PyInstaller.isolated._parent.SubprocessDiedError: Child process died calling _collect_submodules() with args=('torch', 'warn once') and kwargs={}. Its exit code was 3.

in my code I'm using ultralytics and torch.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.