pptk: pip install pptk doesn't work on ubuntu 18.04/kubuntu 18.04
Problem: After doing ‘pip install pptk’ on ubuntu/kubuntu 18.04, it doesn’t work.
Diagnosis: The ‘viewer’ doesn’t work because the libz.so.1 in site-packages/pptk/libs has some unresolved dependency issue.
Workaround:
- Rename the libz.so.1 in site-packages/pptk/libs
e.g
cd ~/.local/lib/python2.7/site-packages/pptk/libs/mv libz.so.1 libz.so.1.old - Create a soft link from /lib/x86_64-linux-gnu/libz.so.1 to the site-packages/pptk/libs
cd ~/.local/lib/python2.7/site-packages/pptk/libs/sudo ln -s /lib/x86_64-linux-gnu/libz.so.1
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 85
- Comments: 23
Commenting on behalf of conda/miniconda users: The correct path to the
libz.so.1you need to change is:<conda-dir>/envs/<env-name>/lib/python<X>.<Y>/site-packages/pptk/libs/Or in<conda-dir>/lib/python<X>.<Y>/site-packages/pptk/libs/if you’re running in conda root.Took me quite a while to figure out; I kept trying to link the
libz.so.1in<conda-dir>/lib/and<conda-dir>/envs/<env-name>lib/…Doesn’t work for me either on Debian Buster.
Also tried: ln -s /lib/x86_64-linux-gnu/libz.so.1.2.11 libz.s0.1
pptk doesn’t hang anymore but I get no viewer window.
I’m still running into this issue on RHEL7. I tried the symlink solution with no success. Might be worth noting that I’m doing this with X11 on a remote cluster, but that shouldn’t change anything, since I’m positive the X11 part is set up on the system side. Any suggestions?
I solved it in another way. For conda users: I modified the file in
<conda-dir>/envs/<env-name>/lib/python<X>.<Y>/site-packages/pptk/viewer/qt.confAs follows: