Skip to content

Undefined symbol _ZN5torch7LibraryC1ENS0_4KindESsSt8optionalIN3c1011DispatchKeyEEPKcj #121

@bumi001

Description

@bumi001

I am posting this request for help here since the authors of extension-cpp-meson also contribute to this repo. I did the following to try to run it.

mkdir ~/cpp_tests
cd ~/cpp_tests
python3 -m venv .venv
source .venv/bin/activate
pip install torch numpy meson-python ninja
git clone https://github.com/daknuett/extension-cpp-meson.git
cd extension-cpp-meson
python -m pip install --no-build-isolation . -Cbuild-dir=build
cd
python
>>>import torch
>>>import extension_cpp

I get the following error:

Traceback (most recent call last):
File "", line 1, in
import extension_cpp
File "/home/sequoia/cpp_tests/.venv/lib/python3.13/site-packages/extension_cpp/init.py", line 3, in
from . import _C, ops
ImportError: /home/sequoia/cpp_tests/.venv/lib/python3.13/site-packages/extension_cpp/_C.cpython-313-x86_64-linux-gnu.so: undefined symbol: _ZN5torch7LibraryC1ENS0_4KindESsSt8optionalIN3c1011DispatchKeyEEPKcj

Any help in resolving this issue would be greatly appreciated!

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