conda-forge / vtk-feedstock

A conda-smithy repository for vtk.
BSD 3-Clause "New" or "Revised" License
13 stars 64 forks source link

left mouse click action issue #101

Open pjsjongsung opened 4 years ago

pjsjongsung commented 4 years ago

Issue: Hi. I am using fury library which uses vtk. I installed vtk using conda. In a fury driven window, the left mouse click action was supposed to give me the voxel values in a 3d image, but did not do anything.
Environment (conda list):

``` $ conda list # packages in environment at /home/jimmy/miniconda3: # # Name Version Build Channel _libgcc_mutex 0.1 main absl-py 0.9.0 pypi_0 pypi asn1crypto 1.3.0 py37_0 astor 0.8.1 pypi_0 pypi astroid 2.3.3 py37_0 attrs 19.3.0 py_0 backcall 0.1.0 py37_0 blas 1.0 mkl bleach 3.1.0 py37_0 blosc 1.16.3 hd408876_0 bzip2 1.0.8 h7b6447c_0 ca-certificates 2019.11.27 0 cachetools 4.0.0 pypi_0 pypi certifi 2019.11.28 py37_0 cffi 1.13.2 py37h2e261b9_0 chardet 3.0.4 py37_1003 conda 4.8.1 py37_0 conda-package-handling 1.6.0 py37h7b6447c_0 cryptography 2.8 py37h1ba5d50_0 cvxopt 1.2.0 py37hfa32c7d_0 cycler 0.10.0 py37_0 dbus 1.13.12 h746ee38_0 decorator 4.4.1 py_0 defusedxml 0.6.0 py_0 dipy 1.1.0 py37hc1659b7_0 conda-forge entrypoints 0.3 py37_0 expat 2.2.6 he6710b0_0 fontconfig 2.13.0 h9420a91_0 freetype 2.9.1 h8a8886c_1 fury 0.4.0 pypi_0 pypi gast 0.2.2 pypi_0 pypi glib 2.63.1 h5a9c865_0 glpk 4.65 h3ceedfd_2 gmp 6.1.2 h6c8ec71_1 google-auth 1.10.1 pypi_0 pypi google-auth-oauthlib 0.4.1 pypi_0 pypi google-pasta 0.1.8 pypi_0 pypi grpcio 1.26.0 pypi_0 pypi gsl 2.4 h14c3975_4 gst-plugins-base 1.14.0 hbbd80ab_1 gstreamer 1.14.0 hb453b48_1 h5py 2.9.0 py37h7918eee_0 hdf5 1.10.4 hb1b8bf9_0 icu 58.2 h9c2bf20_1 idna 2.8 py37_0 importlib_metadata 1.3.0 py37_0 intel-openmp 2019.4 243 ipykernel 5.1.3 py37h39e3cac_1 ipython 7.11.1 py37h39e3cac_0 ipython_genutils 0.2.0 py37_0 isort 4.3.21 py37_0 jedi 0.15.2 py37_0 jinja2 2.10.3 py_0 joblib 0.14.1 py_0 jpeg 9b h024ee3a_2 json5 0.8.5 py_0 jsonschema 3.2.0 py37_0 jupyter_client 5.3.4 py37_0 jupyter_core 4.6.1 py37_0 jupyterlab 1.2.4 py_0 conda-forge jupyterlab_server 1.0.6 py_0 keras-applications 1.0.8 pypi_0 pypi keras-preprocessing 1.1.0 pypi_0 pypi kiwisolver 1.1.0 py37he6710b0_0 lazy-object-proxy 1.4.3 py37h7b6447c_0 libedit 3.1.20181209 hc058e9b_0 libffi 3.2.1 hd88cf55_4 libgcc-ng 9.1.0 hdf63c60_0 libgfortran-ng 7.3.0 hdf63c60_0 libpng 1.6.37 hbc83047_0 libsodium 1.0.16 h1bed415_0 libstdcxx-ng 9.1.0 hdf63c60_0 libuuid 1.0.3 h1bed415_2 libxcb 1.13 h1bed415_1 libxml2 2.9.9 hea5a465_1 lz4-c 1.8.1.2 h14c3975_0 lzo 2.10 h49e0be7_2 markdown 3.1.1 pypi_0 pypi markupsafe 1.1.1 py37h7b6447c_0 matplotlib 3.1.1 py37h5429711_0 mccabe 0.6.1 py37_1 metis 5.1.0 hf484d3e_4 mistune 0.8.4 py37h7b6447c_0 mkl 2019.4 243 mkl-service 2.3.0 py37he904b0f_0 mkl_fft 1.0.15 py37ha843d7b_0 mkl_random 1.1.0 py37hd6b4f25_0 mock 3.0.5 py37_0 more-itertools 8.0.2 py_0 nbconvert 5.6.1 py37_0 nbformat 4.4.0 py37_0 ncurses 6.1 he6710b0_1 nibabel 3.0.0 py_0 conda-forge notebook 6.0.2 py37_0 numexpr 2.7.0 py37h9e4a6bb_0 numpy 1.18.1 py37h4f9e942_0 numpy-base 1.18.1 py37hde5b4d6_1 oauthlib 3.1.0 pypi_0 pypi openssl 1.1.1d h7b6447c_3 opt-einsum 3.1.0 pypi_0 pypi pandoc 2.2.3.2 0 pandocfilters 1.4.2 py37_1 parso 0.5.2 py_0 pcre 8.43 he6710b0_0 pexpect 4.7.0 py37_0 pickleshare 0.7.5 py37_0 pip 19.3.1 py37_0 prometheus_client 0.7.1 py_0 prompt_toolkit 3.0.2 py_0 protobuf 3.11.2 pypi_0 pypi ptyprocess 0.6.0 py37_0 pyasn1 0.4.8 pypi_0 pypi pyasn1-modules 0.2.8 pypi_0 pypi pycosat 0.6.3 py37h7b6447c_0 pycparser 2.19 py37_0 pydicom 1.3.0 py_0 conda-forge pygments 2.5.2 py_0 pylint 2.4.4 py37_0 pyopenssl 19.1.0 py37_0 pyparsing 2.4.6 py_0 pyqt 5.9.2 py37h05f1152_2 pyrsistent 0.15.6 py37h7b6447c_0 pysocks 1.7.1 py37_0 pytables 3.6.1 py37h71ec239_0 python 3.7.4 h265db76_1 python-dateutil 2.8.1 py_0 pytz 2019.3 py_0 pyzmq 18.1.0 py37he6710b0_0 qt 5.9.7 h5867ecd_1 readline 7.0 h7b6447c_5 requests 2.22.0 py37_1 requests-oauthlib 1.3.0 pypi_0 pypi rsa 4.0 pypi_0 pypi ruamel_yaml 0.15.87 py37h7b6447c_0 scikit-learn 0.22.1 py37hd81dba3_0 scipy 1.3.2 py37h7c811a0_0 send2trash 1.5.0 py37_0 setuptools 44.0.0 py37_0 sip 4.19.8 py37hf484d3e_0 six 1.13.0 py37_0 snappy 1.1.7 hbae5bb6_3 sqlite 3.30.1 h7b6447c_0 suitesparse 5.2.0 h9e4a6bb_0 tbb 2019.8 hfd86e86_0 tensorboard 2.1.0 pypi_0 pypi tensorflow 2.1.0 pypi_0 pypi tensorflow-estimator 2.1.0 pypi_0 pypi tensorflow-gpu 2.1.0 pypi_0 pypi termcolor 1.1.0 pypi_0 pypi terminado 0.8.3 py37_0 testpath 0.4.4 py_0 tk 8.6.8 hbc83047_0 tornado 6.0.3 py37h7b6447c_0 tqdm 4.41.1 py_0 traitlets 4.3.3 py37_0 urllib3 1.25.7 py37_0 vtk 8.1.2 pypi_0 pypi wcwidth 0.1.7 py37_0 webencodings 0.5.1 py37_1 werkzeug 0.16.0 pypi_0 pypi wheel 0.33.6 py37_0 wrapt 1.11.2 py37h7b6447c_0 xz 5.2.4 h14c3975_4 yaml 0.1.7 had09818_2 zeromq 4.3.1 he6710b0_3 zipp 0.6.0 py_0 zlib 1.2.11 h7b6447c_3 zstd 1.3.7 h0b5b093_0 ```


