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 #5

Open
RickHH opened this issue Jun 13, 2022 · 5 comments
Open

importError #5

RickHH opened this issue Jun 13, 2022 · 5 comments

Comments

@RickHH
Copy link

RickHH commented Jun 13, 2022

Hi, it looks like I installed it successfully. But when I import, it shows 'ImportError: libc10.so: cannot open shared object file: No such file or directory' , Do you know why this happens? Thank you very much.

$ python setup.py install

running install
running bdist_egg
running egg_info
writing ctlib.egg-info/PKG-INFO
writing dependency_links to ctlib.egg-info/dependency_links.txt
writing top-level names to ctlib.egg-info/top_level.txt
/home/hrr/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/utils/cpp_extension.py:352: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
reading manifest file 'ctlib.egg-info/SOURCES.txt'
writing manifest file 'ctlib.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
creating build/bdist.linux-x86_64/egg
copying build/lib.linux-x86_64-3.7/ctlib.cpython-37m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg
creating stub loader for ctlib.cpython-37m-x86_64-linux-gnu.so
byte-compiling build/bdist.linux-x86_64/egg/ctlib.py to ctlib.cpython-37.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying ctlib.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ctlib.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ctlib.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying ctlib.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
pycache.ctlib.cpython-37: module references file
creating 'dist/ctlib-0.2.0-py3.7-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing ctlib-0.2.0-py3.7-linux-x86_64.egg
removing '/home/hrr/anaconda3/envs/pytorch/lib/python3.7/site-packages/ctlib-0.2.0-py3.7-linux-x86_64.egg' (and everything under it)
creating /home/hrr/anaconda3/envs/pytorch/lib/python3.7/site-packages/ctlib-0.2.0-py3.7-linux-x86_64.egg
Extracting ctlib-0.2.0-py3.7-linux-x86_64.egg to /home/hrr/anaconda3/envs/pytorch/lib/python3.7/site-packages
ctlib 0.2.0 is already the active version in easy-install.pth

Installed /home/hrr/anaconda3/envs/pytorch/lib/python3.7/site-packages/ctlib-0.2.0-py3.7-linux-x86_64.egg
Processing dependencies for ctlib==0.2.0
Finished processing dependencies for ctlib==0.2.0

(pytorch) hrr@hzhp-Z10PE-D8-WS:~/Proj/ctlib$ python
Python 3.7.6 (default, Jan 8 2020, 19:59:22)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.

import ctlib
Traceback (most recent call last):
File "", line 1, in
ImportError: libc10.so: cannot open shared object file: No such file or directory`

@xiawj-hub
Copy link
Owner

xiawj-hub commented Jun 14, 2022 via email

@RickHH
Copy link
Author

RickHH commented Jun 16, 2022

Hi Wenjun,

it works, thanks very much

Best
Rui

@xiawj-hub
Copy link
Owner

xiawj-hub commented Sep 19, 2022 via email

@ZeliangM
Copy link

Please see this repository https://github.com/Deep-Imaging-Group/Physics-Model-Data-Driven-Review Best, Wenjun From: ZeliangM @.> Sent: Monday, September 19, 2022 08:26 To: xwj01/CTLIB @.> Cc: xwj01 @.>; Comment @.> Subject: Re: [xwj01/CTLIB] importError (Issue #5) Hi Wenjun, it works, thanks very much Best Rui Hi ! I meet some errors. Can you give a simple example ? Thank you very much . — Reply to this email directly, view it on GitHub <#5 (comment)> , or unsubscribe https://github.com/notifications/unsubscribe-auth/AJRVWQJVJSCIJERPGC5WXHLV7BLXJANCNFSM5YSYAYQQ . You are receiving this because you commented. https://github.com/notifications/beacon/AJRVWQP3VPCYJUXV4XBWRODV7BLXJA5CNFSM5YSYAYQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOJKIAHZQ.gif Message ID: @.*** @.***> >

Thanks for your reply !
Although I have solved my error , your reply is meaningful for me. I am interested in your work , thanks for your recommendation.
Best Regards

@xiawj-hub
Copy link
Owner

xiawj-hub commented Oct 11, 2022 via email

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

3 participants