Skip to content
Snippets Groups Projects

Set LD_LIBRARY_PATH pointing to torch libraries for onnxruntime

Merged Dmitri Konstantinov requested to merge fix-onnxruntime into master

Adding torch to onnxruntime dependencies started to cause the following error:

2022-05-25 02:34:26,242 tools_python_utils [INFO] - flatbuffers module is not installed. parse_config will not be available
Traceback (most recent call last):
  File "/build/jenkins/workspace/lcg_nightly_pipeline/build/pyexternals/onnxruntime-1.11.1/src/onnxruntime/1.11.1/tools/ci_build/build.py", line 23, in <module>
    from util import (  # noqa: E402
  File "/build/jenkins/workspace/lcg_nightly_pipeline/build/pyexternals/onnxruntime-1.11.1/src/onnxruntime/1.11.1/tools/python/util/__init__.py", line 19, in <module>
    from .pytorch_export_helpers import infer_input_info
  File "/build/jenkins/workspace/lcg_nightly_pipeline/build/pyexternals/onnxruntime-1.11.1/src/onnxruntime/1.11.1/tools/python/util/pytorch_export_helpers.py", line 5, in <module>
    import torch
  File "/build/jenkins/workspace/lcg_nightly_pipeline/install/dev3/torch/1.11.0/x86_64-centos7-gcc10-dbg/lib/python3.9/site-packages/torch/__init__.py", line 199, in <module>
    from torch._C import *  # noqa: F403
ImportError: libtorch_python.so: cannot open shared object file: No such file or directory

Defining env variable LD_LUBRARY_PATH pointing to torch libraries helps.

Edited by Dmitri Konstantinov

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading