Skip to content

Ubuntu 25.04 Installation error: "ImportError: libtorch_cpu.so: cannot enable executable stack as shared object requires: Invalid argument" #2

@mikecaronna

Description

@mikecaronna

Hello. Thanks a lot for releasing this code. I have multiple volumetric captures that I'm really excited to try to run with Queen, but I'm having an issue installing on an AMD Ubuntu 25.04 system with an Nvidia RTX4090.

When I run the command "conda env create -f environment.yml" I get the below error. I'd really appreciate any pointers on how to resolve this.

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "", line 36, in
File "", line 34, in
File "/home/mikecaronna/Code/queen/submodules/diff-gaussian-rasterization/setup.py", line 13, in
from torch.utils.cpp_extension import CUDAExtension, BuildExtension
File "/home/mikecaronna/miniconda3/envs/queen/lib/python3.7/site-packages/torch/init.py", line 202, in
from torch._C import * # noqa: F403
ImportError: libtorch_cpu.so: cannot enable executable stack as shared object requires: Invalid argument
[end of output]

Here's the entire output:

(base) mikecaronna@jj-ubuntu-PC:~/Code/queen$ conda env create -f environment.yml
Channels:

  • pytorch
  • conda-forge
  • defaults
    Platform: linux-64
    Collecting package metadata (repodata.json): done
    Solving environment: done

Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: done
Executing transaction: - By downloading and using the CUDA Toolkit conda packages, you accept the terms and conditions of the CUDA End User License Agreement (EULA): https://docs.nvidia.com/cuda/eula/index.html

done
Installing pip dependencies: \ Ran pip subprocess with arguments:
['/home/mikecaronna/miniconda3/envs/queen/bin/python', '-m', 'pip', 'install', '-U', '-r', '/home/mikecaronna/Code/queen/condaenv.80qo2sla.requirements.txt', '--exists-action=b']
Pip subprocess output:
Processing ./submodules/diff-gaussian-rasterization
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'

Pip subprocess error:
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "", line 36, in
File "", line 34, in
File "/home/mikecaronna/Code/queen/submodules/diff-gaussian-rasterization/setup.py", line 13, in
from torch.utils.cpp_extension import CUDAExtension, BuildExtension
File "/home/mikecaronna/miniconda3/envs/queen/lib/python3.7/site-packages/torch/init.py", line 202, in
from torch._C import * # noqa: F403
ImportError: libtorch_cpu.so: cannot enable executable stack as shared object requires: Invalid argument
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

failed

CondaEnvException: Pip failed

Here's the output of Nvidia-smi
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 570.133.07 Driver Version: 570.133.07 CUDA Version: 12.8 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|

Thanks for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions