Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java, python, pytorch
Domain
ai, backend

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.

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.

Dominant language
Python
Stars
1.6k
Forks
155
Avg merge
8h 58m
Merged PRs (30d)
39

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.

More from oracle/graalpython

All issues in oracle/graalpython

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.