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

Google Colab: OSError: Can not find library in the following directory #446

Closed
egorsmkv opened this issue Apr 4, 2024 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@egorsmkv
Copy link

egorsmkv commented Apr 4, 2024

Describe the bug

I am getting the following error in Google Colab:

---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
[<ipython-input-3-07b3c37279cb>](https://localhost:8080/#) in <cell line: 1>()
----> 1 import hidet

18 frames
[/usr/local/lib/python3.10/dist-packages/hidet/ffi/ffi.py](https://localhost:8080/#) in load_library()
     39         break
     40     if _LIB is None:
---> 41         raise OSError('Can not find library in the following directory: \n' + '\n'.join(library_dirs))
     42 
     43 

OSError: Can not find library in the following directory: 
/usr/local/lib/python3.10/dist-packages/hidet
/usr/local/lib/python3.10/dist-packages/hidet/lib
/usr/local/lib/python3.10/dist-packages
/usr/local/lib/python3.10/dist-packages/lib
/usr/local/lib/python3.10
/usr/local/lib/python3.10/lib
/usr/local/lib/python3.10/build/lib
/usr/local/lib/python3.10/build-release/lib
/usr/local/lib/python3.10/build-debug/lib

To Reproduce

run:

!pip install git+https://github.com/hidet-org/hidet

then run:

import hidet

Expected behavior

Normal importing of hidet

@egorsmkv egorsmkv added the bug Something isn't working label Apr 4, 2024
@egorsmkv
Copy link
Author

The problem is that we need to compile the library

@vadiklyutiy
Copy link
Collaborator

With hidet==0.5.0 should be fixed.

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