Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError #35

Open
qinsiyuan-cool opened this issue Oct 2, 2024 · 1 comment
Open

ImportError #35

qinsiyuan-cool opened this issue Oct 2, 2024 · 1 comment

Comments

@qinsiyuan-cool
Copy link

my env:
Python 3.10.13
torch version 2.4.1
Cuda compilation tools, release 12.6, V12.6.68
Build cuda_12.6.r12.6/compiler.34714021_0
I install "causal_conv1d-1.4.0+cu122torch2.4cxx11abiTRUE-cp310-cp310-linux_x86_64.whl" successfully by pip
but when i run my program,it give an Error"ImportError: /data/conda_envs/.../lib/python3.10/site-packages/causal_conv1d_cuda.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZN3c107WarningC1ESt7variantIJNS0_11UserWarningENS0_18DeprecationWarningEEERKNS_14SourceLocationENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb
"

@sadimanna
Copy link

sadimanna commented Oct 2, 2024

I was having the same issue right now. I was also getting the error when using torch-2.4.1 compiled with cuda12.1. I think this happened sue to using a pre-built wheel on a system with a different cuda version. I simply uninstalled the version installed using wheel. And then simply executed the command

python3 -m pip install causal_conv1d>=1.4.0 mamba_ssm>=2.2.2

After that i got no error when importing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants