taichi: [PyPI] install with pip, libtinfo.so.5 not found
Describe the bug
I installed taichi using pip install --user taichi.
Log/Screenshots
[bate@archit gpu]$ pydoc taichi.GUI.is_pressed
[Taichi] mode=release
Share object taichi_core import failed. If you are on Windows, please consider installing "Microsoft Visual C++ Redistributable" (https://aka.ms/vs/16/release/vc_redist.x64.exe)
problem in taichi - ImportError: libtinfo.so.5: cannot open shared object file: No such file or directory
To Reproduce
A linux environment without libtinfo5, then python -c 'import taichi'.
If you have local commits (e.g. compile fixes before you reproduce the bug), please make sure you first make a PR to fix the build errors and then report the bug. See #790, I updated doc to tell them how to install, and ultimately we should remove this hard dep (#782)
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 26 (11 by maintainers)
I found where it is!!! We should use objdump, not readelf:
Even you don’t know it’s source? Well…I guess it’s related to spdlog, it would be great if we could tweak this statically-linked.
I already figure out how to install this dep, but some users may not, I hope they could run taichi codes as soon as they run
pip install taichi, rather than an ImportError.I mean, when releasing the prebuilt LLVM 10 we simply disable
LLVM_ENABLE_TERM_INFO. It’s gonna take a while for us to migrate, so we have to do the symlink for now…I have to run for a meeting - good night!
Ok, so we have to abandon LLVM 8 and 9 support now? Fine, just tell 8&9 users to manually do that symlink, not a big deal after all.
Right, not sure how easy that is though… LLVM does seem to have a related cmake option.
We can do it while upgrading to LLVM 10 #655
Thanks for the analysis!!
A few related discussions:
https://github.com/microsoft/vscode-cpptools/issues/3174#issuecomment-463692329
Thanks for the hard work - to be honest, I have no idea on that, but I believe you can figure out a nice solution in the end. Take care and don’t sleep too late! 😃
But how could spdlog print colorful log like
coloramadoes? Alsocatch.hppcan. Have to sleep now, go back to solve this tmr. See catch.hpp:6022, they use ANSI, no libtinfo.Clearly, now you know this dependency better than I do, so I’ll trust your decision.
It’s alias of libcurses, I confirmed.