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:

  1. 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
  2. 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

Most upvoted comments

Commenting on behalf of conda/miniconda users: The correct path to the libz.so.1 you 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.1 in <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.conf As follows:

[Paths]
Plugins=<conda-dir>/plugins