Skip to content

ImportError: libtorch_cpu.so: cannot enable executable stack as shared object requires: Invalid argument #1366

@mactemporal

Description

@mactemporal

Hello,
When parsing the command, uv run --extra cuda demo_toolbox.py the libraries install normally but after that the program does not launch and prompts :

Traceback (most recent call last):
  File "/home/user/Real-Time-Voice-Cloning/demo_toolbox.py", line 5, in <module>
    from toolbox import Toolbox
  File "/home/user/Real-Time-Voice-Cloning/toolbox/__init__.py", line 7, in <module>
    import torch
  File "/home/user/Real-Time-Voice-Cloning/.venv/lib/python3.9/site-packages/torch/__init__.py", line 197, in <module>
    from torch._C import *  # noqa: F403
ImportError: libtorch_cpu.so: cannot enable executable stack as shared object requires: Invalid argument

My system info :

OS: Arch Linux x86_64
Kernel: Linux 6.18.3-arch1-1
CPU: AMD Ryzen 7 7700X (16) @ 5.58 GHz
GPU 1: NVIDIA GeForce RTX 5070 [Discrete]
GPU 2: AMD Raphael [Integrated]

Thank you for your attention

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions