Torch import failed on .so file despite being present
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.6k
- Forks
- 155
- Avg merge
- 9h 42m
- Merged PRs (30d)
- 36
Description
Hi, I'm trying to run java + graalpy project. I managed to installed pytorch 2.7.0 using previously built .whl
Hovewer when I'm trying to import it I got:
Import failed: OSError: /graalpy_vfs/venv/lib/python3.12/site-packages/torch/lib/libtorch_global_deps.so: cannot open shared object file: No such file or directory
despite file being present.
Does torch require some additional configuration? I'm able to run polyleven and Pillow, both use the Python C API.
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
Reproduce the torch import from the Java + GraalPy project using the reported /graalpy_vfs/venv/lib/python3.12/site-packages/torch/lib/libtorch_global_deps.so path. Compare this failure with the working polyleven and Pillow imports, then identify whether additional configuration or compatibility work is required for the present shared library.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, python, pytorch
- Domain
- ai, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100