oracle / oracle/graalpython

Torch import failed on .so file despite being present

Open
#579 4 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.