Dependency issues of libdali.so and backend_impl.so
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 5.8k
- Forks
- 678
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 27
Description
Hi, I met a strange issue when after compiling DALI from scratch on Ubuntu 18.04, Anaconda python 3.6.
I created a {build_root} for compile process, and no error occurred during compiling. But as long as I renamed or deleted the "{build_root}/dali/python/nvidia/dali/libdali.so" file, I would get the following error when excuting import:
python -c "import nvidia.dali"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/room/anaconda3/lib/python3.6/site-packages/nvidia/dali/__init__.py", line 17, in <module>
from . import ops
File "/home/room/anaconda3/lib/python3.6/site-packages/nvidia/dali/ops.py", line 19, in <module>
from nvidia.dali import backend as b
File "/home/room/anaconda3/lib/python3.6/site-packages/nvidia/dali/backend.py", line 15, in <module>
from nvidia.dali.backend_impl import *
ImportError: libdali.so: cannot open shared object file: No such file or directory
The python site-packages dir has the correct libdali.so file, but it seems that "backend_impl.cpython-36m-x86_64-linux-gnu.so" can only recognize "libdali.so" in the {build_root}, not site-packages dir in python. I guess there might be some dependency issues here ?
Any tips?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the compiled dali/python/nvidia/dali/libdali.so and backend_impl.cpython-36m-x86_64-linux-gnu.so, then reproduce the failure with python -c "import nvidia.dali" after removing the build-tree library. Compare the dependency resolution with the copy in the Python site-packages directory; done means the import works without the build-root libdali.so.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- anaconda, cpp, python, ubuntu
- Domain
- backend, build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100