OpenPIV / openpiv_tk_gui

Tkinker GUI for OpenPIV-Python (requires Python 3)
Other
30 stars 19 forks source link

Error when trying to open GUI #60

Open hagneeptatt opened 3 weeks ago

hagneeptatt commented 3 weeks ago

AttributeError: '_tkinter.tkapp' object has no attribute 'plotting_methods'

Initializing GUI Initializing widgets Initializing advanced_filtering_addin (afa) Initializing repl_outliers_addin (roa) Initializing sig2noise_addin (s2n) Initializing user_function_addin (ufa) Initializing pandas_plotting_addin (ppa) Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Users\Programs\Python\Python312\Lib\site-packages\openpivgui\OpenPivGui.py", line 1320, in openPivGui = OpenPivGui() ^^^^^^^^^^^^ File "C:\Users\Programs\Python\Python312\Lib\site-packages\openpivgui\OpenPivGui.py", line 158, in init AddInHandler.init_add_ins(self) File "C:\Users\Programs\Python\Python312\Lib\site-packages\openpivgui\AddInHandler.py", line 29, in init_add_ins add_in_instance = getattr(add_in_file, add_in)(gui) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Local\Programs\Python\Python312\Lib\site-packages\openpivgui\AddIns\pandas_plotting_addin_plotting.py", line 188, in init gui.plotting_methods.update( ^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Local\Programs\Python\Python312\Lib\tkinter__init.py", line 2430, in getattr__ return getattr(self.tk, attr) ^^^^^^^^^^^^^^^^^^^^^^ AttributeError: '_tkinter.tkapp' object has no attribute 'plotting_methods'

alexlib commented 3 weeks ago

Please make sure you reinstall the package with the correct version of openpiv and openpiv_tk_gui on the correct Python version. see Readme

hagneeptatt commented 3 weeks ago

Thank you, it seems to open now, however when running on my images I get the following error:

PIV evaluation thread stopped. module 'numpy' has no attribute 'int'. np.int was a deprecated alias for the builtin int. To avoid this error in existing code, use int by itself. Doing this will not modify any behavior and is safe. When replacing np.int, you may wish to use e.g. np.int64 or np.int32 to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

alexlib commented 3 weeks ago

please use a new virtual environment, install and send the installation log. my guess is that something is not matched - we solved this problem already

hagneeptatt commented 3 weeks ago

`(base) C:\Users\Bioprocessing>conda create -n openpivgui python=3.12 Channels:

Package Plan

environment location: C:\Users\Bioprocessing\anaconda3\envs\openpivgui

added / updated specs:

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
bzip2-1.0.8                |       h2bbff1b_6          90 KB
ca-certificates-2024.3.11  |       haa95532_0         128 KB
expat-2.6.2                |       hd77b12b_0         260 KB
libffi-3.4.4               |       hd77b12b_1         122 KB
openssl-3.0.13             |       h2bbff1b_2         7.5 MB
pip-24.0                   |  py312haa95532_0         3.5 MB
python-3.12.3              |       h1d929f7_1        16.3 MB
setuptools-69.5.1          |  py312haa95532_0         1.3 MB
sqlite-3.45.3              |       h2bbff1b_0         973 KB
tk-8.6.14                  |       h0416ee5_0         3.5 MB
tzdata-2024a               |       h04d1e81_0         116 KB
vc-14.2                    |       h2eaa2aa_1          10 KB
vs2015_runtime-14.29.30133 |       h43f2093_3         1.1 MB
wheel-0.43.0               |  py312haa95532_0         167 KB
xz-5.4.6                   |       h8cc25b3_1         609 KB
zlib-1.2.13                |       h8cc25b3_1         131 KB
------------------------------------------------------------
                                       Total:        35.7 MB

The following NEW packages will be INSTALLED:

bzip2 pkgs/main/win-64::bzip2-1.0.8-h2bbff1b_6 ca-certificates pkgs/main/win-64::ca-certificates-2024.3.11-haa95532_0 expat pkgs/main/win-64::expat-2.6.2-hd77b12b_0 libffi pkgs/main/win-64::libffi-3.4.4-hd77b12b_1 openssl pkgs/main/win-64::openssl-3.0.13-h2bbff1b_2 pip pkgs/main/win-64::pip-24.0-py312haa95532_0 python pkgs/main/win-64::python-3.12.3-h1d929f7_1 setuptools pkgs/main/win-64::setuptools-69.5.1-py312haa95532_0 sqlite pkgs/main/win-64::sqlite-3.45.3-h2bbff1b_0 tk pkgs/main/win-64::tk-8.6.14-h0416ee5_0 tzdata pkgs/main/noarch::tzdata-2024a-h04d1e81_0 vc pkgs/main/win-64::vc-14.2-h2eaa2aa_1 vs2015_runtime pkgs/main/win-64::vs2015_runtime-14.29.30133-h43f2093_3 wheel pkgs/main/win-64::wheel-0.43.0-py312haa95532_0 xz pkgs/main/win-64::xz-5.4.6-h8cc25b3_1 zlib pkgs/main/win-64::zlib-1.2.13-h8cc25b3_1

Proceed ([y]/n)? y

Downloading and Extracting Packages:

Preparing transaction: done Verifying transaction: done Executing transaction: done #

To activate this environment, use

#

$ conda activate openpivgui

#

To deactivate an active environment, use

#

$ conda deactivate

(base) C:\Users\Bioprocessing>conda activate openpivgui

(openpivgui) C:\Users\Bioprocessing>pip --no-cache-dir install git+https://github.com/alexlib/openpiv-python-0.23.8 Collecting git+https://github.com/alexlib/openpiv-python-0.23.8 Cloning https://github.com/alexlib/openpiv-python-0.23.8 to c:\users\bioprocessing\appdata\local\temp\pip-req-build-7nzzlb33 Running command git clone --filter=blob:none --quiet https://github.com/alexlib/openpiv-python-0.23.8 'C:\Users\Bioprocessing\AppData\Local\Temp\pip-req-build-7nzzlb33' Resolved https://github.com/alexlib/openpiv-python-0.23.8 to commit a5a28f13d354f4dd3675f1b100b3e81419b2b198 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting numpy (from OpenPIV==0.23.8) Downloading numpy-1.26.4-cp312-cp312-win_amd64.whl.metadata (61 kB) ---------------------------------------- 61.0/61.0 kB 1.6 MB/s eta 0:00:00 Collecting imageio (from OpenPIV==0.23.8) Downloading imageio-2.34.1-py3-none-any.whl.metadata (4.9 kB) Collecting matplotlib>=3 (from OpenPIV==0.23.8) Downloading matplotlib-3.9.0-cp312-cp312-win_amd64.whl.metadata (11 kB) Collecting scikit-image (from OpenPIV==0.23.8) Downloading scikit_image-0.23.2-cp312-cp312-win_amd64.whl.metadata (14 kB) Collecting scipy (from OpenPIV==0.23.8) Downloading scipy-1.13.1-cp312-cp312-win_amd64.whl.metadata (60 kB) ---------------------------------------- 60.6/60.6 kB ? eta 0:00:00 Collecting natsort (from OpenPIV==0.23.8) Downloading natsort-8.4.0-py3-none-any.whl.metadata (21 kB) Collecting GitPython (from OpenPIV==0.23.8) Downloading GitPython-3.1.43-py3-none-any.whl.metadata (13 kB) Collecting pytest (from OpenPIV==0.23.8) Downloading pytest-8.2.2-py3-none-any.whl.metadata (7.6 kB) Collecting watermark (from OpenPIV==0.23.8) Downloading watermark-2.4.3-py2.py3-none-any.whl.metadata (1.4 kB) Collecting tqdm (from OpenPIV==0.23.8) Downloading tqdm-4.66.4-py3-none-any.whl.metadata (57 kB) ---------------------------------------- 57.6/57.6 kB ? eta 0:00:00 Collecting contourpy>=1.0.1 (from matplotlib>=3->OpenPIV==0.23.8) Downloading contourpy-1.2.1-cp312-cp312-win_amd64.whl.metadata (5.8 kB) Collecting cycler>=0.10 (from matplotlib>=3->OpenPIV==0.23.8) Downloading cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB) Collecting fonttools>=4.22.0 (from matplotlib>=3->OpenPIV==0.23.8) Downloading fonttools-4.53.0-cp312-cp312-win_amd64.whl.metadata (165 kB) ---------------------------------------- 165.5/165.5 kB ? eta 0:00:00 Collecting kiwisolver>=1.3.1 (from matplotlib>=3->OpenPIV==0.23.8) Downloading kiwisolver-1.4.5-cp312-cp312-win_amd64.whl.metadata (6.5 kB) Collecting packaging>=20.0 (from matplotlib>=3->OpenPIV==0.23.8) Downloading packaging-24.0-py3-none-any.whl.metadata (3.2 kB) Collecting pillow>=8 (from matplotlib>=3->OpenPIV==0.23.8) Downloading pillow-10.3.0-cp312-cp312-win_amd64.whl.metadata (9.4 kB) Collecting pyparsing>=2.3.1 (from matplotlib>=3->OpenPIV==0.23.8) Downloading pyparsing-3.1.2-py3-none-any.whl.metadata (5.1 kB) Collecting python-dateutil>=2.7 (from matplotlib>=3->OpenPIV==0.23.8) Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB) Collecting gitdb<5,>=4.0.1 (from GitPython->OpenPIV==0.23.8) Downloading gitdb-4.0.11-py3-none-any.whl.metadata (1.2 kB) Collecting iniconfig (from pytest->OpenPIV==0.23.8) Downloading iniconfig-2.0.0-py3-none-any.whl.metadata (2.6 kB) Collecting pluggy<2.0,>=1.5 (from pytest->OpenPIV==0.23.8) Downloading pluggy-1.5.0-py3-none-any.whl.metadata (4.8 kB) Collecting colorama (from pytest->OpenPIV==0.23.8) Downloading colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB) Collecting networkx>=2.8 (from scikit-image->OpenPIV==0.23.8) Downloading networkx-3.3-py3-none-any.whl.metadata (5.1 kB) Collecting tifffile>=2022.8.12 (from scikit-image->OpenPIV==0.23.8) Downloading tifffile-2024.5.22-py3-none-any.whl.metadata (30 kB) Collecting lazy-loader>=0.4 (from scikit-image->OpenPIV==0.23.8) Downloading lazy_loader-0.4-py3-none-any.whl.metadata (7.6 kB) Collecting ipython>=6.0 (from watermark->OpenPIV==0.23.8) Downloading ipython-8.25.0-py3-none-any.whl.metadata (4.9 kB) Collecting importlib-metadata>=1.4 (from watermark->OpenPIV==0.23.8) Downloading importlib_metadata-7.1.0-py3-none-any.whl.metadata (4.7 kB) Requirement already satisfied: setuptools in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from watermark->OpenPIV==0.23.8) (69.5.1) Collecting smmap<6,>=3.0.1 (from gitdb<5,>=4.0.1->GitPython->OpenPIV==0.23.8) Downloading smmap-5.0.1-py3-none-any.whl.metadata (4.3 kB) Collecting zipp>=0.5 (from importlib-metadata>=1.4->watermark->OpenPIV==0.23.8) Downloading zipp-3.19.2-py3-none-any.whl.metadata (3.6 kB) Collecting decorator (from ipython>=6.0->watermark->OpenPIV==0.23.8) Downloading decorator-5.1.1-py3-none-any.whl.metadata (4.0 kB) Collecting jedi>=0.16 (from ipython>=6.0->watermark->OpenPIV==0.23.8) Downloading jedi-0.19.1-py2.py3-none-any.whl.metadata (22 kB) Collecting matplotlib-inline (from ipython>=6.0->watermark->OpenPIV==0.23.8) Downloading matplotlib_inline-0.1.7-py3-none-any.whl.metadata (3.9 kB) Collecting prompt-toolkit<3.1.0,>=3.0.41 (from ipython>=6.0->watermark->OpenPIV==0.23.8) Downloading prompt_toolkit-3.0.46-py3-none-any.whl.metadata (6.4 kB) Collecting pygments>=2.4.0 (from ipython>=6.0->watermark->OpenPIV==0.23.8) Downloading pygments-2.18.0-py3-none-any.whl.metadata (2.5 kB) Collecting stack-data (from ipython>=6.0->watermark->OpenPIV==0.23.8) Downloading stack_data-0.6.3-py3-none-any.whl.metadata (18 kB) Collecting traitlets>=5.13.0 (from ipython>=6.0->watermark->OpenPIV==0.23.8) Downloading traitlets-5.14.3-py3-none-any.whl.metadata (10 kB) Collecting six>=1.5 (from python-dateutil>=2.7->matplotlib>=3->OpenPIV==0.23.8) Downloading six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB) Collecting parso<0.9.0,>=0.8.3 (from jedi>=0.16->ipython>=6.0->watermark->OpenPIV==0.23.8) Downloading parso-0.8.4-py2.py3-none-any.whl.metadata (7.7 kB) Collecting wcwidth (from prompt-toolkit<3.1.0,>=3.0.41->ipython>=6.0->watermark->OpenPIV==0.23.8) Downloading wcwidth-0.2.13-py2.py3-none-any.whl.metadata (14 kB) Collecting executing>=1.2.0 (from stack-data->ipython>=6.0->watermark->OpenPIV==0.23.8) Downloading executing-2.0.1-py2.py3-none-any.whl.metadata (9.0 kB) Collecting asttokens>=2.1.0 (from stack-data->ipython>=6.0->watermark->OpenPIV==0.23.8) Downloading asttokens-2.4.1-py2.py3-none-any.whl.metadata (5.2 kB) Collecting pure-eval (from stack-data->ipython>=6.0->watermark->OpenPIV==0.23.8) Downloading pure_eval-0.2.2-py3-none-any.whl.metadata (6.2 kB) Downloading matplotlib-3.9.0-cp312-cp312-win_amd64.whl (8.0 MB) ---------------------------------------- 8.0/8.0 MB 25.5 MB/s eta 0:00:00 Downloading numpy-1.26.4-cp312-cp312-win_amd64.whl (15.5 MB) ---------------------------------------- 15.5/15.5 MB 43.5 MB/s eta 0:00:00 Downloading GitPython-3.1.43-py3-none-any.whl (207 kB) ---------------------------------------- 207.3/207.3 kB ? eta 0:00:00 Downloading imageio-2.34.1-py3-none-any.whl (313 kB) ---------------------------------------- 313.5/313.5 kB ? eta 0:00:00 Downloading natsort-8.4.0-py3-none-any.whl (38 kB) Downloading pytest-8.2.2-py3-none-any.whl (339 kB) ---------------------------------------- 339.9/339.9 kB ? eta 0:00:00 Downloading scikit_image-0.23.2-cp312-cp312-win_amd64.whl (12.8 MB) ---------------------------------------- 12.8/12.8 MB 40.9 MB/s eta 0:00:00 Downloading scipy-1.13.1-cp312-cp312-win_amd64.whl (45.9 MB) ---------------------------------------- 45.9/45.9 MB 38.6 MB/s eta 0:00:00 Downloading tqdm-4.66.4-py3-none-any.whl (78 kB) ---------------------------------------- 78.3/78.3 kB ? eta 0:00:00 Downloading watermark-2.4.3-py2.py3-none-any.whl (7.6 kB) Downloading contourpy-1.2.1-cp312-cp312-win_amd64.whl (189 kB) ---------------------------------------- 189.9/189.9 kB ? eta 0:00:00 Downloading cycler-0.12.1-py3-none-any.whl (8.3 kB) Downloading fonttools-4.53.0-cp312-cp312-win_amd64.whl (2.2 MB) ---------------------------------------- 2.2/2.2 MB 46.4 MB/s eta 0:00:00 Downloading gitdb-4.0.11-py3-none-any.whl (62 kB) ---------------------------------------- 62.7/62.7 kB ? eta 0:00:00 Downloading importlib_metadata-7.1.0-py3-none-any.whl (24 kB) Downloading ipython-8.25.0-py3-none-any.whl (817 kB) ---------------------------------------- 817.3/817.3 kB 53.8 MB/s eta 0:00:00 Downloading kiwisolver-1.4.5-cp312-cp312-win_amd64.whl (56 kB) ---------------------------------------- 56.0/56.0 kB ? eta 0:00:00 Downloading lazy_loader-0.4-py3-none-any.whl (12 kB) Downloading networkx-3.3-py3-none-any.whl (1.7 MB) ---------------------------------------- 1.7/1.7 MB 36.8 MB/s eta 0:00:00 Downloading packaging-24.0-py3-none-any.whl (53 kB) ---------------------------------------- 53.5/53.5 kB ? eta 0:00:00 Downloading pillow-10.3.0-cp312-cp312-win_amd64.whl (2.5 MB) ---------------------------------------- 2.5/2.5 MB 40.0 MB/s eta 0:00:00 Downloading pluggy-1.5.0-py3-none-any.whl (20 kB) Downloading pyparsing-3.1.2-py3-none-any.whl (103 kB) ---------------------------------------- 103.2/103.2 kB ? eta 0:00:00 Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB) ---------------------------------------- 229.9/229.9 kB ? eta 0:00:00 Downloading tifffile-2024.5.22-py3-none-any.whl (225 kB) ---------------------------------------- 225.5/225.5 kB ? eta 0:00:00 Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB) Downloading iniconfig-2.0.0-py3-none-any.whl (5.9 kB) Downloading jedi-0.19.1-py2.py3-none-any.whl (1.6 MB) ---------------------------------------- 1.6/1.6 MB 33.2 MB/s eta 0:00:00 Downloading prompt_toolkit-3.0.46-py3-none-any.whl (386 kB) ---------------------------------------- 386.3/386.3 kB 23.5 MB/s eta 0:00:00 Downloading pygments-2.18.0-py3-none-any.whl (1.2 MB) ---------------------------------------- 1.2/1.2 MB 74.7 MB/s eta 0:00:00 Downloading six-1.16.0-py2.py3-none-any.whl (11 kB) Downloading smmap-5.0.1-py3-none-any.whl (24 kB) Downloading traitlets-5.14.3-py3-none-any.whl (85 kB) ---------------------------------------- 85.4/85.4 kB ? eta 0:00:00 Downloading zipp-3.19.2-py3-none-any.whl (9.0 kB) Downloading decorator-5.1.1-py3-none-any.whl (9.1 kB) Downloading matplotlib_inline-0.1.7-py3-none-any.whl (9.9 kB) Downloading stack_data-0.6.3-py3-none-any.whl (24 kB) Downloading asttokens-2.4.1-py2.py3-none-any.whl (27 kB) Downloading executing-2.0.1-py2.py3-none-any.whl (24 kB) Downloading parso-0.8.4-py2.py3-none-any.whl (103 kB) ---------------------------------------- 103.7/103.7 kB ? eta 0:00:00 Downloading pure_eval-0.2.2-py3-none-any.whl (11 kB) Downloading wcwidth-0.2.13-py2.py3-none-any.whl (34 kB) Building wheels for collected packages: OpenPIV Building wheel for OpenPIV (pyproject.toml) ... done Created wheel for OpenPIV: filename=OpenPIV-0.23.8-py3-none-any.whl size=22323150 sha256=a7519201163470bf47bb65dbee7f170946e3b4273fc60a44c1781ef06c406ef1 Stored in directory: C:\Users\Bioprocessing\AppData\Local\Temp\pip-ephem-wheel-cache-hcf2t26y\wheels\f2\17\4d\f11b4a669c4b2293337a57fc03eff5c700e82de1b780c2b21e Successfully built OpenPIV Installing collected packages: wcwidth, pure-eval, zipp, traitlets, smmap, six, pyparsing, pygments, prompt-toolkit, pluggy, pillow, parso, packaging, numpy, networkx, natsort, kiwisolver, iniconfig, fonttools, executing, decorator, cycler, colorama, tqdm, tifffile, scipy, python-dateutil, pytest, matplotlib-inline, lazy-loader, jedi, importlib-metadata, imageio, gitdb, contourpy, asttokens, stack-data, scikit-image, matplotlib, GitPython, ipython, watermark, OpenPIV Successfully installed GitPython-3.1.43 OpenPIV-0.23.8 asttokens-2.4.1 colorama-0.4.6 contourpy-1.2.1 cycler-0.12.1 decorator-5.1.1 executing-2.0.1 fonttools-4.53.0 gitdb-4.0.11 imageio-2.34.1 importlib-metadata-7.1.0 iniconfig-2.0.0 ipython-8.25.0 jedi-0.19.1 kiwisolver-1.4.5 lazy-loader-0.4 matplotlib-3.9.0 matplotlib-inline-0.1.7 natsort-8.4.0 networkx-3.3 numpy-1.26.4 packaging-24.0 parso-0.8.4 pillow-10.3.0 pluggy-1.5.0 prompt-toolkit-3.0.46 pure-eval-0.2.2 pygments-2.18.0 pyparsing-3.1.2 pytest-8.2.2 python-dateutil-2.9.0.post0 scikit-image-0.23.2 scipy-1.13.1 six-1.16.0 smmap-5.0.1 stack-data-0.6.3 tifffile-2024.5.22 tqdm-4.66.4 traitlets-5.14.3 watermark-2.4.3 wcwidth-0.2.13 zipp-3.19.2

(openpivgui) C:\Users\Bioprocessing>pip --no-cache-dir install openpivgui Collecting openpivgui Downloading openpivgui-0.4.14-py3-none-any.whl.metadata (3.0 kB) Requirement already satisfied: OpenPiv==0.23.8 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from openpivgui) (0.23.8) Collecting pandas (from openpivgui) Downloading pandas-2.2.2-cp312-cp312-win_amd64.whl.metadata (19 kB) Requirement already satisfied: numpy in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from OpenPiv==0.23.8->openpivgui) (1.26.4) Requirement already satisfied: imageio in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from OpenPiv==0.23.8->openpivgui) (2.34.1) Requirement already satisfied: matplotlib>=3 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from OpenPiv==0.23.8->openpivgui) (3.9.0) Requirement already satisfied: scikit-image in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from OpenPiv==0.23.8->openpivgui) (0.23.2) Requirement already satisfied: scipy in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from OpenPiv==0.23.8->openpivgui) (1.13.1) Requirement already satisfied: natsort in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from OpenPiv==0.23.8->openpivgui) (8.4.0) Requirement already satisfied: GitPython in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from OpenPiv==0.23.8->openpivgui) (3.1.43) Requirement already satisfied: pytest in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from OpenPiv==0.23.8->openpivgui) (8.2.2) Requirement already satisfied: watermark in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from OpenPiv==0.23.8->openpivgui) (2.4.3) Requirement already satisfied: tqdm in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from OpenPiv==0.23.8->openpivgui) (4.66.4) Requirement already satisfied: python-dateutil>=2.8.2 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from pandas->openpivgui) (2.9.0.post0) Collecting pytz>=2020.1 (from pandas->openpivgui) Downloading pytz-2024.1-py2.py3-none-any.whl.metadata (22 kB) Collecting tzdata>=2022.7 (from pandas->openpivgui) Downloading tzdata-2024.1-py2.py3-none-any.whl.metadata (1.4 kB) Requirement already satisfied: contourpy>=1.0.1 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from matplotlib>=3->OpenPiv==0.23.8->openpivgui) (1.2.1) Requirement already satisfied: cycler>=0.10 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from matplotlib>=3->OpenPiv==0.23.8->openpivgui) (0.12.1) Requirement already satisfied: fonttools>=4.22.0 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from matplotlib>=3->OpenPiv==0.23.8->openpivgui) (4.53.0) Requirement already satisfied: kiwisolver>=1.3.1 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from matplotlib>=3->OpenPiv==0.23.8->openpivgui) (1.4.5) Requirement already satisfied: packaging>=20.0 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from matplotlib>=3->OpenPiv==0.23.8->openpivgui) (24.0) Requirement already satisfied: pillow>=8 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from matplotlib>=3->OpenPiv==0.23.8->openpivgui) (10.3.0) Requirement already satisfied: pyparsing>=2.3.1 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from matplotlib>=3->OpenPiv==0.23.8->openpivgui) (3.1.2) Requirement already satisfied: six>=1.5 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from python-dateutil>=2.8.2->pandas->openpivgui) (1.16.0) Requirement already satisfied: gitdb<5,>=4.0.1 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from GitPython->OpenPiv==0.23.8->openpivgui) (4.0.11) Requirement already satisfied: iniconfig in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from pytest->OpenPiv==0.23.8->openpivgui) (2.0.0) Requirement already satisfied: pluggy<2.0,>=1.5 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from pytest->OpenPiv==0.23.8->openpivgui) (1.5.0) Requirement already satisfied: colorama in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from pytest->OpenPiv==0.23.8->openpivgui) (0.4.6) Requirement already satisfied: networkx>=2.8 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from scikit-image->OpenPiv==0.23.8->openpivgui) (3.3) Requirement already satisfied: tifffile>=2022.8.12 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from scikit-image->OpenPiv==0.23.8->openpivgui) (2024.5.22) Requirement already satisfied: lazy-loader>=0.4 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from scikit-image->OpenPiv==0.23.8->openpivgui) (0.4) Requirement already satisfied: ipython>=6.0 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from watermark->OpenPiv==0.23.8->openpivgui) (8.25.0) Requirement already satisfied: importlib-metadata>=1.4 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from watermark->OpenPiv==0.23.8->openpivgui) (7.1.0) Requirement already satisfied: setuptools in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from watermark->OpenPiv==0.23.8->openpivgui) (69.5.1) Requirement already satisfied: smmap<6,>=3.0.1 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from gitdb<5,>=4.0.1->GitPython->OpenPiv==0.23.8->openpivgui) (5.0.1) Requirement already satisfied: zipp>=0.5 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from importlib-metadata>=1.4->watermark->OpenPiv==0.23.8->openpivgui) (3.19.2) Requirement already satisfied: decorator in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from ipython>=6.0->watermark->OpenPiv==0.23.8->openpivgui) (5.1.1) Requirement already satisfied: jedi>=0.16 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from ipython>=6.0->watermark->OpenPiv==0.23.8->openpivgui) (0.19.1) Requirement already satisfied: matplotlib-inline in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from ipython>=6.0->watermark->OpenPiv==0.23.8->openpivgui) (0.1.7) Requirement already satisfied: prompt-toolkit<3.1.0,>=3.0.41 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from ipython>=6.0->watermark->OpenPiv==0.23.8->openpivgui) (3.0.46) Requirement already satisfied: pygments>=2.4.0 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from ipython>=6.0->watermark->OpenPiv==0.23.8->openpivgui) (2.18.0) Requirement already satisfied: stack-data in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from ipython>=6.0->watermark->OpenPiv==0.23.8->openpivgui) (0.6.3) Requirement already satisfied: traitlets>=5.13.0 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from ipython>=6.0->watermark->OpenPiv==0.23.8->openpivgui) (5.14.3) Requirement already satisfied: parso<0.9.0,>=0.8.3 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from jedi>=0.16->ipython>=6.0->watermark->OpenPiv==0.23.8->openpivgui) (0.8.4) Requirement already satisfied: wcwidth in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from prompt-toolkit<3.1.0,>=3.0.41->ipython>=6.0->watermark->OpenPiv==0.23.8->openpivgui) (0.2.13) Requirement already satisfied: executing>=1.2.0 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from stack-data->ipython>=6.0->watermark->OpenPiv==0.23.8->openpivgui) (2.0.1) Requirement already satisfied: asttokens>=2.1.0 in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from stack-data->ipython>=6.0->watermark->OpenPiv==0.23.8->openpivgui) (2.4.1) Requirement already satisfied: pure-eval in c:\users\bioprocessing\anaconda3\envs\openpivgui\lib\site-packages (from stack-data->ipython>=6.0->watermark->OpenPiv==0.23.8->openpivgui) (0.2.2) Downloading openpivgui-0.4.14-py3-none-any.whl (60 kB) ---------------------------------------- 60.9/60.9 kB ? eta 0:00:00 Downloading pandas-2.2.2-cp312-cp312-win_amd64.whl (11.5 MB) ---------------------------------------- 11.5/11.5 MB 40.9 MB/s eta 0:00:00 Downloading pytz-2024.1-py2.py3-none-any.whl (505 kB) ---------------------------------------- 505.5/505.5 kB 31.0 MB/s eta 0:00:00 Downloading tzdata-2024.1-py2.py3-none-any.whl (345 kB) ---------------------------------------- 345.4/345.4 kB ? eta 0:00:00 Installing collected packages: pytz, tzdata, pandas, openpivgui Successfully installed openpivgui-0.4.14 pandas-2.2.2 pytz-2024.1 tzdata-2024.1`

hagneeptatt commented 3 weeks ago

I got it to work in the virual environemt, seems to process my images very well, but unfortunately the vector plots do not show - all other plots show fine including contour plots.

image image
alexlib commented 3 weeks ago

I got it to work in the virual environemt, seems to process my images very well, but unfortunately the vector plots do not show - all other plots show fine including contour plots.

image image

@eguvep - could you please take a lookt? i'm not sure whether it's a openpiv or gui.

hagneeptatt commented 3 weeks ago

Hi Alex, any update on this, is it a problem just with the gui? Still having the same issue with the vector plots.

I get the following error on the command line: Traceback (most recent call last): File "C:\Users\Bioprocessing\anaconda3\envs\openpivgui\Lib\tkinter\__init__.py", line 1967, in __call__ return self.func(*args) ^^^^^^^^^^^^^^^^ File "C:\Users\Bioprocessing\anaconda3\envs\openpivgui\Lib\site-packages\openpivgui\OpenPivGui.py", line 891, in __listbox_selection_changed self.show(self.p['fnames'][self.index]) File "C:\Users\Bioprocessing\anaconda3\envs\openpivgui\Lib\site-packages\openpivgui\OpenPivGui.py", line 1192, in show vec_plot.vector( File "C:\Users\Bioprocessing\anaconda3\envs\openpivgui\Lib\site-packages\openpivgui\vec_plot.py", line 222, in vector data = data.to_numpy().astype(np.float) ^^^^^^^^ File "C:\Users\Bioprocessing\anaconda3\envs\openpivgui\Lib\site-packages\numpy\__init__.py", line 338, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'float'. np.floatwas a deprecated alias for the builtinfloat. To avoid this error in existing code, usefloatby itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'cfloat'?

alexlib commented 3 weeks ago

Hi Alex, any update on this, is it a problem just with the gui? Still having the same issue with the vector plots.

@hagneeptatt yes - we fixed it, it's not yet on pypi server, meanwhile use

pip install git+https://github.com/openpiv/openpiv_tk_gui --upgrade

in your virtual environment.

hagneeptatt commented 3 weeks ago

Amazing, thank you, it's working well now. Do you have any documentation on how I can plot reynold's stresses from my velocity vector data?

alexlib commented 3 weeks ago

see https://github.com/alexlib/pivpy

hagneeptatt commented 2 weeks ago

Amazing, the gui is now working well with my data. However, I am looking at extracting average velocity data (I also can no longer see the velocity histogram in the plots tab), is this a bug with the gui? image

alexlib commented 2 weeks ago

@hagneeptatt why do you think it's a bug? is there a printed error message?

hagneeptatt commented 2 weeks ago

@alexlib Before the update I was able to see histograms for velocity, not sure if it is a bug or intentional that its missing now?

alexlib commented 2 weeks ago

Nothing is intentional - we didn't remove features as far as I know. If you press some button and it does not work - please give us the small sample to try on (maybe it's in the data and not in the code) and the list of procedures to verify that we can reproduce the error.

hagneeptatt commented 2 weeks ago

test.zip

OK thanks for offering to take a look. see attached zip with relevant images. It's not that I'm pressing a button that doesn't work, but the option to show a velocity histogram no longer exists in the plotting window

alexlib commented 2 weeks ago

@hagneeptatt you're correct. the histogram and few more things are missing. but it's not my cup of tea, let's ask the professionals @eguvep @GregorBecker ?