Details about conda and system ( conda info ):

``` $ conda info active environment : base active env location : /home/jimmy/miniconda3 shell level : 1 user config file : /home/jimmy/.condarc populated config files : conda version : 4.8.1 conda-build version : not installed python version : 3.7.4.final.0 virtual packages : __glibc=2.27 base environment : /home/jimmy/miniconda3 (writable) channel URLs : https://repo.anaconda.com/pkgs/main/linux-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/linux-64 https://repo.anaconda.com/pkgs/r/noarch package cache : /home/jimmy/miniconda3/pkgs /home/jimmy/.conda/pkgs envs directories : /home/jimmy/miniconda3/envs /home/jimmy/.conda/envs platform : linux-64 user-agent : conda/4.8.1 requests/2.22.0 CPython/3.7.4 Linux/5.0.0-23-generic ubuntu/18.04.3 glibc/2.27 UID:GID : 1000:1000 netrc file : None offline mode : False ```

The other click and drag functions and left mouse click on a button worked. When I use vtk 8.1.2 installed from pip, the action works just fine. dipy_horizon is the function I was using, which uses fury(which uses vtk) to open a window of a brain image data. The only thing not working in the window was returning the voxel value when clicked.

marcelotrevisani commented 4 years ago

There is no result on your conda list and conda info Could you please add those?

pjsjongsung commented 4 years ago

Sorry. I'm new to this thing. I added it in the question! The vtk and fury is not in the conda list right now because as mentioned in the question, I uninstalled it and reinstalled using pip

marcelotrevisani commented 4 years ago

Do you have a code as an example which reproduce that problem?

marcelotrevisani commented 4 years ago

from your conda list you are using vtk from pypi can you try:

conda create -n vtk-test vtk python --channel conda-forge
conda activate vtk-test

and try to run your piece of code again to see if it is working please

pjsjongsung commented 4 years ago

I think I have to add dipy and fury in the conda vtk-test environment also to test if the code works. Do you know what command I should use?

pjsjongsung commented 4 years ago

I've tried in the environment and the problem still persists.

Tobias-Fischer commented 4 months ago

Is this still an issue @pjsjongsung?