Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: libyaml-cpp.so.0.6: cannot open shared object file: No such file or directory #36

Closed
tyamakawatt opened this issue Jul 22, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@tyamakawatt
Copy link

I have libyaml-cpp.so.0.7 installed. When I try to import pybuda I see the following error:

Traceback (most recent call last):
  File "/home/todd/tt-please/smoke.py", line 2, in <module>
    import pybuda
  File "/home/todd/tt-please/venv/lib/python3.10/site-packages/pybuda/__init__.py", line 42, in <module>
    from .module import Module, PyTorchModule, PyBudaModule, TFModule, TFGraphDefModule, OnnxModule, MXNetModule, JaxModule, TFLiteModule
  File "/home/todd/tt-please/venv/lib/python3.10/site-packages/pybuda/module.py", line 14, in <module>
    from .pybudaglobal import register_module, lazy_trace_data
  File "/home/todd/tt-please/venv/lib/python3.10/site-packages/pybuda/pybudaglobal.py", line 16, in <module>
    from pybuda._C.backend_api import BackendType
ImportError: libyaml-cpp.so.0.6: cannot open shared object file: No such file or directory

I have 0.7 installed, is there any reason it needs to be 0.6?

lrwxrwxrwx 1 root root 18 Mar 25  2022 /usr/lib/x86_64-linux-gnu/libyaml-cpp.so -> libyaml-cpp.so.0.7
@milank94 milank94 added the bug Something isn't working label Jul 22, 2024
@milank94 milank94 self-assigned this Jul 22, 2024
@milank94
Copy link

Hi @tyamakawatt .

Which version of OS are you on? I'm assuming Ubuntu 22.04?

If that is the case, then yes, you need version 0.6. We have instruction in the first 5 steps for downloading the correct version of libyaml-cpp-dev based on OS: https://github.com/tenstorrent/tt-buda-demos/blob/main/first_5_steps/1_install_tt_buda.md#backend-compiler-dependencies

@tyamakawatt
Copy link
Author

Hi @milank94, I am on Ubuntu 22.04. When I use the docs you pointed me to, import pybuda works now. Thanks for your help.

It looks like the docs linked in the README are out of date so I submitted a PR to update the docs to the link you sent me: #38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants