Skip to content

Conversation

@larryliu0820
Copy link
Contributor

Right now after

pip install executorch==1.1.0.dev20251001 --extra-index-url
https://download.pytorch.org/whl/nightly

Then run

python -c "from executorch.extension.llm.runner import MultimodalRunner"

I'm getting this error:

(executorch) [[email protected] /data/users/larryliu/executorch (main)]$ python -c "from executorch.extension.llm.runner import MultimodalRunner"
Traceback (most recent call last):
  File "/home/larryliu/.conda/envs/executorch/lib/python3.11/site-packages/executorch/extension/llm/runner/__init__.py", line 16, in <module>
    from executorch.extension.llm.runner._llm_runner import (  # noqa: F401
ImportError: libtorch_python.so: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/larryliu/.conda/envs/executorch/lib/python3.11/site-packages/executorch/extension/llm/runner/__init__.py", line 29, in <module>
    raise RuntimeError(
RuntimeError: LLM runner is not installed. Please build ExecuTorch from source with EXECUTORCH_BUILD_PYBIND=ON

This PR should fix it by properly point to the installation path of pytorch.

Summary

[PLEASE REMOVE] See CONTRIBUTING.md's Pull Requests for ExecuTorch PR guidelines.

[PLEASE REMOVE] If this PR closes an issue, please add a Fixes #<issue-id> line.

[PLEASE REMOVE] If this PR introduces a fix or feature that should be the upcoming release notes, please add a "Release notes: " label. For a list of available release notes labels, check out CONTRIBUTING.md's Pull Requests.

Test plan

[PLEASE REMOVE] How did you test this PR? Please write down any manual commands you used and note down tests that you have written if applicable.

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 1, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/14727

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure, 1 Unrelated Failure

As of commit 0ac144b with merge base d95143e (image):

NEW FAILURE - The following job has failed:

FLAKY - The following job failed but was likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 1, 2025
@larryliu0820 larryliu0820 force-pushed the fix_mm_pybind_nightly branch from 8f80818 to 1eb1c35 Compare October 1, 2025 18:56
@larryliu0820 larryliu0820 force-pushed the fix_mm_pybind_nightly branch 2 times, most recently from 175d178 to 82abf7c Compare October 1, 2025 19:42
Right now after
```
pip install executorch==1.1.0.dev20251001 --extra-index-url
https://download.pytorch.org/whl/nightly
```

Then run

```
python -c "from executorch.extension.llm.runner import MultimodalRunner"
```

I'm getting this error:

```
(executorch) [[email protected] /data/users/larryliu/executorch (main)]$ python -c "from executorch.extension.llm.runner import MultimodalRunner"
Traceback (most recent call last):
  File "/home/larryliu/.conda/envs/executorch/lib/python3.11/site-packages/executorch/extension/llm/runner/__init__.py", line 16, in <module>
    from executorch.extension.llm.runner._llm_runner import (  # noqa: F401
ImportError: libtorch_python.so: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/larryliu/.conda/envs/executorch/lib/python3.11/site-packages/executorch/extension/llm/runner/__init__.py", line 29, in <module>
    raise RuntimeError(
RuntimeError: LLM runner is not installed. Please build ExecuTorch from source with EXECUTORCH_BUILD_PYBIND=ON
```

This PR should fix it by properly point to the installation path of
pytorch.
@larryliu0820 larryliu0820 force-pushed the fix_mm_pybind_nightly branch from 82abf7c to 54ea077 Compare October 1, 2025 19:46
@larryliu0820 larryliu0820 added the release notes: none Do not include this in the release notes label Oct 1, 2025
@mergennachin
Copy link
Contributor

Do you have to something similar for Windows too?

Something like this: https://github.com/pytorch/executorch/pull/14446/files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants