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 when import taso #85

Open
MingliSun opened this issue Apr 15, 2021 · 3 comments
Open

ImportError when import taso #85

MingliSun opened this issue Apr 15, 2021 · 3 comments

Comments

@MingliSun
Copy link

MingliSun commented Apr 15, 2021

I build TASO on ubuntu18.04(on cuda) and meet error when 'import taso' in python3.
here is error info:

Python 3.8.6 (default, Oct 6 2020, 03:22:36)
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import taso
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.8/dist-packages/taso-0.1.0-py3.8-linux-x86_64.egg/taso/init.py", line 1, in
from .core import *
ImportError: libtaso_runtime.so: cannot open shared object file: No such file or directory

And a Cmake Warning occured when cmake it and it seems it doesn't matter.

CMake Warning (dev) in CMakeLists.txt:
Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
empty CUDA_ARCHITECTURES not allowed. Run "cmake --help-policy CMP0104"
for policy details. Use the cmake_policy command to set the policy and
suppress this warning.

CUDA_ARCHITECTURES is empty for target "taso_runtime".
This warning is for project developers. Use -Wno-dev to suppress it.

Thanks

@Sagebati
Copy link

Sagebati commented May 25, 2021

I had the same problem, did you find any solution (I'm using a conda environment)? I had the same cmake warning

@KevinZ-718
Copy link

you can try cp /usr/local/lib/libtaso_runtime.so /home/yourname/anaconda3/lib/

@DLYLL
Copy link

DLYLL commented Apr 12, 2022

  1. find libtaso_runtime.so, it maybe in /usr/local/lib
  2. then, add this path to your LD_LIBRARY_PATH=/usr/local/lib
    it works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants