pptk: pptk.view() hangs without showing debug/info/error information

Hi there, following the example, pptk.view() hangs without showing any information. How to reproduce:

import numpy as np
import pptk
x = np.random.rand(100, 3)
pptk.viewer(x)

I’m running pptk 0.1.0 installed via pip install --user pptk with Python 3.7.1 on an x64 Arch Linux machine.

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Reactions: 1
  • Comments: 21

Most upvoted comments

@chabardt instructions solved the issue for me, for some reason I had the file /usr/lib/python3.7/site-packages/pptk/libs/libz.so.1 but it wasn’t working properly, so I did a symlink from the “OS version” of the same file (/usr/lib/libz.so.1) and that solve the issue. (I had this issue using virtual env so I create the symlink inside the virutal env directory and it did work)

Commands: remove the old file rm ./venv/lib/python3.6/site-packages/pptk/libs/libz.so.1 create the synlink: ln -s /usr/lib/libz.so.1 ./venv/lib/python3.6/site-packages/pptk/libs/libz.so.1 (again I’m using virtual env, if you are using the OS paths, follow chabardt comment paths)

pptk freezes on archlinux because the viewer does not launch. the socket just wait for a connection forever.

QT_DEBUG_PLUGINS=1 /usr/lib/python3.7/site-packages/pptk/viewer 0

This command shows that libz.1.2.9 is required.

Fixed it by compiling libz.1.2.9 and make a symbolic link to /usr/lib/python3.7/site-packages/pptk/libs/libz.so.1

hope it helps

Same problem here. I’m running Ubuntu 18.04 with numpy-1.14.4 and pptk-0.1.0. The program just desn’t respond anymore after the call to pptk.viewer.

EDIT: The workaround in issue #3 works for me.

For those who use anaconda environments: I used the following command.

ln -s /home/{user_name}/anaconda3/envs/{env_name}/lib/libz.so.1 /home/{user_name}/anaconda3/envs/{env_name}/lib/python3.7/site-packages/pptk/libs/libz.so.1

This works for Ubuntu 18.04

Does anyone know how to solve this issue for Windows 10 and python 3.7?

I have the save problem in win10 +python3.7. But I solved it. It may be the problem of “Remote Desktop Connection” if you use it. Because OpenGL is NOT supported when openning “Remote Desktop Connection”. IF you use “Remote Desktop Connection”, just change another remote software. IF NOT, please check if driver in your remoted computer support OpenGL.

@ivan-scale Your solution worked like a charm, thanks mate!.

I use Anaconda (Ubuntu 18) so I linked it to /home/my_user/anaconda3/envs/my_env/lib/libz.so.1 instead of /usr/lib/libz.so.1

I work with Linux 18.04 and the solution was way easier. In the terminal I added the following line and it worked just fine: $ …//lib/python3.6/site-packages/pptk/libs$ mv libz.so.1 libz.so.1.old I guess the problem is that there are two times the same library and then gets in conflict. By placing this one with a different name then the problem stops. I guess one could also remove it. Up to you.

A version of the solution posted by @ivan-scale . Ubuntu 20.04 I could not find the libz.so.1 file under the given path /usr/lib/libz.so.1

I was using Anaconda and did a search and could come across the libz.so.1 in the anaconda environment I was using. The path is as below

/home/user/anaconda3/envs/{env - name }/lib/libz.so.1

I used the above file to form the symbolic link and that worked.

Hope this helps.