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

[Bug] ImportError: libcudart.so.11.0: cannot open shared object file: No such file or directory #3187

Open
2 tasks done
sceddd opened this issue Oct 23, 2024 · 0 comments
Open
2 tasks done

Comments

@sceddd
Copy link

sceddd commented Oct 23, 2024

Prerequisite

Environment

I tried to register a module for a custom yolo_world model, but end up with this issue

from mmcv.utils import collect_env; print(collect_env()) 

output:

Traceback (most recent call last):
  File "/home/victor-ho/work/CVOnly/TIP-Adapter/tool/main.py", line 46, in <module>
    print(collect_env())
  File "/home/victor-ho/anaconda3/envs/yolo-world/lib/python3.9/site-packages/mmcv/utils/env.py", line 72, in collect_env
    from mmcv.ops import get_compiler_version, get_compiling_cuda_version
  File "/home/victor-ho/anaconda3/envs/yolo-world/lib/python3.9/site-packages/mmcv/ops/__init__.py", line 2, in <module>
    from .active_rotated_filter import active_rotated_filter
  File "/home/victor-ho/anaconda3/envs/yolo-world/lib/python3.9/site-packages/mmcv/ops/active_rotated_filter.py", line 10, in <module>
    ext_module = ext_loader.load_ext(
  File "/home/victor-ho/anaconda3/envs/yolo-world/lib/python3.9/site-packages/mmcv/utils/ext_loader.py", line 13, in load_ext
    ext = importlib.import_module('mmcv.' + name)
  File "/home/victor-ho/anaconda3/envs/yolo-world/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ImportError: libcudart.so.11.0: cannot open shared object file: No such file or directory

Is it only support with version cuda-11.0 only or am I missing something?
my current cuda-12.6 nvidia-driver 560

Reproduces the problem - code sample

from mmcv.utils import collect_env
print(collect_env())

Reproduces the problem - command or script

git clone .../yolo-world
pip install torch wheel
pip install -e .

Reproduces the problem - error message

try to import custom modules end up with error

    ImportError: Failed to import custom modules from {'imports': ['custom_model'], 'allow_failed_imports': False}, the current sys.path is:
    .../TIP-Adapter/tool
    .../TIP-Adapter
    .../TIP-Adapter/custom_model
    ...nvs/yolo-world/lib/python39.zip
    ...nvs/yolo-world/lib/python3.9
    ...nvs/yolo-world/lib/python3.9/lib-dynload
    ...nvs/yolo-world/lib/python3.9/site-packages
You should set `PYTHONPATH` to make `sys.path` include the directory which contains your custom module

which i think it root cause is because of import failed mmcv

Additional information

for the version of the mmcv, it would be 2.0.0 i believe, because base on yolo_world requirement, mmcv need to be 2.0.0

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

1 participant